Freigeben über


Alert Processing Rules - Create Or Update

Erstellen oder Aktualisieren einer Warnungsverarbeitungsregel

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}?api-version=2021-08-08

URI-Parameter

Name In Erforderlich Typ Beschreibung
alertProcessingRuleName
path True

string

Der Name der Warnungsverarbeitungsregel, die erstellt/aktualisiert werden muss.

resourceGroupName
path True

string

Ressourcengruppenname, in dem die Ressource erstellt wird.

subscriptionId
path True

string

Hierbei handelt es sich um die ID des Zielabonnements.

api-version
query True

api-version

Client-API-Version.

Anforderungstext

Name Erforderlich Typ Beschreibung
location True

string

Ressourcenspeicherort

properties

AlertProcessingRuleProperties

Eigenschaften der Warnungsverarbeitungsregel.

tags

object

Ressourcentags

Antworten

Name Typ Beschreibung
200 OK

AlertProcessingRule

OK. Gibt die aktualisierte Warnungsverarbeitungsregel zurück.

Headers

x-ms-request-id: string

201 Created

AlertProcessingRule

Erstellt. Gibt die erstellte Warnungsverarbeitungsregel zurück.

Headers

x-ms-request-id: string

Other Status Codes

errorResponse

Fehlerantwort mit Beschreibung des Grunds für den Fehler.

Beispiele

Create or update a rule that adds an action group to all alerts in a subscription
Create or update a rule that adds two action groups to all Sev0 and Sev1 alerts in two resource groups
Create or update a rule that removes all action groups from alerts on a specific VM during a one-off maintenance window (1800-2000 at a specific date, Pacific Standard Time)
Create or update a rule that removes all action groups from all alerts in a subscription coming from a specific alert rule
Create or update a rule that removes all action groups from all alerts on any VM in two resource groups during a recurring maintenance window (2200-0400 every Sat and Sun, India Standard Time)
Create or update a rule that removes all action groups outside business hours (Mon-Fri 09:00-17:00, Eastern Standard Time)

Create or update a rule that adds an action group to all alerts in a subscription

Sample Request

PUT https://management.azure.com/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupToSubscription?api-version=2021-08-08

{
  "location": "Global",
  "tags": {},
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "actions": [
      {
        "actionType": "AddActionGroups",
        "actionGroupIds": [
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"
        ]
      }
    ],
    "description": "Add ActionGroup1 to all alerts in the subscription",
    "enabled": true
  }
}

Sample Response

{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2021-02-12T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2021-02-13T16:15:34Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "actions": [
      {
        "actionType": "AddActionGroups",
        "actionGroupIds": [
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"
        ]
      }
    ],
    "description": "Add ActionGroup1 to all alerts in the subscription",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupToSubscription",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "AddActionGroupToSubscription",
  "location": "Global",
  "tags": {}
}
{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2021-02-12T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2021-02-13T16:15:34Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "actions": [
      {
        "actionType": "AddActionGroups",
        "actionGroupIds": [
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"
        ]
      }
    ],
    "description": "Add ActionGroup1 to all alerts in the subscription",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupToSubscription",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "AddActionGroupToSubscription",
  "location": "Global",
  "tags": {}
}

Create or update a rule that adds two action groups to all Sev0 and Sev1 alerts in two resource groups

Sample Request

PUT https://management.azure.com/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupsBySeverity?api-version=2021-08-08

{
  "location": "Global",
  "tags": {},
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1",
      "/subscriptions/subId1/resourceGroups/RGId2"
    ],
    "conditions": [
      {
        "field": "Severity",
        "operator": "Equals",
        "values": [
          "sev0",
          "sev1"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "AddActionGroups",
        "actionGroupIds": [
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"
        ]
      }
    ],
    "description": "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
    "enabled": true
  }
}

Sample Response

{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-12T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-13T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1",
      "/subscriptions/subId1/resourceGroups/RGId2"
    ],
    "conditions": [
      {
        "field": "Severity",
        "operator": "Equals",
        "values": [
          "sev0",
          "sev1"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "AddActionGroups",
        "actionGroupIds": [
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"
        ]
      }
    ],
    "description": "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupsBySeverity",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "AddActionGroupsBySeverity",
  "location": "Global",
  "tags": {}
}
{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-12T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-13T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1",
      "/subscriptions/subId1/resourceGroups/RGId2"
    ],
    "conditions": [
      {
        "field": "Severity",
        "operator": "Equals",
        "values": [
          "sev0",
          "sev1"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "AddActionGroups",
        "actionGroupIds": [
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
          "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"
        ]
      }
    ],
    "description": "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/AddActionGroupsBySeverity",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "AddActionGroupsBySeverity",
  "location": "Global",
  "tags": {}
}

Create or update a rule that removes all action groups from alerts on a specific VM during a one-off maintenance window (1800-2000 at a specific date, Pacific Standard Time)

Sample Request

PUT https://management.azure.com/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsMaintenanceWindow?api-version=2021-08-08

{
  "location": "Global",
  "tags": {},
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName"
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "effectiveFrom": "2021-04-15T18:00:00",
      "effectiveUntil": "2021-04-15T20:00:00",
      "timeZone": "Pacific Standard Time"
    },
    "description": "Removes all ActionGroups from all Alerts on VMName during the maintenance window",
    "enabled": true
  }
}

Sample Response

{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-12T20:13:29Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-12T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName"
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "effectiveFrom": "2021-04-15T18:00:00",
      "effectiveUntil": "2021-04-15T20:00:00",
      "timeZone": "Pacific Standard Time"
    },
    "description": "Removes all ActionGroups from all Alerts on VMName during the maintenance window",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsMaintenanceWindow",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "RemoveActionGroupsMaintenanceWindow",
  "location": "Global",
  "tags": {}
}
{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-12T20:13:29Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-12T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName"
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "effectiveFrom": "2021-04-15T18:00:00",
      "effectiveUntil": "2021-04-15T20:00:00",
      "timeZone": "Pacific Standard Time"
    },
    "description": "Removes all ActionGroups from all Alerts on VMName during the maintenance window",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsMaintenanceWindow",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "RemoveActionGroupsMaintenanceWindow",
  "location": "Global",
  "tags": {}
}

Create or update a rule that removes all action groups from all alerts in a subscription coming from a specific alert rule

Sample Request

PUT https://management.azure.com/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsSpecificAlertRule?api-version=2021-08-08

{
  "location": "Global",
  "tags": {},
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "conditions": [
      {
        "field": "AlertRuleId",
        "operator": "Equals",
        "values": [
          "/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "description": "Removes all ActionGroups from all Alerts that fire on above AlertRule",
    "enabled": true
  }
}

Sample Response

{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-11T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-12T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "conditions": [
      {
        "field": "AlertRuleId",
        "operator": "Equals",
        "values": [
          "/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "description": "Removes all ActionGroups from all Alerts that fire on above AlertRule",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsSpecificAlertRule",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "RemoveActionGroupsSpecificAlertRule",
  "location": "Global",
  "tags": {}
}
{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-11T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-12T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "conditions": [
      {
        "field": "AlertRuleId",
        "operator": "Equals",
        "values": [
          "/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "description": "Removes all ActionGroups from all Alerts that fire on above AlertRule",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsSpecificAlertRule",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "RemoveActionGroupsSpecificAlertRule",
  "location": "Global",
  "tags": {}
}

Create or update a rule that removes all action groups from all alerts on any VM in two resource groups during a recurring maintenance window (2200-0400 every Sat and Sun, India Standard Time)

Sample Request

PUT https://management.azure.com/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsRecurringMaintenance?api-version=2021-08-08

{
  "location": "Global",
  "tags": {},
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1",
      "/subscriptions/subId1/resourceGroups/RGId2"
    ],
    "conditions": [
      {
        "field": "TargetResourceType",
        "operator": "Equals",
        "values": [
          "microsoft.compute/virtualmachines"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "timeZone": "India Standard Time",
      "recurrences": [
        {
          "recurrenceType": "Weekly",
          "startTime": "22:00:00",
          "endTime": "04:00:00",
          "daysOfWeek": [
            "Saturday",
            "Sunday"
          ]
        }
      ]
    },
    "description": "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
    "enabled": true
  }
}

Sample Response

{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-11T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-12T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1",
      "/subscriptions/subId1/resourceGroups/RGId2"
    ],
    "conditions": [
      {
        "field": "TargetResourceType",
        "operator": "Equals",
        "values": [
          "microsoft.compute/virtualmachines"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "timeZone": "India Standard Time",
      "recurrences": [
        {
          "recurrenceType": "Weekly",
          "startTime": "22:00:00",
          "endTime": "04:00:00",
          "daysOfWeek": [
            "Saturday",
            "Sunday"
          ]
        }
      ]
    },
    "description": "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsRecurringMaintenance",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "RemoveActionGroupsRecurringMaintenance",
  "location": "Global",
  "tags": {}
}
{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-11T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-12T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1/resourceGroups/RGId1",
      "/subscriptions/subId1/resourceGroups/RGId2"
    ],
    "conditions": [
      {
        "field": "TargetResourceType",
        "operator": "Equals",
        "values": [
          "microsoft.compute/virtualmachines"
        ]
      }
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "timeZone": "India Standard Time",
      "recurrences": [
        {
          "recurrenceType": "Weekly",
          "startTime": "22:00:00",
          "endTime": "04:00:00",
          "daysOfWeek": [
            "Saturday",
            "Sunday"
          ]
        }
      ]
    },
    "description": "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsRecurringMaintenance",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "RemoveActionGroupsRecurringMaintenance",
  "location": "Global",
  "tags": {}
}

Create or update a rule that removes all action groups outside business hours (Mon-Fri 09:00-17:00, Eastern Standard Time)

Sample Request

PUT https://management.azure.com/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsOutsideBusinessHours?api-version=2021-08-08

{
  "location": "Global",
  "tags": {},
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "timeZone": "Eastern Standard Time",
      "recurrences": [
        {
          "recurrenceType": "Daily",
          "startTime": "17:00:00",
          "endTime": "09:00:00"
        },
        {
          "recurrenceType": "Weekly",
          "daysOfWeek": [
            "Saturday",
            "Sunday"
          ]
        }
      ]
    },
    "description": "Remove all ActionGroups outside business hours",
    "enabled": true
  }
}

Sample Response

{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-11T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-12T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "timeZone": "Eastern Standard Time",
      "recurrences": [
        {
          "recurrenceType": "Daily",
          "startTime": "17:00:00",
          "endTime": "09:00:00"
        },
        {
          "recurrenceType": "Weekly",
          "daysOfWeek": [
            "Saturday",
            "Sunday"
          ]
        }
      ]
    },
    "description": "Remove all ActionGroups outside business hours",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsOutsideBusinessHours",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "RemoveActionGroupsOutsideBusinessHours",
  "location": "Global",
  "tags": {}
}
{
  "systemData": {
    "createdBy": "abc@microsoft.com",
    "createdByType": "User",
    "createdAt": "2018-06-11T22:05:09Z",
    "lastModifiedBy": "xyz@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-06-12T22:05:09Z"
  },
  "properties": {
    "scopes": [
      "/subscriptions/subId1"
    ],
    "actions": [
      {
        "actionType": "RemoveAllActionGroups"
      }
    ],
    "schedule": {
      "timeZone": "Eastern Standard Time",
      "recurrences": [
        {
          "recurrenceType": "Daily",
          "startTime": "17:00:00",
          "endTime": "09:00:00"
        },
        {
          "recurrenceType": "Weekly",
          "daysOfWeek": [
            "Saturday",
            "Sunday"
          ]
        }
      ]
    },
    "description": "Remove all ActionGroups outside business hours",
    "enabled": true
  },
  "id": "/subscriptions/subId1/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/RemoveActionGroupsOutsideBusinessHours",
  "type": "Microsoft.AlertsManagement/actionRules",
  "name": "RemoveActionGroupsOutsideBusinessHours",
  "location": "Global",
  "tags": {}
}

Definitionen

Name Beschreibung
AddActionGroups

Hinzufügen von Aktionsgruppen zur Warnungsverarbeitungsregel.

AlertProcessingRule

Warnungsverarbeitungsregelobjekt, das Zielbereiche, Bedingungen und Planungslogik enthält.

AlertProcessingRuleProperties

Eigenschaften der Warnungsverarbeitungsregel, die Bereiche, Bedingungen und Planungslogik für die Warnungsverarbeitungsregel definieren.

api-version

Client-API-Version.

Condition

Bedingung zum Auslösen einer Warnungsverarbeitungsregel.

createdByType

Der Identitätstyp, der die Ressource erstellt hat.

DailyRecurrence

Tägliche Wiederholungsobjekt.

DaysOfWeek

Wochentage.

errorResponse

Eine Fehlerantwort vom Dienst.

errorResponseBody

Details zur Fehlerantwort.

Field

Feld für eine angegebene Bedingung.

MonthlyRecurrence

Monatliche Wiederholungsobjekt.

Operator

Operator für eine bestimmte Bedingung.

RemoveAllActionGroups

Gibt an, ob alle Aktionsgruppen entfernt werden sollen.

Schedule

Planen der Konfiguration für eine bestimmte Warnungsverarbeitungsregel.

systemData

Metadaten, die sich auf die Erstellung und letzte Änderung der Ressource beziehen.

WeeklyRecurrence

Wöchentliches Wiederholungsobjekt.

AddActionGroups

Hinzufügen von Aktionsgruppen zur Warnungsverarbeitungsregel.

Name Typ Beschreibung
actionGroupIds

string[]

Liste der Aktionsgruppen-IDs, die der Warnungsverarbeitungsregel hinzugefügt werden sollen.

actionType string:

AddActionGroups

Aktion, die angewendet werden soll.

AlertProcessingRule

Warnungsverarbeitungsregelobjekt, das Zielbereiche, Bedingungen und Planungslogik enthält.

Name Typ Beschreibung
id

string

Azure-Ressourcen-ID

location

string

Ressourcenspeicherort

name

string

Name der Azure-Ressource

properties

AlertProcessingRuleProperties

Eigenschaften der Warnungsverarbeitungsregel.

systemData

systemData

Systemdaten der Warnungsverarbeitungsregel.

tags

object

Ressourcentags

type

string

Azure-Ressourcentyp

AlertProcessingRuleProperties

Eigenschaften der Warnungsverarbeitungsregel, die Bereiche, Bedingungen und Planungslogik für die Warnungsverarbeitungsregel definieren.

Name Typ Standardwert Beschreibung
actions Action[]:

Anzuwendende Aktionen.

conditions

Condition[]

Bedingungen, nach denen Warnungen gefiltert werden.

description

string

Beschreibung der Warnungsverarbeitungsregel.

enabled

boolean

True

Gibt an, ob die angegebene Warnungsverarbeitungsregel aktiviert oder deaktiviert ist.

schedule

Schedule

Planen der Warnungsverarbeitungsregel.

scopes

string[]

Bereiche, auf die die Warnungsverarbeitungsregel angewendet wird.

api-version

Client-API-Version.

Name Typ Beschreibung
2021-08-08

string

Condition

Bedingung zum Auslösen einer Warnungsverarbeitungsregel.

Name Typ Beschreibung
field

Field

Feld für eine angegebene Bedingung.

operator

Operator

Operator für eine bestimmte Bedingung.

values

string[]

Liste der Werte, die für eine bestimmte Bedingung übereinstimmen sollen.

createdByType

Der Identitätstyp, der die Ressource erstellt hat.

Name Typ Beschreibung
Application

string

Key

string

ManagedIdentity

string

User

string

DailyRecurrence

Tägliche Wiederholungsobjekt.

Name Typ Beschreibung
endTime

string

Endzeit für die Wiederholung.

recurrenceType string:

Daily

Gibt an, wann die Wiederholung angewendet werden soll.

startTime

string

Startzeit für die Wiederholung.

DaysOfWeek

Wochentage.

Name Typ Beschreibung
Friday

string

Monday

string

Saturday

string

Sunday

string

Thursday

string

Tuesday

string

Wednesday

string

errorResponse

Eine Fehlerantwort vom Dienst.

Name Typ Beschreibung
error

errorResponseBody

Details zur Fehlerantwort.

errorResponseBody

Details zur Fehlerantwort.

Name Typ Beschreibung
code

string

Fehlercode, der programmgesteuert verwendet werden soll.

details

errorResponseBody[]

Eine Liste mit zusätzlichen Details zum Fehler.

message

string

Beschreibung des Fehlers, der für die Anzeige in der Benutzeroberfläche vorgesehen ist.

target

string

Ziel des bestimmten Fehlers, z. B. Name der Eigenschaft.

Field

Feld für eine angegebene Bedingung.

Name Typ Beschreibung
AlertContext

string

AlertRuleId

string

AlertRuleName

string

Description

string

MonitorCondition

string

MonitorService

string

Severity

string

SignalType

string

TargetResource

string

TargetResourceGroup

string

TargetResourceType

string

MonthlyRecurrence

Monatliche Wiederholungsobjekt.

Name Typ Beschreibung
daysOfMonth

integer[]

Gibt die Werte für das monatliche Wiederholungsmuster an.

endTime

string

Endzeit für die Wiederholung.

recurrenceType string:

Monthly

Gibt an, wann die Wiederholung angewendet werden soll.

startTime

string

Startzeit für die Wiederholung.

Operator

Operator für eine bestimmte Bedingung.

Name Typ Beschreibung
Contains

string

DoesNotContain

string

Equals

string

NotEquals

string

RemoveAllActionGroups

Gibt an, ob alle Aktionsgruppen entfernt werden sollen.

Name Typ Beschreibung
actionType string:

RemoveAllActionGroups

Aktion, die angewendet werden soll.

Schedule

Planen der Konfiguration für eine bestimmte Warnungsverarbeitungsregel.

Name Typ Beschreibung
effectiveFrom

string

Effektive Planung von Zeit zu Zeit. Date-Time im ISO-8601-Format ohne Zeitzonensuffix.

effectiveUntil

string

Effektive Planung bis zur Zeit. Date-Time im ISO-8601-Format ohne Zeitzonensuffix.

recurrences Recurrence[]:

Liste der Wiederholungen.

timeZone

string

Zeitzone planen.

systemData

Metadaten, die sich auf die Erstellung und letzte Änderung der Ressource beziehen.

Name Typ Beschreibung
createdAt

string

Der Zeitstempel der Ressourcenerstellung (UTC).

createdBy

string

Die Identität, die die Ressource erstellt hat.

createdByType

createdByType

Der Identitätstyp, der die Ressource erstellt hat.

lastModifiedAt

string

Der Zeitstempel der letzten Änderung der Ressource (UTC)

lastModifiedBy

string

Die Identität, die die Ressource zuletzt geändert hat.

lastModifiedByType

createdByType

Der Identitätstyp, der die Ressource zuletzt geändert hat.

WeeklyRecurrence

Wöchentliches Wiederholungsobjekt.

Name Typ Beschreibung
daysOfWeek

DaysOfWeek[]

Gibt die Werte für das wöchentliche Wiederholungsmuster an.

endTime

string

Endzeit für die Wiederholung.

recurrenceType string:

Weekly

Gibt an, wann die Wiederholung angewendet werden soll.

startTime

string

Startzeit für die Wiederholung.