0.2.2 • Published 4 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
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.22
5 years ago
0.1.21
5 years ago
0.1.20
5 years ago
0.1.19
5 years ago
0.1.18
5 years ago
0.1.17
5 years ago
0.1.15
5 years ago
0.1.14
5 years ago
0.1.13
5 years ago
0.1.12
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago