Anomaly Triggers V2

CreateAnomalyDetectionTriggerV2

POST
/m2m/v2/triggers

Creates the trigger to identify an anomaly.

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

Request to create an anomaly trigger.

Request to create an anomaly trigger.

[index: integer]?||

Response Body

application/json

application/json

curl -X POST "https://example.com/m2m/v2/triggers" \  -H "Content-Type: application/json" \  -d '[    {      "name": "Anomaly Daily Usage REST Test-Patch 1",      "triggerCategory": "UsageAnomaly",      "accountName": "0000123456-00001",      "anomalyTriggerRequest": {        "accountNames": "0000123456-00001",        "includeAbnormal": true,        "includeVeryAbnormal": true,        "includeUnderExpectedUsage": true,        "includeOverExpectedUsage": true      },      "notification": {        "notificationType": "DailySummary",        "callback": true,        "emailNotification": false,        "notificationGroupName": "Anomaly Test API",        "notificationFrequencyFactor": 3,        "notificationFrequencyInterval": "Hourly",        "externalEmailRecipients": "placeholder@verizon.com",        "smsNotification": true,        "smsNumbers": [          {            "carrier": "US Cellular",            "number": "9299280711"          }        ],        "reminder": true,        "severity": "Critical"      }    }  ]'
{  "triggerId": "595f5c44-c31c-4552-8670-020a1545a84d"}