AlertQueryCriteria

AlertQueryCriteria
AlertQueryCriteria

Criteria used to filter the alert instances.

JSON Example
{
    "constraints": {
        "constraints": {
            "operator": "AND",
            "fieldName": null,
            "value": null,
            "constraints": [
                {
                    "operator": "EXISTS",
                    "fieldName": "text",
                    "value": "error",
                    "constraints": [],
                    "tags": []
                },
                {
                    "operator": "EXISTS",
                    "fieldName": "text",
                    "value": "exception",
                    "constraints": [],
                    "tags": []
                },
                {
                    "operator": "LESS_THAN",
                    "fieldName": "build_number",
                    "value": "7408",
                    "constraints": [],
                    "tags": []
                }
            ],
            "tags": []
        }
    },
    "groupByTerms": [
        {
            "groupByTerms": [
                {
                    "fieldName": "timestamp",
                    "groupByType": "FIXED_BUCKET"
                }
            ]
        }
    ]
}
constraints
Required

constraints

groupByTerms
Optional

List of 'group by' terms associated with the alert query