Analytics
5 min
Analytics (LE)
39 endpoints in 4.0.x. REST under /analytics/.... Run real-time computations on DeviceHub tag values - thresholds, aggregations, custom Python, and TensorFlow inference.
Capabilities
- Processors: per-tag or per-group calculation jobs (sliding-window aggregates, custom expressions)
- Groups: group multiple tags for batch processing
- AI Models: upload TensorFlow models, run inference against tag values
Typical operations
Processors
Endpoint | Purpose |
|---|---|
GET /analytics/processors | List |
POST /analytics/processors | Create |
PUT /analytics/processors/{id} | Update |
DELETE /analytics/processors/{id} | Delete |
POST /analytics/processors/{id}/start | Start |
POST /analytics/processors/{id}/stop | Stop |
Groups
Endpoint | Purpose |
|---|---|
GET /analytics/groups | List |
POST /analytics/groups | Create |
PUT /analytics/groups/{id} | Update |
DELETE /analytics/groups/{id} | Delete |
AI Model upload (resumable, 3 steps)
Step | Method | Endpoint |
|---|---|---|
Clear | DELETE | /analytics/v2/upload_model/v2 |
Create session | POST | /analytics/v2/upload_model/v2 (body: {size, name}) |
Upload bytes | PUT | /analytics/v2/upload_model/v2/resume/{id} |