Business Intelligence module for Azure IoT Happy Path
Перейти к файлу
ZhijunZhao e9b363cf76 0.1.20 2017-12-25 15:49:35 +08:00
lib Add a method to disable recording client ip 2017-12-25 15:00:46 +08:00
test/lib Use SHA256 to hash MAC addresses to align with Azure CLI 2.0 (#37) 2017-03-01 15:03:44 +08:00
.eslintrc add License and eslint (#10) 2016-10-09 09:23:43 +08:00
.gitignore fix missing parent package version info (#2) 2016-09-14 15:16:38 +08:00
.travis.yml add .travis.yml for CI (#24) 2016-11-22 11:51:20 +08:00
LICENSE add License and eslint (#10) 2016-10-09 09:23:43 +08:00
README.md initial commit 2016-09-08 16:01:48 +08:00
config.json remove promise and use async to improve performance (#17) 2016-10-19 11:24:52 +08:00
gulpfile.js add License and eslint (#10) 2016-10-09 09:23:43 +08:00
index.js Add a method to disable recording client ip 2017-12-25 15:00:46 +08:00
package.json 0.1.20 2017-12-25 15:49:35 +08:00

README.md

Business Intelligence module for Azure IoT Happy Path

This module is providing Business Intelligence API for Azure IoT Happy Path. It leverage Visual Studio Application Insights NodeJS SDK behind the scene. Telemetry data will be persisted for further analysis in our backend.

API

Below APIs are exposed for public use.

function start()
Call this function before tracking any event for proper setup and initialization. It is synchronous and returns boolean to indicate whether Application Insights is started.

function trackEvent(eventName, properties)
Call this function with custom properties to submit event.

function flush()
Send all pending events to backend.

Example

Typical usage of package is shown as below.

  var bi = require('az-iot-bi');
  bi.start()
  bi.trackEvent('test-event');
  bi.flush();