API Guide
Table 61. Attributes
Attribute Description
AlertIds List of alert IDs. This value is an empty list when AllAlerts is True.
AllAlerts True or False. Determines if action should be taken for all alerts.
Filters Optional filters to specify when AllAlerts is True.
DeviceIds List of IDs of devices.
DeviceType Device type ID.
Severity ID of severity.
StatusType ID of status type.
StartDate Start date and time when the alerts were raised.
EndDate End date and time when the alerts were raised.
SourceName Source of the alert.
Category Category ID associated to the alert.
SubCategory Subcategory ID associated to the alert.
Message Description of the issue.
Alert policies
/api/AlertService/AlertPolicies
This URI represents the policies that are created.
Table 62. Filters
Filter name Description
Top Top records to return. Default value is 100.
Skip Maximum records to skip. Default value is 0.
Id Filter by policy IDs.
State Filter by state—True or False.
Visible Filter by visible state—True or False.
GET method for AlertPolicies
This method returns the policies that are created.
Description
Returns all the policies.
Privilege VIEW
HTTP response
codes
200
Example response
body
{
"@odata.context": "$metadata#Collection(AlertService.AlertPolicy)",
"@odata.count": 1,
"value": [
{
"@odata.id": "/api/AlertService/AlertPolicies(314)",
"Id": 314,
"Name": "Default OnDemand Health Policy",
98 Alerts