Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aliyun-monit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyun-monit

aliyun monit sdk

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

aliyun-monin-sdk

阿里云自定义监控 sdk

install

npm install aliyun-monit --save

demo

'use strict';

const {
    Client,
    RawData
} = require('aliyun-monit');

/* @class Client
 * @param {String} endpoint 上报监控的 url, 如: https://metrichub-cms-cn-hangzhou.aliyuncs.com
 * @param {String} accessKey 阿里云访问秘钥对 id
 * @param {String} accessSecret 阿里云访问秘钥 secret
 * @param [Number] flushTime 原始数据缓存上传间隔时间,默认 5s
 */
let client = new Client(endpoint, accessKey, accessSecret, flushTime);

/* @class RawData
 * @param {Number} groupId 应用分组的id
 * @param {String} metricName 监控项名称
 * @param {Object} dimensions 维度对象,一般用来放详细的描述数据
 * @param {Number} value 上报的是原始值
 */
client.putCustomMetric(new RawData(groupId, metricName, dimensions, value));

Keywords

FAQs

Package last updated on 28 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc