Premium APIsThingSpace IntelligenceAnomaly DetectionAPI Reference

Activate Anomaly Detection

PUT /intelligence/anomaly/settings

Activates Anomaly Detection for an account ID and sets the initial thresholds for detection triggers.

HTTP Request

PUT https://thingspace.verizon.com/api/m2m/v1/intelligence/anomaly/settings

Resource Path and Query Parameters

None.

Header Parameters

The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization
required
stringHTTP Authorization bearer token:
Authorization: Bearer {token}
VZ-M2M-Token
required
stringA valid session token:
VZ-M2M-Token: {M2Mtoken}
Content-Type
required
stringMust be application/json:
Content-Type: application/json

Request Body

The request body identifies the account that Anomaly Detection willl be activated for and sets initial maximums for abnormal and very abnormal and if abnormal, very abnormal or both will be monitored.

Parameter NameData TypeDescription
accountName (required)stringThe name of a billing account. An account name is usually numeric, and must include any leading zeros.
requestType (required)stringThe type of request being made. anomaly is the request to activate Anomaly Detection
sensitivityParameterobjectThe initial values and monitoring state for abnormal and very abnormal.
sensitivityParameter.abnormalMaxValue
(required if being monitored)
stringThe maximum value of the threshold in the units being measured.
sensitivityParameter.enableAbnormal (required)booleanIf abnomal values are being monitored.
true - Monitor for abnormal values,
false - Do not monitor for abnormal values
sensitivityParameter.enableVeryAbnormal (required)booleanIf very abnomal values are being monitored.
true - Monitor for very abnormal values
false - Do not monitor for very abnormal values
sensitivityParameter.veryAbnormalMaxValue
(required if being monitored)
stringThe maximum value of the threshold in the units being measured.

Example Request

{
  "accountName": "0000123456-00001",
  "requestType": "anomaly",
  "sensitivityParameter": [
    {
      "abnormalMaxValue": 1.1,
      "enableAbnormal": true,
      "enableVeryAbnormal": true,
      "veryAbnormalMaxValue": 0.55
    }
  ]
}

Success Responses

Status 200

Example Success Response

{
  "status": "Success"
}

Failure Responses

Status 400

All error messages are returned in this format:

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

On this page