Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

datareporter

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

datareporter

report data to taskCollector

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

任务系统数据采集客户端

代码

opt:{
    "protocol":"协议类型,默认:http",
    "hostname":"主机名,例如:localhost、192.168.0.123 ...,默认:null",
    "port":"端口,默认:4349",
    "pathname":"接口路径,默认:report",
    "url":"完整接口地址,默认:null",
    "org":"组织名称",
    "ds":"数据源名称",
    "app":"注册app名称",
    "auth":"app密钥"
}

opt.hostname 和 opt.url 只要指定一个

//npm install datareporter
var Reporter = require('datareporter');

var reporter = new Reporter({
    org     : 'acmoba',
    ds      : 'gamereport',
    app     : 'gamereporter',
    auth    : '123',
    hostname: 'localhost'
});

var gr = {kill:1,death:1};

reporter.report(gr, function (err, rs) {
    console.log(err, rs);
});

FAQs

Package last updated on 17 Aug 2016

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