alert-query

alert-query
alert-query

Query for alerts by various criteria.
Composition of filtering criteria controlled via the compositeOperator property.
For Pagination see PageInfo
For sorting see AlertField and SortOrder enumerations.
If a sort field is not specified but pagination is requested the Alerts will be
sorted by the alertId field.

JSON Example
{
    "compositeOperator": "string",
    "alertId": [
        "string"
    ],
    "alertName": "string",
    "resource-query": {
        "name": [
            "string"
        ],
        "regex": [
            "string"
        ],
        "adapterKind": [
            "string"
        ],
        "resourceKind": [
            "string"
        ],
        "collectorName": [
            "string"
        ],
        "collectorId": [
            0
        ],
        "maintenanceScheduleId": [
            "string"
        ],
        "adapterInstanceId": [
            "string"
        ],
        "recentlyAdded": 0,
        "resourceState": [
            "string"
        ],
        "resourceStatus": [
            "string"
        ],
        "resourceHealth": [
            "string"
        ],
        "parentId": [
            "string"
        ],
        "credentialId": [
            "string"
        ],
        "resourceId": [
            "string"
        ],
        "propertyName": "string",
        "propertyValue": "string",
        "statKey": "string",
        "statKeyLowerBound": "number",
        "statKeyUpperBound": "number",
        "statKeyInclusive": false,
        "propertyConditions": {
            "conjunctionOperator": "string",
            "conditions": [
                {
                    "key": "string",
                    "operator": "string",
                    "stringValue": "string",
                    "doubleValue": "number"
                }
            ]
        },
        "statConditions": {
            "conjunctionOperator": "string",
            "conditions": [
                {
                    "key": "string",
                    "operator": "string",
                    "stringValue": "string",
                    "doubleValue": "number"
                }
            ]
        },
        "includeRelated": "string",
        "resourceTag": [
            {
                "category": "string",
                "name": "string"
            }
        ]
    },
    "activeOnly": false,
    "alertTypeSubtype": [
        {
            "type": 0,
            "subtype": [
                0
            ]
        }
    ],
    "alertCriticality": [
        "string"
    ],
    "alertStatus": [
        "string"
    ],
    "alertImpact": [
        "string"
    ],
    "alertDefinitionId": [
        "string"
    ],
    "alertControlState": [
        "string"
    ],
    "startTimeRange": {
        "startTime": 0,
        "endTime": 0
    },
    "updateTimeRange": {
        "startTime": 0,
        "endTime": 0
    },
    "cancelTimeRange": {
        "startTime": 0,
        "endTime": 0
    },
    "includeChildrenResources": false,
    "extractOwnerName": false,
    "userId": "string",
    "userName": "string",
    "resourceKind": "string",
    "groupingCondition": "string",
    "groupId": "string"
}
string
compositeOperator
Optional

Operations for Composite Conditions

Possible values are : AND, OR,
array of string
alertId
Optional

Filter based on Alert identifiers

string
alertName
Optional

Filter based on Alert name using 'contains' logic

resource-query
Optional

Object used to lookup resources with various filtering criteria

boolean
activeOnly
Optional

Filter to return only Active alerts, if true, the query will exclude Suspended and Cancelled Alerts

alertTypeSubtype
Optional

Filter based on Alert Type

array of string
alertCriticality
Optional

Filter based on Alert Criticality

Possible values are : UNKNOWN, NONE, INFORMATION, WARNING, IMMEDIATE, CRITICAL, AUTO,
array of string
alertStatus
Optional

Filter based on the Alert Status. If looking for only active alerts combined
with other filter criteria then use the activeOnly property instead.

Possible values are : NEW, ACTIVE, UPDATED, CANCELED,
array of string
alertImpact
Optional

Filter based on the Alert Impact

array of string
alertDefinitionId
Optional

Filter based on the Alert definition id

array of string
alertControlState
Optional

Filter based on the Alert Control State

Possible values are : OPEN, ASSIGNED, SUSPENDED, SUPPRESSED,
startTimeRange
Optional

Filter based on matching UTC cancel time

updateTimeRange
Optional

Filter based on matching UTC cancel time

cancelTimeRange
Optional

Filter based on matching UTC cancel time

boolean
includeChildrenResources
Optional

True to include alerts generated by child resources

boolean
extractOwnerName
Optional

Indicates whether need to report alert owner's name in addition to owner's id

string
userId
Optional

Filter based on user id

string
userName
Optional

Filter based on user name using 'contains' logic

string
resourceKind
Optional

Filter based on resource kind using 'contains' logic

string
groupingCondition
Optional

Indicates the alert grouping condition

Possible values are : GROUP_BY_ALERT_DEFINITION, GROUP_BY_RESOURCE_KIND, GROUP_BY_CRITICALITY, GROUP_BY_TIME, GROUP_BY_SCOPE,
string
groupId
Optional

Filter based on alert group id