monitor-point
v1.0.0
Published
Performance monitoring and burying of user web projects
Downloads
2
Maintainers
Readme
Introduction to monitor-point
monitor-point is a tool that provides web project performance monitoring and burying. Note: monitor-point reports information once every two minutes or automatically reports information when more than eight messages are reported
Install monitor-point
npm install monitor-point
//or
yarn add monitor-point
user monitor-point
import monitorInstance from 'monitor-point';
let option = {
url:"localhost:7272", required, Address for reporting the generic data
user:"", // User's information
projectId:"", // web project id
custom:"" // Fill in what you want to add
};
let instance = new monitorInstance(option);
// If you want to destroy the instance, You used the instance.destroy() method
instance.destroy();
// if you want to report something, You used the instance.setPort() method;
instance.setPort(content)