const merak = require("merak-sdk-node")
const private_key = '32e9a1b4827fc4e3c614a5abbdd162a9ac780264'
const params = {
"Action": "CreateEvent",
"PublicKey": "9c178e51a7d4dc8aa1dbef0c790b06e7574c4d0etracehubtuhui",
"Signature": 1,
"UserName": "tuhui",
"EventName": "TestEventName",
"EventDesc": "TestDesc",
"Message": "TestMessage",
"InstanceName": "1.1.1.1",
"Status": "firing",
"Type": "Alert",
"Serverity": "P0",
"BeginAt": "2018-05-31T19:03:11+08:00",
"EndAt": "2018-05-31T19:11:11+08:00",
"TreeId": "bilibili.ops.bilimoni.merak-gateway",
"Label": "testkey"
}
const sign = merak.sign(params,private_key)
console.log(sign)
merak-sdk-node
1.0.1 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i merak-sdk-node
Weekly Downloads
0
Version
1.0.1
License
ISC
Unpacked Size
1.98 kB
Total Files
3