Sensor Insights Smart Alert Metrics

Get Device Alerts

POST
/dm/v1/smartAlerts/actions/metrics

Get Device Alerts for the most recent daily period, up to 30 days.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Request Body

application/json

Daily period requested, up to 30 days.

Daily period requested, up to 30 days.

days?integer

The number of days in a recent period to query

Formatint32

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/dm/v1/smartAlerts/actions/metrics" \  -H "Content-Type: application/json" \  -d '{}'
{  "critical": 0,  "major": 0,  "minor": 0,  "noalert": 1,  "total": 1,  "deltacritical": -3,  "deltamajor": -1,  "deltaminor": 0,  "deltanoalert": -15}