https://github.com/lujiajing1126/aliyun-sls-javascript
A modern Aliyun SLS Client in typescript
https://github.com/lujiajing1126/aliyun-sls-javascript
Last synced: 2 months ago
JSON representation
A modern Aliyun SLS Client in typescript
- Host: GitHub
- URL: https://github.com/lujiajing1126/aliyun-sls-javascript
- Owner: lujiajing1126
- Created: 2021-08-31T07:38:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-31T14:51:13.000Z (almost 4 years ago)
- Last Synced: 2025-02-10T11:18:00.491Z (4 months ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aliyun SLS Client
> A modern impementation
## Install
```bash
$ npm install aliyun-sls-client
```Or with yarn,
```bash
$ yarn add aliyun-sls-client
```## Usage
```typescript
import { ClientBuilder } from 'aliyun-sls-client'const c = new ClientBuilder().setProject("project")
.setAccessKey("ak_id", "ak_secret")
// https will be used for internet access while http will be used for intranet access
.setEndpoint("cn-hangzhou.log.aliyuncs.com")
.build()c.getLog("logStore", "*").then((resp) => console.log(resp.data));
```Please check https://help.aliyun.com/document_detail/29008.html for complete endpoint lists.
## Implemented APIs
- [x] `GetLogs`
- [x] `GetHistograms`## License
MIT