# az-iot-bi
**Repository Path**: mirrors_Azure/az-iot-bi
## Basic Information
- **Project Name**: az-iot-bi
- **Description**: Business Intelligence module for Azure IoT Happy Path
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: develop
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-03-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## 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](https://github.com/Microsoft/ApplicationInsights-node.js) 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.
```javascript
var bi = require('az-iot-bi');
bi.start()
bi.trackEvent('test-event');
bi.flush();
```