Skip to content

lujiajing1126/aliyun-sls-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun SLS Client

A modern impementation

Install

$ npm install aliyun-sls-client

Or with yarn,

$ yarn add aliyun-sls-client

Usage

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

  • GetLogs
  • GetHistograms

License

MIT

About

A modern Aliyun SLS Client in typescript

Resources

Stars

Watchers

Forks

Packages

No packages published