API Guide

Table 67. Attributes(continued)
Attribute name Description
EndTime End event-time to verify. This value indicates the end date and
time for policy validity. If defined. This field is validated during
policy evaluation.
CronString CRON string associated to the policy. This field indicates a special
CRON that can be applied to the policy to indicate values such as
the days for which the policy is valid.
Actions
Id ID of action.
Name Name associated with the action.
ParameterDetails Extra parameters that can be used for the action.
TemplateId ID of the template associated with the action.
PolicyActions Link to the list of actions that can be triggered for the policy.
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 68. 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
Input:
Output:
{
"@odata.context": "$metadata#Collection(AlertService.PolicyCriterion)",
"@odata.count": 1,
"value": [
{
"@odata.id": "/api/AlertService/AlertPolicies(314)/PolicyCriteria(4)",
Alerts 99