зеркало из https://github.com/Azure/az-iot-bi.git
e0e892b384
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days. |
||
---|---|---|
lib | ||
test/lib | ||
.eslintrc | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
SECURITY.md | ||
config.json | ||
gulpfile.js | ||
index.js | ||
package.json |
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();