0.2.2 • Published 6 years ago
sls-client v0.2.2
import SlsClient from './client';
const client = new SlsClient({
accessKeyId: '***********',
accessKeySecret: '***************',
endpoint: 'cn-hangzhou.log.aliyuncs.com',
projectName: 'sls-serverless',
logStore: 'log'
});
client.postLogStoreLogs({
Logs: [{ test: '123' },{abc:'321'}],
LogTags: { ab: 'test', dj: 'tt' },
Topic: 'test',
}).subscribe(console.log);
client
.getLogs({
startCursor: 'MTU1Njk2ODE0MDk3MzQyMTkwMQ==',
endCursor: 'MTU1Njk2ODE0MDk3MzQyMTkwMg==',
shards: 0
})
.subscribe(res => {
console.log(
SlsClient.readKvList(
(res.logGroupList[0].Logs || [{ Contents: [] }])[0].Contents || []
)
);
});
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.22
6 years ago
0.1.21
6 years ago
0.1.20
6 years ago
0.1.19
6 years ago
0.1.18
6 years ago
0.1.17
6 years ago
0.1.15
6 years ago
0.1.14
6 years ago
0.1.13
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago