API Guide

Table Of Contents
Table 65. Attributes (continued)
Attribute name Description
PolicyCriteria Link to the criteria for the evaluation of the alert contents
with the policy contents. This evaluation determines if the
policy is valid and if any actions are triggered.
/api/AlertService/AlertPolicies(Arg1)/PolicyCriteria
This URI represents the criteria used for matching the policy with incoming events. The criteria determine if the policy can
trigger any actions.
Table 66. Filters
Attribute name Description
Top Top records to return. Default value is 100.
Skip Maximum records to skip. Default value is 0.
Arg1 Filter by list of policies IDs. Default value is 0.
Id Filter by list of criteria IDs. Default value is 0.
Type Filter by list of criteria types ID. Default value is 0.
ComparisonType Filer by list of comparison types IDs. Default value is 0.
GET method for PolicyCriteria
This method returns the criteria that are used for matching the policy with incoming events.
Description
Returns the criteria used for matching the policy with incoming events.
Privilege VIEW
HTTP response
codes
200
Example
response body
{
"@odata.context": "$metadata#Collection(AlertService.PolicyCriterion)",
"@odata.count": 1,
"value": [
{
"@odata.id": "/api/AlertService/AlertPolicies(314)/
PolicyCriteria(4)",
"Id": 4,
"PolicyId": 314,
"Parameter": "",
"Value": "(catalogName == 'iDRAC' AND categoryId==3300) AND
(severityType==1 OR
severityType==2 OR severityType==4 OR severityType==8 OR
severityType==16)",
"Type": 3,
"TypeName": "EXPRESSION",
"ComparisonType": 3,
"ComparisonTypeName": "Equal"
}
]
}
138 Alerts