Premium APIsThingSpace IntelligenceAnomaly DetectionAPI Reference

Retrieve a Trigger Value for Anomaly Detection

GET /v2/triggers/{triggerId}

Retrieving a trigger for anomaly detection is similar to updating any trigger in Connectivity Management. The only difference is a few new values added for Anomaly Detection. This page will cover the new values and provide examples of what requests look like with the new values.

HTTP Request

GET https://thingspace.verizon.com/api/m2m/v2/triggers/{triggerId}

Request Body

Parameter NameData TypeDescription
triggerId (required)stringThis is the system assigned ID of the trigger being retrieved.

Response Parameters

Parameter NameData TypeDescription
triggersobjectTrigger details
triggers.triggerIdstringThe system assigned name of the trigger being updated
triggers.triggerNamestringThe user defined name of the trigger
triggers.organizationNamestringThe user assigned name of the organization associated with the trigger
triggers.triggerCategorystringUsageAnomaly - This is the value to use in the request body to detect anomalous behaivior. The values in this table will only be relevant when this parameter is set to this value.
triggers.triggerAttributesobjectadditional details and keys for the trigger
triggers.triggerAttributes.keystringIf present, the NotificationGroupName will be listed here
triggers.triggerAttributes.keystringT he ServicePlan name will be listed here
triggers.triggerAttributes.keybooleanDataPercentage50
True - Trigger on Data percentage is over 50% used, False - Do not trigger when over 50% used.
triggers.triggerAttributes.keybooleanDataPercentage75
True - Trigger on Data percentage is over 75% used, False - Do not trigger when over 75% used.
triggers.triggerAttributes.keybooleanDataPercentage90
True - Trigger on Data percentage is over 90% used, False - Do not trigger when over 90% used.
triggers.triggerAttributes.keybooleanDataPercentage100
True - Trigger on Data percentage is over 100% used, False - Do not trigger when over 100% used.
triggers.triggerAttributes.createdAtstring (date-time)Timestamp for whe the trigger was created.
triggers.triggerAttributes.modifiedAtstring (date-time)Timestamp for the most recent time the trigger was modified.
triggers.anomalyattributesobjectThe details of the UsageAnomaly trigger.
triggers.anomalyattributes.accountNames
either accountNames or deviceGroup is displayed
stringThe Verizon billing account associated with the anomaly triggers for this trigger to be active for devices in those accounts. An account name is usually numeric, and must include any leading zeros.
triggers.anomalyattributes.deviceGroups
either accountNames or deviceGroup is displayed
stringThe names of device groups associated with the anomaly triggers for this trigger to be active for devices in those groups.
triggers.anomalyattributes.includeAbnormalbooleanWhether or not to include anomalies classified as “abnormal". true or false.
Classification is set as part of ThingSpace Intelligence anomaly detection settings.
triggers.anomalyattributes.includeVeryAbnormalbooleanWhether or not to include anomalies classified as “very abnormal”. true or false.
Classification is set as part of ThingSpace Intelligence anomaly detection settings.
triggers.anomalyattributes.includeUnderExpectedUsagebooleanWhether or not to include anomalies that are directionally under the expected usage. true or false.
triggers.anomalyattributes.includeOverExpectedUsagebooleanWhether or not to include anomalies that are directionally over the expected usage. true or false.
triggers.notificationobjectThe notification details of the trigger.
triggers.notification.notificationTypestringThe type of notification, i.e. "DailySummary".
triggers.notification.callbackbooleanWhether or not the notification should be sent via callback. true or false.
triggers.notification.emailNotificationbooleanWhether or not the notification should be sent via e-mail. true or false.
triggers.notification.notificationGroupNamestringName for the notification group
triggers.notification.notificationFrequencyFactorintegerhow often notifications will occur once the threshold is met
triggers.notification.notificationFrequencyIntervalintegerHow much time between notifications
triggers.notification.externalEmailRecipientsstringE-mail address(es) where the notification should be delivered.
triggers.notification.smsNotificationbooleanIf notifications will be sent out as SMS messages to cellphones.
True - SMS messages will be sent, False - SMS messages will not be sent.
triggers.notification.smsNumbersstringA comma seperated list of 10-digit cellphone numbers to send notifications to.
triggers.notification.reminderbooleanIf a daily reminder from the trigger will be sent regardless of the threshold being met or not.
True - Send a daily reminder, False - No reminder will be sent.
triggers.notification.severitystringSeverity level associated with the notification. Examples would be: Major, Minor, Critical, NotApplicable.

Success Responses

SA successful request will return a trigger ID to identify the request in a callback. For more information about callbacks, please visit About Callback Services

Status 200

{
    "triggers": [
        {
            "triggerId": "BE1B5958-3E11-41DB-9ABD-B1B7618C0035",
            "triggerName": "Anomaly Daily Usage REST Test-1",
            "organizationName": "AnamolyDetectionRTRTest",
            "triggerCategory": "UsageAnomaly",
            "triggerAttributes": [
                {
                    "key": "NotificationGroupName"
                },
                {
                    "key": "ServicePlan"
                },
                {
                    "key": "DataPercentage50",
                    "value": "False"
                },
                {
                    "key": "DataPercentage75",
                    "value": "False"
                },
                {
                    "key": "DataPercentage90",
                    "value": "False"
                },
                {
                    "key": "DataPercentage100",
                    "value": "False"
                }
            ],
            "createdAt": "2021-10-21T23:57:003.397Z",
            "modifiedAt": "2021-10-21T23:57:003.397Z",
            "anomalyAttributes": {
                "accountNames": [
                    "0000123456-00001"
                ],
                "deviceGroup": "User Group 1",
                "includeAbnormal": true,
                "includeVeryAbnormal": true,
                "includeUnderExpectedUsage": true,
                "includeOverExpectedUsage": true
            },
            "notification": {
                "notificationType": "DailySummary",
                "callback": true,
                "emailNotification": true,
                "notificationGroupName": "Anomaly Test API",
                "notificationFrequencyFactor": -2147483648,
                "externalEmailRecipients": "placeholder@verizon.com",
                "smsNotification": true,
                "smsNumbers": "10-digit cellphone number",
                "reminder": false,
                "severity": "Critical"
            }
        }
    ]
}

Failure Responses

All error messages are returned in this format:

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

On this page