{"openapi":"3.0.0","info":{"description":"Azure Alerts Management Service provides a single pane of glass of alerts across Azure Monitor.","title":"Azure Alerts Management Service Resource Provider","version":"2019-05-05-preview","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"alertsmanagement-AlertsManagement","x-tags":["Azure","Microsoft"]},"paths":{"/providers/Microsoft.AlertsManagement/alertsMetaData":{"get":{"description":"List alerts meta data information based on value of identifier parameter.","operationId":"Alerts_MetaData","parameters":[{"$ref":"#/components/parameters/api-version"},{"$ref":"#/components/parameters/identifier"}],"responses":{"200":{"description":"OK. Successfully listed alert meta data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/alertsMetaData"},"examples":{"MonService":{"$ref":"#/components/examples/MonService"}}}}}}}},"/providers/Microsoft.AlertsManagement/operations":{"get":{"description":"List all operations available through Azure Alerts Management Resource Provider.","operationId":"Operations_List","parameters":[{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Successfully retrieved operations list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/operationsList"}}}}},"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/actionRules":{"get":{"description":"List all action rules of the subscription and given input filters","operationId":"ActionRules_ListBySubscription","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/targetResourceGroup"},{"$ref":"#/components/parameters/targetResourceType"},{"$ref":"#/components/parameters/targetResource"},{"$ref":"#/components/parameters/severity"},{"$ref":"#/components/parameters/monitorService"},{"$ref":"#/components/parameters/impactedScope"},{"$ref":"#/components/parameters/description"},{"$ref":"#/components/parameters/alertRuleId"},{"$ref":"#/components/parameters/actionGroup"},{"$ref":"#/components/parameters/actionRuleName"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Return the list of action rules","headers":{"x-ms-request-id":{"description":"Service generated Request ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRulesList"},"examples":{"GetActionRulesSubscriptionWide":{"$ref":"#/components/examples/GetActionRulesSubscriptionWide"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Get all action rule in a given subscription","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts":{"get":{"description":"List all existing alerts, where the results can be filtered on the basis of multiple parameters (e.g. time range). The results can then be sorted on the basis specific fields, with the default being lastModifiedDateTime. ","operationId":"Alerts_GetAll","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/targetResource"},{"$ref":"#/components/parameters/targetResourceType"},{"$ref":"#/components/parameters/targetResourceGroup"},{"$ref":"#/components/parameters/monitorService"},{"$ref":"#/components/parameters/monitorCondition"},{"$ref":"#/components/parameters/severity"},{"$ref":"#/components/parameters/alertState"},{"$ref":"#/components/parameters/alertRule"},{"$ref":"#/components/parameters/smartGroupIdFilter"},{"$ref":"#/components/parameters/includeContext"},{"$ref":"#/components/parameters/includeEgressConfig"},{"$ref":"#/components/parameters/pageCount"},{"$ref":"#/components/parameters/alertsSortBy"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/select"},{"$ref":"#/components/parameters/timeRange"},{"$ref":"#/components/parameters/customTimeRange"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Successfully listed alert objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/alertsList"},"examples":{"ListAlerts":{"$ref":"#/components/examples/ListAlerts"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}":{"get":{"description":"Get information related to a specific alert","operationId":"Alerts_GetById","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/alertId"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Returns the alert with the specified ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/alert"},"examples":{"GetById":{"$ref":"#/components/examples/GetById"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Get a specific alert."}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}/changestate":{"post":{"description":"Change the state of an alert.","operationId":"Alerts_ChangeState","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/alertId"},{"$ref":"#/components/parameters/api-version"},{"$ref":"#/components/parameters/newState"}],"responses":{"200":{"description":"OK. Alert state updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/alert"},"examples":{"Resolve":{"$ref":"#/components/examples/Resolve"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}}}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}/history":{"get":{"description":"Get the history of an alert, which captures any monitor condition changes (Fired/Resolved) and alert state changes (New/Acknowledged/Closed).","operationId":"Alerts_GetHistory","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/alertId"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Returns the history of the specified alert.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/alertModification"},"examples":{"Resolve":{"$ref":"#/components/examples/Resolve"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}}}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alertsSummary":{"get":{"description":"Get a summarized count of your alerts grouped by various parameters (e.g. grouping by 'Severity' returns the count of alerts for each severity).","operationId":"Alerts_GetSummary","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/alertsSummaryGroupBy"},{"$ref":"#/components/parameters/includeSmartGroupsCount"},{"$ref":"#/components/parameters/targetResource"},{"$ref":"#/components/parameters/targetResourceType"},{"$ref":"#/components/parameters/targetResourceGroup"},{"$ref":"#/components/parameters/monitorService"},{"$ref":"#/components/parameters/monitorCondition"},{"$ref":"#/components/parameters/severity"},{"$ref":"#/components/parameters/alertState"},{"$ref":"#/components/parameters/alertRule"},{"$ref":"#/components/parameters/timeRange"},{"$ref":"#/components/parameters/customTimeRange"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Alert summary returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/alertsSummary"},"examples":{"Summary":{"$ref":"#/components/examples/Summary"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}}}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups":{"get":{"description":"List all the Smart Groups within a specified subscription. ","operationId":"SmartGroups_GetAll","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/targetResource"},{"$ref":"#/components/parameters/targetResourceGroup"},{"$ref":"#/components/parameters/targetResourceType"},{"$ref":"#/components/parameters/monitorService"},{"$ref":"#/components/parameters/monitorCondition"},{"$ref":"#/components/parameters/severity"},{"$ref":"#/components/parameters/smartGroupState"},{"$ref":"#/components/parameters/timeRange"},{"$ref":"#/components/parameters/pageCount"},{"$ref":"#/components/parameters/smartGroupsSortBy"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Returns list of all smartGroups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/smartGroupsList"},"examples":{"List":{"$ref":"#/components/examples/List"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Get all Smart Groups within a specified subscription","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}":{"get":{"description":"Get information related to a specific Smart Group.","operationId":"SmartGroups_GetById","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/smartGroupId"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Returns the group with the specified smart group Id.","headers":{"x-ms-request-id":{"description":"Service generated Request ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/smartGroup"},"examples":{"Get":{"$ref":"#/components/examples/Get"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Get information related to a specific Smart Group."}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState":{"post":{"description":"Change the state of a Smart Group.","operationId":"SmartGroups_ChangeState","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/smartGroupId"},{"$ref":"#/components/parameters/api-version"},{"$ref":"#/components/parameters/newState"}],"responses":{"200":{"description":"OK. Smart Group state updated.","headers":{"x-ms-request-id":{"description":"Service generated Request ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/smartGroup"},"examples":{"changestate":{"$ref":"#/components/examples/changestate"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}}}},"/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/history":{"get":{"description":"Get the history a smart group, which captures any Smart Group state changes (New/Acknowledged/Closed) .","operationId":"SmartGroups_GetHistory","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/smartGroupId"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Returns the list of changes of smart group.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/smartGroupModification"},"examples":{"Resolve":{"$ref":"#/components/examples/Resolve"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules":{"get":{"description":"List all action rules of the subscription, created in given resource group and given input filters","operationId":"ActionRules_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"$ref":"#/components/parameters/targetResourceGroup"},{"$ref":"#/components/parameters/targetResourceType"},{"$ref":"#/components/parameters/targetResource"},{"$ref":"#/components/parameters/severity"},{"$ref":"#/components/parameters/monitorService"},{"$ref":"#/components/parameters/impactedScope"},{"$ref":"#/components/parameters/description"},{"$ref":"#/components/parameters/alertRuleId"},{"$ref":"#/components/parameters/actionGroup"},{"$ref":"#/components/parameters/actionRuleName"},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Return the list of action rules","headers":{"x-ms-request-id":{"description":"Service generated Request ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRulesList"},"examples":{"GetActionRulesResourceGroupWide":{"$ref":"#/components/examples/GetActionRulesResourceGroupWide"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Get all action rules created in a resource group","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{actionRuleName}":{"delete":{"description":"Deletes a given action rule","operationId":"ActionRules_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name that needs to be deleted","in":"path","name":"actionRuleName","required":true,"schema":{"type":"string"},"examples":{"DeleteActionRule":{"value":"DailySuppression"}}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Returns true if deleted successfully","headers":{"x-ms-request-id":{"description":"Service generated Request ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"boolean"},"examples":{"DeleteActionRule":{"$ref":"#/components/examples/DeleteActionRule"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Delete action rule"},"get":{"description":"Get a specific action rule","operationId":"ActionRules_GetByName","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of action rule that needs to be fetched","in":"path","name":"actionRuleName","required":true,"schema":{"type":"string"},"examples":{"GetActionRuleById":{"value":"DailySuppression"}}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK. Returns the specific action rule","headers":{"x-ms-request-id":{"description":"Service generated Request ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRule"},"examples":{"GetActionRuleById":{"$ref":"#/components/examples/GetActionRuleById"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Get action rule by name"},"patch":{"description":"Update enabled flag and/or tags for the given action rule","operationId":"ActionRules_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name that needs to be updated","in":"path","name":"actionRuleName","required":true,"schema":{"type":"string"},"examples":{"PatchActionRule":{"value":"WeeklySuppression"}}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchObject"}}},"description":"Parameters supplied to the operation.","required":true},"responses":{"200":{"description":"OK. Returns the created/updated action rule","headers":{"x-ms-request-id":{"description":"Service generated Request ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRule"},"examples":{"PatchActionRule":{"$ref":"#/components/examples/PatchActionRule"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Patch action rule"},"put":{"description":"Creates/Updates a specific action rule","operationId":"ActionRules_CreateUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of action rule that needs to be created/updated","in":"path","name":"actionRuleName","required":true,"schema":{"type":"string"},"examples":{"PutActionRule":{"value":"DailySuppression"}}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRule"}}},"description":"action rule to be created/updated","required":true},"responses":{"200":{"description":"OK. Returns the created/updated action rule","headers":{"x-ms-request-id":{"description":"Service generated Request ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRule"},"examples":{"PutActionRule":{"$ref":"#/components/examples/PutActionRule"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"}}}}},"summary":"Create/update an action rule"}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"MonService":{"value":{"properties":{"data":[{"displayName":"Activity Log - Administrative","name":"ActivityLog Administrative"},{"displayName":"Activity Log - Autoscale","name":"ActivityLog Autoscale"},{"displayName":"Activity Log - Policy","name":"ActivityLog Policy"},{"displayName":"Activity Log - Recommendation","name":"ActivityLog Recommendation"},{"displayName":"Activity Log - Security","name":"ActivityLog Security"},{"displayName":"Application Insights","name":"Application Insights"},{"displayName":"Azure Backup","name":"Azure Backup"},{"displayName":"Custom","name":"Custom"},{"displayName":"Data Box Edge","name":"Data Box Edge"},{"displayName":"VM Insights","name":"VM Insights"},{"displayName":"Log Analytics","name":"Log Analytics"},{"displayName":"NAGIOS","name":"Nagios"},{"displayName":"Platform","name":"Platform"},{"displayName":"Resource Health","name":"Resource Health"},{"displayName":"SCOM","name":"SCOM"},{"displayName":"Service Health","name":"ServiceHealth"},{"displayName":"SmartDetector","name":"Smart Detector"},{"displayName":"ZABBIX","name":"Zabbix"}],"metadataIdentifier":"MonitorServiceList"}}},"GetActionRulesSubscriptionWide":{"value":{"nextLink":"https://management.azure.com:443/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/actionRules?api-version=2018-11-02-privatepreview&ctoken=%2bRID%3aPlwOAPHEGwB9UwEAAAAgCw%3d%3d%23RT%3a2%23TRC%3a500%23RTD%3aqtQyMDE4LTA2LTEyVDE1OjEyOjE1","value":[{"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression","location":"Global","name":"DailySuppression","properties":{"conditions":{"monitorService":{"operator":"Equals","values":["Platform","Application Insights"]},"severity":{"operator":"Equals","values":["Sev0","Sev2"]},"targetResourceType":{"operator":"NotEquals","values":["Microsoft.Compute/VirtualMachines"]}},"createdAt":"2018-06-12T22:05:09Z","createdBy":"abc@microsoft.com","description":"Action rule on resource group for daily suppression","lastModifiedAt":"2018-06-12T22:05:09Z","lastModifiedBy":"xyz@microsoft.com","scope":{"scopeType":"ResourceGroup","values":["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"]},"status":"Enabled","suppressionConfig":{"recurrenceType":"Daily","schedule":{"endDate":"12/18/2018","endTime":"14:00:00","startDate":"12/09/2018","startTime":"06:00:00"}},"type":"Suppression"},"tags":{},"type":"Microsoft.AlertsManagement/actionRules"},{"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/WeeklySuppression","location":"Global","name":"WeeklySuppression","properties":{"conditions":{"description":{"operator":"Contains","values":["Percentage CPU greater than 80%","Metric alert on resource foo"]},"monitorCondition":{"operator":"Equals","values":["Fired"]}},"createdAt":"2018-06-12T22:05:09Z","createdBy":"abc@microsoft.com","description":"Action rule on resource group for sending diagnostics","lastModifiedAt":"2018-06-12T22:05:09Z","lastModifiedBy":"xyz@microsoft.com","scope":{"scopeType":"Resource","values":["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.Compute/VirtualMachines/testResource"]},"status":"Enabled","type":"Diagnostics"},"tags":{},"type":"Microsoft.AlertsManagement/actionRules"}]}},"ListAlerts":{"value":{"nextLink":"https://management.azure.com:443/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/alerts?api-version=2018-05-05-preview&timeRange=1d&ctoken=%2bRID%3aPlwOAPHEGwB9UwEAAAAgCw%3d%3d%23RT%3a2%23TRC%3a500%23RTD%3aqtQyMDE4LTA2LTEyVDE1OjEyOjE1","value":[{"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100","name":"cpu alert","properties":{"context":{},"egressConfig":{},"essentials":{"alertRule":"https://servisdffsdf.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=","alertState":"Acknowledged","lastModifiedDateTime":"2018-09-13T15:51:02Z","lastModifiedUserName":"System","monitorCondition":"Fired","monitorConditionResolvedDateTime":"2018-09-13T15:51:02Z","monitorService":"Application Insights","severity":"Sev3","signalType":"Log","smartGroupId":"23d6b2ce-8c54-468f-aff0-sd32aebb7e56","smartGroupingReason":"Occurred frequently with other alerts","sourceCreatedId":"6cd6b2ce-8c54-468f-aff0-9d12aebb7e49","startDateTime":"2018-09-13T15:51:02Z","targetResource":"/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight","targetResourceGroup":"servicedeskresourcegroup","targetResourceName":"servicedeskappinsight","targetResourceType":"components"}},"type":"Microsoft.AlertsManagement/alerts"},{"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100","name":"cpu alert","properties":{"context":{},"egressConfig":{},"essentials":{"alertRule":"https://servicsdfsdf.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=","alertState":"New","lastModifiedDateTime":"2018-09-13T15:51:02Z","lastModifiedUserName":"System","monitorCondition":"Fired","monitorConditionResolvedDateTime":"2018-09-13T15:51:02Z","monitorService":"Application Insights","severity":"Sev3","signalType":"Log","smartGroupId":"d1c49c89-ea95-4697-a299-c0f5ebac62f1","smartGroupingReason":"Alerts that frequently occur together have been grouped.","sourceCreatedId":"6cd6b2ce-8c54-468f-aff0-9d12aebb7e49","startDateTime":"2018-09-13T15:51:02Z","targetResource":"/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/cind/providers/microsoft.operationalinsights/workspaces/servicedeskwcus","targetResourceGroup":"servicedeskresourcegroup","targetResourceName":"servicedeskwcus","targetResourceType":"components"}},"type":"Microsoft.AlertsManagement/alerts"}]}},"GetById":{"value":{"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100","name":"cpu alert","properties":{"context":{},"egressConfig":{},"essentials":{"alertRule":"https://sersdfsdfinsight.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=","alertState":"Acknowledged","lastModifiedDateTime":"2018-09-13T15:51:02Z","lastModifiedUserName":"System","monitorCondition":"Fired","monitorConditionResolvedDateTime":"2018-09-13T15:51:02Z","monitorService":"Application Insights","severity":"Sev3","signalType":"Log","smartGroupId":"23d6b2ce-8c54-468f-aff0-sd32aebb7e56","smartGroupingReason":"Occurred frequently with other alerts","sourceCreatedId":"6cd6b2ce-8c54-468f-aff0-9d12aebb7e49","startDateTime":"2018-09-13T15:51:02Z","targetResource":"/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight","targetResourceGroup":"servicedeskresourcegroup","targetResourceName":"servicedeskappinsight","targetResourceType":"components"}},"type":"Microsoft.AlertsManagement/alerts"}},"Resolve":{"value":{"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/smartGroups/a808445e-bb38-4751-85c2-1b109ccc1059/history/default","name":"cpu alert","properties":{"modifications":[{"comments":"","description":"New Smart Group is created","modificationEvent":"SmartGroupCreated","modifiedAt":"2018-06-06T12:35:09Z","modifiedBy":"System","newValue":"","oldValue":""}],"smartGroupId":"a808445e-bb38-4751-85c2-1b109ccc1059"},"type":"Microsoft.AlertsManagement/alerts"}},"Summary":{"value":{"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/alertsSummary/current","name":"current","properties":{"groupedby":"severity","smartGroupsCount":100,"total":14189,"values":[{"count":6517,"groupedby":"alertState","name":"Sev0","values":[{"count":6517,"name":"New"},{"count":0,"name":"Acknowledged"},{"count":0,"name":"Closed"}]},{"count":3175,"groupedby":"alertState","name":"Sev1","values":[{"count":3175,"name":"New"},{"count":0,"name":"Acknowledged"},{"count":0,"name":"Closed"}]},{"count":1120,"groupedby":"alertState","name":"Sev2","values":[{"count":1120,"name":"New"},{"count":0,"name":"Acknowledged"},{"count":0,"name":"Closed"}]},{"count":1902,"groupedby":"alertState","name":"Sev3","values":[{"count":1902,"name":"New"},{"count":0,"name":"Acknowledged"},{"count":0,"name":"Closed"}]},{"count":1475,"groupedby":"alertState","name":"Sev4","values":[{"count":1475,"name":"New"},{"count":0,"name":"Acknowledged"},{"count":0,"name":"Closed"}]}]},"type":"Microsoft.AlertsManagement/alertsSummary"}},"List":{"value":{"value":[{"id":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/providers/Microsoft.AlertsManagement/smartGroups/a808445e-bb38-4751-85c2-1b109ccc1059","name":"cpu alert","properties":{"alertSeverities":[{"count":1942,"name":"Sev3"}],"alertStates":[{"count":1941,"name":"New"},{"count":1,"name":"Acknowledged"}],"alertsCount":1942,"lastModifiedDateTime":"2018-06-13T06:30:09Z","lastModifiedUserName":"System","monitorConditions":[{"count":1942,"name":"Fired"}],"monitorServices":[{"count":1942,"name":"Application Insights"}],"resourceGroups":[{"count":1942,"name":"alertscorrelationrg"}],"resourceTypes":[{"count":1942,"name":"components"}],"resources":[{"count":1942,"name":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int"}],"severity":"Sev3","smartGroupState":"New","startDateTime":"2018-06-06T12:35:09Z"},"type":"Microsoft.AlertsManagement/smartGroups"},{"id":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/providers/Microsoft.AlertsManagement/smartGroups/01114c7c-769f-4fd4-b6fa-ab77693b83cd","name":"CPU Alert","properties":{"alertSeverities":[{"count":6984,"name":"Sev0"},{"count":6927,"name":"Sev1"}],"alertStates":[{"count":15358,"name":"New"},{"count":12,"name":"Acknowledged"},{"count":4,"name":"Closed"}],"alertsCount":15374,"lastModifiedDateTime":"2018-06-13T06:29:01Z","lastModifiedUserName":"System","monitorConditions":[{"count":15374,"name":"Fired"}],"monitorServices":[{"count":13911,"name":"Log Analytics"}],"resourceGroups":[{"count":15374,"name":"mms-eus"}],"resourceTypes":[{"count":6912,"name":"microsoft.operationalinsights/workspaces"},{"count":8462,"name":"workspaces"}],"resources":[{"count":15374,"name":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/alertsint"}],"severity":"Sev0","smartGroupState":"Acknowledged","startDateTime":"2018-05-17T10:18:44.2020997Z"},"type":"Microsoft.AlertsManagement/smartGroups"}]}},"Get":{"value":{"id":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/providers/Microsoft.AlertsManagement/smartGroups/a808445e-bb38-4751-85c2-1b109ccc1059","name":"cpu alert","properties":{"alertSeverities":[{"count":1942,"name":"Sev3"}],"alertStates":[{"count":1941,"name":"New"},{"count":1,"name":"Acknowledged"}],"alertsCount":1942,"lastModifiedDateTime":"2018-06-13T06:30:09Z","lastModifiedUserName":"System","monitorConditions":[{"count":1942,"name":"Fired"}],"monitorServices":[{"count":1942,"name":"Application Insights"}],"resourceGroups":[{"count":1942,"name":"alertscorrelationrg"}],"resourceTypes":[{"count":1942,"name":"components"}],"resources":[{"count":1942,"name":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int"}],"severity":"Sev3","smartGroupState":"New","startDateTime":"2018-06-06T12:35:09Z"},"type":"Microsoft.AlertsManagement/smartGroups"}},"changestate":{"value":{"id":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/providers/Microsoft.AlertsManagement/smartGroups/a808445e-bb38-4751-85c2-1b109ccc1059","name":"cpu alert","properties":{"alertSeverities":[{"count":1942,"name":"Sev3"}],"alertStates":[{"count":1941,"name":"New"},{"count":1,"name":"Acknowledged"}],"alertsCount":1942,"lastModifiedDateTime":"2018-06-13T06:30:09Z","lastModifiedUserName":"System","monitorConditions":[{"count":1942,"name":"Fired"}],"monitorServices":[{"count":1942,"name":"Application Insights"}],"resourceGroups":[{"count":1942,"name":"alertscorrelationrg"}],"resourceTypes":[{"count":1942,"name":"components"}],"resources":[{"count":1942,"name":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int"}],"severity":"Sev3","smartGroupState":"Acknowledged","startDateTime":"2018-06-06T12:35:09Z"},"type":"Microsoft.AlertsManagement/smartGroups"}},"GetActionRulesResourceGroupWide":{"value":{"nextLink":"https://management.azure.com:443/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules?api-version=2018-11-02-privatepreview&ctoken=%2bRID%3aPlwOAPHEGwB9UwEAAAAgCw%3d%3d%23RT%3a2%23TRC%3a500%23RTD%3aqtQyMDE4LTA2LTEyVDE1OjEyOjE1","value":[{"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression","location":"Global","name":"DailySuppression","properties":{"conditions":{"monitorService":{"operator":"Equals","values":["Platform","Application Insights"]},"severity":{"operator":"Equals","values":["Sev0","Sev2"]},"targetResourceType":{"operator":"NotEquals","values":["Microsoft.Compute/VirtualMachines"]}},"createdAt":"2018-06-12T22:05:09Z","createdBy":"abc@microsoft.com","description":"Action rule on resource group for daily suppression","lastModifiedAt":"2018-06-12T22:05:09Z","lastModifiedBy":"xyz@microsoft.com","scope":{"scopeType":"ResourceGroup","values":["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"]},"status":"Enabled","suppressionConfig":{"recurrenceType":"Daily","schedule":{"endDate":"12/18/2018","endTime":"14:00:00","startDate":"12/09/2018","startTime":"06:00:00"}},"type":"Suppression"},"tags":{},"type":"Microsoft.AlertsManagement/actionRules"},{"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/WeeklySuppression","location":"Global","name":"WeeklySuppression","properties":{"actionGroupId":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.insights/actiongroups/testAG","conditions":{"alertContext":{"operator":"DoesNotContain","values":["testresource","foo"]},"description":{"operator":"Contains","values":["Percentage CPU greater than 80%","Metric alert on resource foo"]},"monitorCondition":{"operator":"Equals","values":["Fired"]}},"createdAt":"2018-06-12T22:05:09Z","createdBy":"abc@microsoft.com","description":"Action rule on resource group for sending email","lastModifiedAt":"2018-06-12T22:05:09Z","lastModifiedBy":"xyz@microsoft.com","scope":{"scopeType":"Resource","values":["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.Compute/VirtualMachines/testResource"]},"status":"Enabled","type":"ActionGroup"},"tags":{},"type":"Microsoft.AlertsManagement/actionRules"}]}},"DeleteActionRule":{"value":true},"GetActionRuleById":{"value":{"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression","location":"Global","name":"DailySuppression","properties":{"conditions":{"monitorCondition":{"operator":"Equals","values":["Fired"]},"monitorService":{"operator":"Equals","values":["Platform","Application Insights"]},"severity":{"operator":"Equals","values":["Sev0","Sev2"]},"targetResourceType":{"operator":"NotEquals","values":["Microsoft.Compute/VirtualMachines"]}},"createdAt":"2018-06-12T22:05:09Z","createdBy":"abc@microsoft.com","description":"Action rule on resource group for daily suppression","lastModifiedAt":"2018-06-12T22:05:09Z","lastModifiedBy":"xyz@microsoft.com","scope":{"scopeType":"ResourceGroup","values":["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"]},"status":"Enabled","suppressionConfig":{"recurrenceType":"Daily","schedule":{"endDate":"12/18/2018","endTime":"14:00:00","startDate":"12/09/2018","startTime":"06:00:00"}},"type":"Suppression"},"tags":{},"type":"Microsoft.AlertsManagement/actionRules"}},"PatchActionRule":{"value":{"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/WeeklySuppression","location":"Global","name":"WeeklySuppression","properties":{"conditions":{"monitorService":{"operator":"Equals","values":["Platform","Application Insights"]},"severity":{"operator":"Equals","values":["Sev0","Sev2"]},"targetResourceType":{"operator":"NotEquals","values":["Microsoft.Compute/VirtualMachines"]}},"createdAt":"2018-06-12T22:05:09Z","createdBy":"abc@microsoft.com","description":"Action rule on resource group for weekly suppression","lastModifiedAt":"2018-06-12T22:05:09Z","lastModifiedBy":"xyz@microsoft.com","scope":{"scopeType":"ResourceGroup","values":["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"]},"status":"Disabled","suppressionConfig":{"recurrenceType":"Weekly","schedule":{"endDate":"12/18/2018","endTime":"14:00:00","recurrenceValues":[1,2],"startDate":"12/09/2018","startTime":"06:00:00"}},"type":"Suppression"},"tags":{"key1":"value1","key2":"value2"},"type":"Microsoft.AlertsManagement/actionRules"}},"PutActionRule":{"value":{"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression","location":"Global","name":"DailySuppression","properties":{"conditions":{"monitorCondition":{"operator":"Equals","values":["Fired"]},"monitorService":{"operator":"Equals","values":["Platform","Application Insights"]},"severity":{"operator":"Equals","values":["Sev0","Sev2"]},"targetResourceType":{"operator":"NotEquals","values":["Microsoft.Compute/VirtualMachines"]}},"createdAt":"2018-06-12T22:05:09Z","createdBy":"abc@microsoft.com","description":"Action rule on resource group for daily suppression","lastModifiedAt":"2018-06-12T22:05:09Z","lastModifiedBy":"xyz@microsoft.com","scope":{"scopeType":"ResourceGroup","values":["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"]},"status":"Enabled","suppressionConfig":{"recurrenceType":"Daily","schedule":{"endDate":"12/18/2018","endTime":"14:00:00","startDate":"12/09/2018","startTime":"06:00:00"}},"type":"Suppression"},"tags":{},"type":"Microsoft.AlertsManagement/actionRules"}}},"parameters":{"actionGroup":{"description":"filter by action group configured as part of action rule","in":"query","name":"actionGroup","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"actionRuleName":{"description":"filter by action rule name","in":"query","name":"name","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"alertId":{"description":"Unique ID of an alert instance.","in":"path","name":"alertId","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"GetById":{"value":"66114d64-d9d9-478b-95c9-b789d6502100"},"Resolve":{"value":"66114d64-d9d9-478b-95c9-b789d6502100"}}},"alertRule":{"description":"Filter by specific alert rule.  Default value is to select all.","in":"query","name":"alertRule","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"alertRuleId":{"description":"filter by alert rule id","in":"query","name":"alertRuleId","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"alertState":{"description":"Filter by state of the alert instance. Default value is to select all.","in":"query","name":"alertState","required":false,"x-ms-enum":{"modelAsString":true,"name":"AlertState"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["New","Acknowledged","Closed"]}},"alertsSortBy":{"description":"Sort the query results by input field,  Default value is 'lastModifiedDateTime'.","in":"query","name":"sortBy","required":false,"x-ms-enum":{"modelAsString":true,"name":"AlertsSortByFields"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["name","severity","alertState","monitorCondition","targetResource","targetResourceName","targetResourceGroup","targetResourceType","startDateTime","lastModifiedDateTime"]}},"alertsSummaryGroupBy":{"description":"This parameter allows the result set to be grouped by input fields (Maximum 2 comma separated fields supported). For example, groupby=severity or groupby=severity,alertstate.","in":"query","name":"groupby","required":true,"x-ms-enum":{"modelAsString":true,"name":"AlertsSummaryGroupByFields"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["severity","alertState","monitorCondition","monitorService","signalType","alertRule"]},"examples":{"Summary":{"value":"severity,alertState"}}},"api-version":{"description":"client API version","in":"query","name":"api-version","required":true,"x-ms-enum":{"modelAsString":true,"name":"api-version"},"schema":{"type":"string","enum":["2019-05-05-preview"]},"examples":{"MonService":{"value":"2019-05-05-preview"},"GetActionRulesSubscriptionWide":{"value":"2019-05-05-preview"},"ListAlerts":{"value":"2019-05-05-preview"},"GetById":{"value":"2019-05-05-preview"},"Resolve":{"value":"2019-05-05-preview"},"Summary":{"value":"2019-05-05-preview"},"List":{"value":"2019-05-05-preview"},"Get":{"value":"2019-05-05-preview"},"changestate":{"value":"2019-05-05-preview"},"GetActionRulesResourceGroupWide":{"value":"2019-05-05-preview"},"DeleteActionRule":{"value":"2019-05-05-preview"},"GetActionRuleById":{"value":"2019-05-05-preview"},"PatchActionRule":{"value":"2019-05-05-preview"},"PutActionRule":{"value":"2019-05-05-preview"}}},"customTimeRange":{"description":"Filter by custom time range in the format <start-time>/<end-time>  where time is in (ISO-8601 format)'. Permissible values is within 30 days from  query time. Either timeRange or customTimeRange could be used but not both. Default is none.","in":"query","name":"customTimeRange","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"description":{"description":"filter by alert rule description","in":"query","name":"description","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"identifier":{"description":"Identification of the information to be retrieved by API call.","in":"query","name":"identifier","required":true,"x-ms-enum":{"modelAsString":true,"name":"identifier"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["MonitorServiceList"]},"examples":{"MonService":{"value":"MonitorServiceList"}}},"impactedScope":{"description":"filter by impacted/target scope (provide comma separated list for multiple scopes). The value should be an well constructed ARM id of the scope.","in":"query","name":"impactedScope","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"includeContext":{"description":"Include context which has contextual data specific to the monitor service. Default value is false'","in":"query","name":"includeContext","required":false,"x-ms-parameter-location":"method","schema":{"type":"boolean"}},"includeEgressConfig":{"description":"Include egress config which would be used for displaying the content in portal.  Default value is 'false'.","in":"query","name":"includeEgressConfig","required":false,"x-ms-parameter-location":"method","schema":{"type":"boolean"}},"includeSmartGroupsCount":{"description":"Include count of the SmartGroups as part of the summary. Default value is 'false'.","in":"query","name":"includeSmartGroupsCount","required":false,"x-ms-parameter-location":"method","schema":{"type":"boolean"}},"monitorCondition":{"description":"Filter by monitor condition which is either 'Fired' or 'Resolved'. Default value is to select all.","in":"query","name":"monitorCondition","required":false,"x-ms-enum":{"modelAsString":true,"name":"MonitorCondition"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["Fired","Resolved"]}},"monitorService":{"description":"Filter by monitor service which generates the alert instance. Default value is select all.","in":"query","name":"monitorService","required":false,"x-ms-enum":{"modelAsString":true,"name":"MonitorService"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["Application Insights","ActivityLog Administrative","ActivityLog Security","ActivityLog Recommendation","ActivityLog Policy","ActivityLog Autoscale","Log Analytics","Nagios","Platform","SCOM","ServiceHealth","SmartDetector","VM Insights","Zabbix"]}},"newState":{"description":"New state of the alert.","in":"query","name":"newState","required":true,"x-ms-enum":{"modelAsString":true,"name":"AlertState"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["New","Acknowledged","Closed"]},"examples":{"Resolve":{"value":"Acknowledged"},"changestate":{"value":"Acknowledged"}}},"pageCount":{"description":"Determines number of alerts returned per page in response. Permissible value is between 1 to 250. When the \"includeContent\"  filter is selected, maximum value allowed is 25. Default value is 25.","in":"query","name":"pageCount","required":false,"x-ms-parameter-location":"method","schema":{"type":"integer"}},"resourceGroupName":{"description":"Resource group name where the resource is created.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"GetActionRulesResourceGroupWide":{"value":"alertscorrelationrg"},"DeleteActionRule":{"value":"alertscorrelationrg"},"GetActionRuleById":{"value":"alertscorrelationrg"},"PatchActionRule":{"value":"alertscorrelationrg"},"PutActionRule":{"value":"alertscorrelationrg"}}},"select":{"description":"This filter allows to selection of the fields(comma separated) which would  be part of the essential section. This would allow to project only the  required fields rather than getting entire content.  Default is to fetch all the fields in the essentials section.","in":"query","name":"select","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"severity":{"description":"Filter by severity.  Default value is select all.","in":"query","name":"severity","required":false,"x-ms-enum":{"modelAsString":true,"name":"Severity"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["Sev0","Sev1","Sev2","Sev3","Sev4"]}},"smartGroupId":{"description":"Smart group unique id. ","in":"path","name":"smartGroupId","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get":{"value":"603675da-9851-4b26-854a-49fc53d32715"},"changestate":{"value":"a808445e-bb38-4751-85c2-1b109ccc1059"},"Resolve":{"value":"a808445e-bb38-4751-85c2-1b109ccc1059"}}},"smartGroupIdFilter":{"description":"Filter the alerts list by the Smart Group Id. Default value is none.","in":"query","name":"smartGroupId","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"smartGroupState":{"description":"Filter by state of the smart group. Default value is to select all.","in":"query","name":"smartGroupState","required":false,"x-ms-enum":{"modelAsString":true,"name":"AlertState"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["New","Acknowledged","Closed"]}},"smartGroupsSortBy":{"description":"Sort the query results by input field. Default value is sort by 'lastModifiedDateTime'.","in":"query","name":"sortBy","required":false,"x-ms-enum":{"modelAsString":true,"name":"SmartGroupsSortByFields"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["alertsCount","state","severity","startDateTime","lastModifiedDateTime"]}},"sortOrder":{"description":"Sort the query results order in either ascending or descending.  Default value is 'desc' for time fields and 'asc' for others.","in":"query","name":"sortOrder","required":false,"x-ms-parameter-location":"method","schema":{"type":"string","enum":["asc","desc"]}},"subscriptionId":{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"GetActionRulesSubscriptionWide":{"value":"1e3ff1c0-771a-4119-a03b-be82a51e232d"},"ListAlerts":{"value":"1e3ff1c0-771a-4119-a03b-be82a51e232d"},"GetById":{"value":"9e261de7-c804-4b9d-9ebf-6f50fe350a9a"},"Resolve":{"value":"9e261de7-c804-4b9d-9ebf-6f50fe350a9a"},"Summary":{"value":"1e3ff1c0-771a-4119-a03b-be82a51e232d"},"List":{"value":"dd91de05-d791-4ceb-b6dc-988682dc7d72"},"Get":{"value":"9e261de7-c804-4b9d-9ebf-6f50fe350a9a"},"changestate":{"value":"dd91de05-d791-4ceb-b6dc-988682dc7d72"},"GetActionRulesResourceGroupWide":{"value":"1e3ff1c0-771a-4119-a03b-be82a51e232d"},"DeleteActionRule":{"value":"1e3ff1c0-771a-4119-a03b-be82a51e232d"},"GetActionRuleById":{"value":"1e3ff1c0-771a-4119-a03b-be82a51e232d"},"PatchActionRule":{"value":"1e3ff1c0-771a-4119-a03b-be82a51e232d"},"PutActionRule":{"value":"1e3ff1c0-771a-4119-a03b-be82a51e232d"}}},"targetResource":{"description":"Filter by target resource( which is full ARM ID) Default value is select all.","in":"query","name":"targetResource","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"targetResourceGroup":{"description":"Filter by target resource group name. Default value is select all.","in":"query","name":"targetResourceGroup","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"targetResourceType":{"description":"Filter by target resource type. Default value is select all.","in":"query","name":"targetResourceType","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"timeRange":{"description":"Filter by time range by below listed values. Default value is 1 day.","in":"query","name":"timeRange","required":false,"x-ms-enum":{"modelAsString":true,"name":"TimeRange"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["1h","1d","7d","30d"]}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"ActionGroup":{"allOf":[{"$ref":"#/components/schemas/ActionRuleProperties"},{"type":"object"}],"description":"Action rule with action group configuration","properties":{"actionGroupId":{"description":"Action group to trigger if action rule matches","type":"string"}},"required":["actionGroupId"],"title":"Action Group based Action Rule"},"ActionRule":{"allOf":[{"$ref":"#/components/schemas/ManagedResource"}],"description":"Action rule object containing target scope, conditions and suppression logic","properties":{"properties":{"$ref":"#/components/schemas/ActionRuleProperties"}}},"ActionRuleProperties":{"description":"Action rule properties defining scope, conditions, suppression logic for action rule","discriminator":{"propertyName":"type"},"properties":{"conditions":{"$ref":"#/components/schemas/Conditions"},"createdAt":{"description":"Creation time of action rule. Date-Time in ISO-8601 format.","format":"date-time","readOnly":true,"type":"string"},"createdBy":{"description":"Created by user name.","readOnly":true,"type":"string"},"description":{"description":"Description of action rule","type":"string"},"lastModifiedAt":{"description":"Last updated time of action rule. Date-Time in ISO-8601 format.","format":"date-time","readOnly":true,"type":"string"},"lastModifiedBy":{"description":"Last modified by user name.","readOnly":true,"type":"string"},"scope":{"$ref":"#/components/schemas/Scope"},"status":{"description":"Indicates if the given action rule is enabled or disabled","enum":["Enabled","Disabled"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ActionRuleStatus"}},"type":{"description":"Indicates type of action rule","enum":["Suppression","ActionGroup","Diagnostics"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ActionRuleType"}}},"required":["type"]},"ActionRulesList":{"description":"List of action rules","properties":{"nextLink":{"description":"URL to fetch the next set of action rules","type":"string"},"value":{"description":"List of action rules","items":{"$ref":"#/components/schemas/ActionRule"},"type":"array"}}},"Condition":{"description":"condition to trigger an action rule","properties":{"operator":{"description":"operator for a given condition","enum":["Equals","NotEquals","Contains","DoesNotContain"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"Operator"}},"values":{"description":"list of values to match for a given condition.","items":{"type":"string"},"type":"array"}},"type":"object"},"Conditions":{"description":"Conditions in alert instance to be matched for a given action rule. Default value is all. Multiple values could be provided with comma separation.","properties":{"alertContext":{"$ref":"#/components/schemas/Condition"},"alertRuleId":{"$ref":"#/components/schemas/Condition"},"description":{"$ref":"#/components/schemas/Condition"},"monitorCondition":{"$ref":"#/components/schemas/Condition"},"monitorService":{"$ref":"#/components/schemas/Condition"},"severity":{"$ref":"#/components/schemas/Condition"},"targetResourceType":{"$ref":"#/components/schemas/Condition"}},"type":"object"},"Diagnostics":{"allOf":[{"$ref":"#/components/schemas/ActionRuleProperties"},{"type":"object"}],"description":"Action rule with diagnostics configuration","title":"Diagnostics based Action Rule"},"ManagedResource":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"An azure managed resource object","properties":{"location":{"description":"Resource location","type":"string","x-ms-mutability":["create","read"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"}},"required":["location"]},"MonitorServiceDetails":{"description":"Details of a monitor service","properties":{"displayName":{"description":"Monitor service display name","type":"string"},"name":{"description":"Monitor service name","type":"string"}}},"MonitorServiceList":{"allOf":[{"$ref":"#/components/schemas/alertsMetaDataProperties"},{"type":"object"}],"description":"Monitor service details","properties":{"data":{"description":"Array of operations","items":{"$ref":"#/components/schemas/MonitorServiceDetails"},"type":"array"}},"required":["data"],"title":"Monitor service details"},"PatchObject":{"description":"Data contract for patch","properties":{"properties":{"$ref":"#/components/schemas/PatchProperties"},"tags":{"description":"tags to be updated","type":"object"}}},"PatchProperties":{"description":"Action rule properties supported by patch","properties":{"status":{"description":"Indicates if the given action rule is enabled or disabled","enum":["Enabled","Disabled"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ActionRuleStatus"}}}},"Resource":{"description":"An azure resource object","properties":{"id":{"description":"Azure resource Id","readOnly":true,"type":"string"},"name":{"description":"Azure resource name","readOnly":true,"type":"string"},"type":{"description":"Azure resource type","readOnly":true,"type":"string"}},"x-ms-azure-resource":true},"Scope":{"description":"Target scope for a given action rule. By default scope will be the subscription. User can also provide list of resource groups or list of resources from the scope subscription as well.","properties":{"scopeType":{"description":"type of target scope","enum":["ResourceGroup","Resource"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ScopeType"}},"values":{"description":"list of ARM IDs of the given scope type which will be the target of the given action rule.","items":{"type":"string"},"type":"array"}},"type":"object"},"Suppression":{"allOf":[{"$ref":"#/components/schemas/ActionRuleProperties"},{"type":"object"}],"description":"Action rule with suppression configuration","properties":{"suppressionConfig":{"$ref":"#/components/schemas/SuppressionConfig"}},"required":["suppressionConfig"],"title":"Suppression based Action Rule"},"SuppressionConfig":{"description":"Suppression logic for a given action rule","properties":{"recurrenceType":{"description":"Specifies when the suppression should be applied","enum":["Always","Once","Daily","Weekly","Monthly"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"SuppressionType"}},"schedule":{"$ref":"#/components/schemas/SuppressionSchedule"}},"required":["recurrenceType"],"type":"object"},"SuppressionSchedule":{"description":"Schedule for a given suppression configuration.","properties":{"endDate":{"description":"End date for suppression","type":"string"},"endTime":{"description":"End date for suppression","type":"string"},"recurrenceValues":{"description":"Specifies the values for recurrence pattern","items":{"type":"integer"},"type":"array"},"startDate":{"description":"Start date for suppression","type":"string"},"startTime":{"description":"Start time for suppression","type":"string"}},"type":"object"},"alert":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"An alert created in alert management service.","properties":{"properties":{"$ref":"#/components/schemas/alertProperties"}}},"alertContext":{"description":"Information specific to the monitor service that gives more contextual details about the alert.","readOnly":true,"type":"object"},"alertModification":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"Alert Modification details","properties":{"properties":{"$ref":"#/components/schemas/alertModificationProperties"}}},"alertModificationItem":{"description":"Alert modification item.","properties":{"comments":{"description":"Modification comments","type":"string"},"description":{"description":"Description of the modification","type":"string"},"modificationEvent":{"description":"Reason for the modification","enum":["AlertCreated","StateChange","MonitorConditionChange"],"type":"string","x-ms-enum":{"name":"AlertModificationEvent"}},"modifiedAt":{"description":"Modified date and time","type":"string"},"modifiedBy":{"description":"Modified user details (Principal client name)","type":"string"},"newValue":{"description":"New value","type":"string"},"oldValue":{"description":"Old value","type":"string"}}},"alertModificationProperties":{"description":"Properties of the alert modification item.","properties":{"alertId":{"description":"Unique Id of the alert for which the history is being retrieved","readOnly":true,"type":"string"},"modifications":{"description":"Modification details","items":{"$ref":"#/components/schemas/alertModificationItem"},"type":"array"}},"type":"object"},"alertProperties":{"description":"Alert property bag","properties":{"context":{"$ref":"#/components/schemas/alertContext"},"egressConfig":{"$ref":"#/components/schemas/egressConfig"},"essentials":{"$ref":"#/components/schemas/essentials"}},"type":"object"},"alertsList":{"description":"List the alerts.","properties":{"nextLink":{"description":"URL to fetch the next set of alerts.","type":"string"},"value":{"description":"List of alerts","items":{"$ref":"#/components/schemas/alert"},"type":"array"}}},"alertsMetaData":{"description":"alert meta data information.","properties":{"properties":{"$ref":"#/components/schemas/alertsMetaDataProperties"}}},"alertsMetaDataProperties":{"description":"alert meta data property bag","discriminator":{"propertyName":"metadataIdentifier"},"properties":{"metadataIdentifier":{"description":"Identification of the information to be retrieved by API call","enum":["MonitorServiceList"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"metadataIdentifier"}}},"required":["metadataIdentifier"]},"alertsSummary":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"Summary of alerts based on the input filters and 'groupby' parameters.","properties":{"properties":{"$ref":"#/components/schemas/alertsSummaryGroup"}}},"alertsSummaryGroup":{"description":"Group the result set.","properties":{"groupedby":{"description":"Name of the field aggregated","type":"string"},"smartGroupsCount":{"description":"Total count of the smart groups.","type":"integer"},"total":{"description":"Total count of the result set.","type":"integer"},"values":{"description":"List of the items","items":{"$ref":"#/components/schemas/alertsSummaryGroupItem"},"type":"array"}},"type":"object"},"alertsSummaryGroupItem":{"description":"Alerts summary group item","properties":{"count":{"description":"Count of the aggregated field","type":"integer"},"groupedby":{"description":"Name of the field aggregated","type":"string"},"name":{"description":"Value of the aggregated field","type":"string"},"values":{"description":"List of the items","items":{"$ref":"#/components/schemas/alertsSummaryGroupItem"},"type":"array"}},"type":"object"},"egressConfig":{"description":"Config which would be used for displaying the data in portal.","readOnly":true,"type":"object"},"errorResponse":{"description":"An error response from the service.","properties":{"error":{"$ref":"#/components/schemas/errorResponseBody"}}},"errorResponseBody":{"description":"Details of error response.","properties":{"code":{"description":"Error code, intended to be consumed programmatically.","type":"string"},"details":{"description":"A list of additional details about the error.","items":{"$ref":"#/components/schemas/errorResponseBody"},"type":"array"},"message":{"description":"Description of the error, intended for display in user interface.","type":"string"},"target":{"description":"Target of the particular error, for example name of the property.","type":"string"}}},"essentials":{"description":"This object contains consistent fields across different monitor services.","properties":{"alertRule":{"description":"Rule(monitor) which fired alert instance. Depending on the monitor service,  this would be ARM id or name of the rule.","readOnly":true,"type":"string"},"alertState":{"description":"Alert object state, which can be modified by the user.","enum":["New","Acknowledged","Closed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"AlertState"}},"lastModifiedDateTime":{"description":"Last modification time(ISO-8601 format) of alert instance.","format":"date-time","readOnly":true,"type":"string"},"lastModifiedUserName":{"description":"User who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user.","readOnly":true,"type":"string"},"monitorCondition":{"description":"Condition of the rule at the monitor service. It represents whether the underlying conditions have crossed the defined alert rule thresholds.","enum":["Fired","Resolved"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"MonitorCondition"}},"monitorConditionResolvedDateTime":{"description":"Resolved time(ISO-8601 format) of alert instance. This will be updated when monitor service resolves the alert instance because the rule condition is no longer met.","format":"date-time","readOnly":true,"type":"string"},"monitorService":{"description":"Monitor service on which the rule(monitor) is set.","enum":["Application Insights","ActivityLog Administrative","ActivityLog Security","ActivityLog Recommendation","ActivityLog Policy","ActivityLog Autoscale","Log Analytics","Nagios","Platform","SCOM","ServiceHealth","SmartDetector","VM Insights","Zabbix"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"MonitorService"}},"severity":{"description":"Severity of alert Sev0 being highest and Sev4 being lowest.","enum":["Sev0","Sev1","Sev2","Sev3","Sev4"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"Severity"}},"signalType":{"description":"The type of signal the alert is based on, which could be metrics, logs or activity logs.","enum":["Metric","Log","Unknown"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"SignalType"}},"smartGroupId":{"description":"Unique Id of the smart group","readOnly":true,"type":"string"},"smartGroupingReason":{"description":"Verbose reason describing the reason why this alert instance is added to a smart group","readOnly":true,"type":"string"},"sourceCreatedId":{"description":"Unique Id created by monitor service for each alert instance. This could be used to track the issue at the monitor service, in case of Nagios, Zabbix, SCOM etc.","readOnly":true,"type":"string"},"startDateTime":{"description":"Creation time(ISO-8601 format) of alert instance.","format":"date-time","readOnly":true,"type":"string"},"targetResource":{"description":"Target ARM resource, on which alert got created.","type":"string"},"targetResourceGroup":{"description":"Resource group of target ARM resource, on which alert got created.","type":"string"},"targetResourceName":{"description":"Name of the target ARM resource name, on which alert got created.","type":"string"},"targetResourceType":{"description":"Resource type of target ARM resource, on which alert got created.","type":"string"}},"type":"object"},"operation":{"description":"Operation provided by provider","properties":{"display":{"description":"Properties of the operation","properties":{"description":{"description":"Description of the operation","type":"string"},"operation":{"description":"Operation name","type":"string"},"provider":{"description":"Provider name","type":"string"},"resource":{"description":"Resource name","type":"string"}},"type":"object"},"name":{"description":"Name of the operation","type":"string"}}},"operationsList":{"description":"Lists the operations available in the AlertsManagement RP.","properties":{"nextLink":{"description":"URL to fetch the next set of alerts.","type":"string"},"value":{"description":"Array of operations","items":{"$ref":"#/components/schemas/operation"},"type":"array"}},"required":["value"]},"smartGroup":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"Set of related alerts grouped together smartly by AMS.","properties":{"properties":{"$ref":"#/components/schemas/smartGroupProperties"}}},"smartGroupAggregatedProperty":{"description":"Aggregated property of each type","properties":{"count":{"description":"Total number of items of type.","type":"integer"},"name":{"description":"Name of the type.","type":"string"}},"type":"object"},"smartGroupModification":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"Alert Modification details","properties":{"properties":{"$ref":"#/components/schemas/smartGroupModificationProperties"}}},"smartGroupModificationItem":{"description":"smartGroup modification item.","properties":{"comments":{"description":"Modification comments","type":"string"},"description":{"description":"Description of the modification","type":"string"},"modificationEvent":{"description":"Reason for the modification","enum":["SmartGroupCreated","StateChange","AlertAdded","AlertRemoved"],"type":"string","x-ms-enum":{"name":"SmartGroupModificationEvent"}},"modifiedAt":{"description":"Modified date and time","type":"string"},"modifiedBy":{"description":"Modified user details (Principal client name)","type":"string"},"newValue":{"description":"New value","type":"string"},"oldValue":{"description":"Old value","type":"string"}}},"smartGroupModificationProperties":{"description":"Properties of the smartGroup modification item.","properties":{"modifications":{"description":"Modification details","items":{"$ref":"#/components/schemas/smartGroupModificationItem"},"type":"array"},"nextLink":{"description":"URL to fetch the next set of results.","type":"string"},"smartGroupId":{"description":"Unique Id of the smartGroup for which the history is being retrieved","readOnly":true,"type":"string"}}},"smartGroupProperties":{"description":"Properties of smart group.","properties":{"alertSeverities":{"description":"Summary of alertSeverities in the smart group","items":{"$ref":"#/components/schemas/smartGroupAggregatedProperty"},"type":"array"},"alertStates":{"description":"Summary of alertStates in the smart group","items":{"$ref":"#/components/schemas/smartGroupAggregatedProperty"},"type":"array"},"alertsCount":{"description":"Total number of alerts in smart group","type":"integer"},"lastModifiedDateTime":{"description":"Last updated time of smart group. Date-Time in ISO-8601 format.","format":"date-time","readOnly":true,"type":"string"},"lastModifiedUserName":{"description":"Last modified by user name.","readOnly":true,"type":"string"},"monitorConditions":{"description":"Summary of monitorConditions in the smart group","items":{"$ref":"#/components/schemas/smartGroupAggregatedProperty"},"type":"array"},"monitorServices":{"description":"Summary of monitorServices in the smart group","items":{"$ref":"#/components/schemas/smartGroupAggregatedProperty"},"type":"array"},"nextLink":{"description":"The URI to fetch the next page of alerts. Call ListNext() with this URI to fetch the next page alerts.","type":"string"},"resourceGroups":{"description":"Summary of target resource groups in the smart group","items":{"$ref":"#/components/schemas/smartGroupAggregatedProperty"},"type":"array"},"resourceTypes":{"description":"Summary of target resource types in the smart group","items":{"$ref":"#/components/schemas/smartGroupAggregatedProperty"},"type":"array"},"resources":{"description":"Summary of target resources in the smart group","items":{"$ref":"#/components/schemas/smartGroupAggregatedProperty"},"type":"array"},"severity":{"description":"Severity of smart group is the highest(Sev0 >... > Sev4) severity of all the alerts in the group.","enum":["Sev0","Sev1","Sev2","Sev3","Sev4"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"Severity"}},"smartGroupState":{"description":"Smart group state","enum":["New","Acknowledged","Closed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"State"}},"startDateTime":{"description":"Creation time of smart group. Date-Time in ISO-8601 format.","format":"date-time","readOnly":true,"type":"string"}},"type":"object"},"smartGroupsList":{"description":"List the alerts.","properties":{"nextLink":{"description":"URL to fetch the next set of alerts.","type":"string"},"value":{"description":"List of alerts","items":{"$ref":"#/components/schemas/smartGroup"},"type":"array"}}}}}}