@geyj/monitor-sdk-node
v1.0.6
Published
Node Monitor Sdk
Downloads
1
Readme
Node监控SDK
安装
npm install @geyj/monitor-sdk-node
引入
//ES
import useMonitor from '@geyj/monitor-sdk-node'
//Commonjs
const useMonitor = require('@geyj/monitor-sdk-node')
调用
const { report } = useMonitor({
appId: [Your appId],
appName: [Your appName],
appVersion: [Your appVersion],
userId: [Your userId],
userName: [Your userName]
})
report({
type: 'Log',
subType: 'log',
content: JSON.stringify({content:'xxx', message:'xxx'}),
})