az-iot-bi
v0.1.20
Published
Business Intelligence API for Azure IoT Happy Path
Downloads
18
Readme
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();