Anomaly Triggers

Create trigger based on the category.

POST
/m2m/v1/triggers

This corresponds to the M2M-MC SOAP interface, CreateTrigger.

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

Create Trigger Request

Create Trigger Request

accountName?string
Match^[A-Za-z0-9]{3,32}$
Length3 <= length <= 32
anomalyTriggerRequest?

The details of the UsageAnomaly trigger.

dataTriggerRequest?
groupName?string
Match^[A-Za-z0-9]{3,32}$
Length3 <= length <= 32
name?string
Match^[A-Za-z0-9]{3,32}$
Length3 <= length <= 32
sessionTriggerRequest?
smsTriggerRequest?
triggerCategory?string
Match^[A-Za-z0-9]{3,32}$
Length3 <= length <= 32
triggerCycle?string
Match^[A-Za-z0-9]{3,32}$
Length3 <= length <= 32

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/m2m/v1/triggers" \  -H "Content-Type: application/json" \  -d '{}'
{  "triggerId": "595f5c44-c31c-4552-8670-020a1545a84d"}