Udostępnij za pośrednictwem


Alert Processing Rules - Create Or Update

Utwórz lub zaktualizuj regułę przetwarzania alertów.

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

Parametry identyfikatora URI

Nazwa W Wymagane Typ Opis
alertProcessingRuleName
path True

string

Nazwa reguły przetwarzania alertów, która musi zostać utworzona/zaktualizowana.

resourceGroupName
path True

string

Nazwa grupy zasobów, w której jest tworzony zasób.

subscriptionId
path True

string

Identyfikator subskrypcji docelowej.

api-version
query True

api-version

Wersja interfejsu API klienta.

Treść żądania

Nazwa Wymagane Typ Opis
location True

string

Lokalizacja zasobu

properties

AlertProcessingRuleProperties

Właściwości reguły przetwarzania alertów.

tags

object

Tagi zasobów

Odpowiedzi

Nazwa Typ Opis
200 OK

AlertProcessingRule

OK. Zwraca zaktualizowaną regułę przetwarzania alertów.

Nagłówki

x-ms-request-id: string

201 Created

AlertProcessingRule

Utworzone. Zwraca utworzoną regułę przetwarzania alertów.

Nagłówki

x-ms-request-id: string

Other Status Codes

errorResponse

Odpowiedź na błąd opisująca, dlaczego operacja nie powiodła się.

Przykłady

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

Przykładowe żądanie

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
  }
}

Przykładowa odpowiedź

{
  "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

Przykładowe żądanie

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
  }
}

Przykładowa odpowiedź

{
  "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)

Przykładowe żądanie

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
  }
}

Przykładowa odpowiedź

{
  "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

Przykładowe żądanie

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
  }
}

Przykładowa odpowiedź

{
  "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)

Przykładowe żądanie

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
  }
}

Przykładowa odpowiedź

{
  "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)

Przykładowe żądanie

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
  }
}

Przykładowa odpowiedź

{
  "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": {}
}

Definicje

Nazwa Opis
AddActionGroups

Dodaj grupy akcji do reguły przetwarzania alertów.

AlertProcessingRule

Obiekt reguły przetwarzania alertów zawierający zakresy docelowe, warunki i logikę planowania.

AlertProcessingRuleProperties

Właściwości reguły przetwarzania alertów definiujące zakresy, warunki i logikę planowania dla reguły przetwarzania alertów.

api-version

Wersja interfejsu API klienta.

Condition

Warunek wyzwalania reguły przetwarzania alertów.

createdByType

Typ tożsamości, która utworzyła zasób.

DailyRecurrence

Obiekt cyklu dziennego.

DaysOfWeek

Dni tygodnia.

errorResponse

Odpowiedź na błąd z usługi.

errorResponseBody

Szczegóły odpowiedzi na błąd.

Field

Pole dla danego warunku.

MonthlyRecurrence

Miesięczny obiekt cyklu.

Operator

Operator dla danego warunku.

RemoveAllActionGroups

Wskazuje, czy wszystkie grupy akcji powinny zostać usunięte.

Schedule

Planowanie konfiguracji dla danej reguły przetwarzania alertów.

systemData

Metadane dotyczące tworzenia i ostatniej modyfikacji zasobu.

WeeklyRecurrence

Cotygodniowy obiekt cyklu.

AddActionGroups

Dodaj grupy akcji do reguły przetwarzania alertów.

Nazwa Typ Opis
actionGroupIds

string[]

Lista identyfikatorów grupy akcji do dodania do reguły przetwarzania alertów.

actionType string:

AddActionGroups

Akcja, która powinna zostać zastosowana.

AlertProcessingRule

Obiekt reguły przetwarzania alertów zawierający zakresy docelowe, warunki i logikę planowania.

Nazwa Typ Opis
id

string

Identyfikator zasobu platformy Azure

location

string

Lokalizacja zasobu

name

string

Nazwa zasobu platformy Azure

properties

AlertProcessingRuleProperties

Właściwości reguły przetwarzania alertów.

systemData

systemData

Dane systemowe reguł przetwarzania alertów.

tags

object

Tagi zasobów

type

string

Typ zasobu platformy Azure

AlertProcessingRuleProperties

Właściwości reguły przetwarzania alertów definiujące zakresy, warunki i logikę planowania dla reguły przetwarzania alertów.

Nazwa Typ Domyślna wartość Opis
actions Action[]:

Akcje do zastosowania.

conditions

Condition[]

Warunki, w których będą filtrowane alerty.

description

string

Opis reguły przetwarzania alertów.

enabled

boolean

True

Wskazuje, czy dana reguła przetwarzania alertów jest włączona lub wyłączona.

schedule

Schedule

Planowanie reguły przetwarzania alertów.

scopes

string[]

Zakresy, w których będzie stosowana reguła przetwarzania alertów.

api-version

Wersja interfejsu API klienta.

Nazwa Typ Opis
2021-08-08

string

Condition

Warunek wyzwalania reguły przetwarzania alertów.

Nazwa Typ Opis
field

Field

Pole dla danego warunku.

operator

Operator

Operator dla danego warunku.

values

string[]

Lista wartości, które mają być zgodne z danym warunkiem.

createdByType

Typ tożsamości, która utworzyła zasób.

Nazwa Typ Opis
Application

string

Key

string

ManagedIdentity

string

User

string

DailyRecurrence

Obiekt cyklu dziennego.

Nazwa Typ Opis
endTime

string

Godzina zakończenia cyklu.

recurrenceType string:

Daily

Określa, kiedy ma być stosowany cykl.

startTime

string

Godzina rozpoczęcia cyklu.

DaysOfWeek

Dni tygodnia.

Nazwa Typ Opis
Friday

string

Monday

string

Saturday

string

Sunday

string

Thursday

string

Tuesday

string

Wednesday

string

errorResponse

Odpowiedź na błąd z usługi.

Nazwa Typ Opis
error

errorResponseBody

Szczegóły odpowiedzi na błąd.

errorResponseBody

Szczegóły odpowiedzi na błąd.

Nazwa Typ Opis
code

string

Kod błędu, który ma być używany programowo.

details

errorResponseBody[]

Lista dodatkowych szczegółów dotyczących błędu.

message

string

Opis błędu, który jest przeznaczony do wyświetlania w interfejsie użytkownika.

target

string

Element docelowy określonego błędu, na przykład nazwa właściwości.

Field

Pole dla danego warunku.

Nazwa Typ Opis
AlertContext

string

AlertRuleId

string

AlertRuleName

string

Description

string

MonitorCondition

string

MonitorService

string

Severity

string

SignalType

string

TargetResource

string

TargetResourceGroup

string

TargetResourceType

string

MonthlyRecurrence

Miesięczny obiekt cyklu.

Nazwa Typ Opis
daysOfMonth

integer[]

Określa wartości dla wzorca cyklu miesięcznego.

endTime

string

Godzina zakończenia cyklu.

recurrenceType string:

Monthly

Określa, kiedy ma być stosowany cykl.

startTime

string

Godzina rozpoczęcia cyklu.

Operator

Operator dla danego warunku.

Nazwa Typ Opis
Contains

string

DoesNotContain

string

Equals

string

NotEquals

string

RemoveAllActionGroups

Wskazuje, czy wszystkie grupy akcji powinny zostać usunięte.

Nazwa Typ Opis
actionType string:

RemoveAllActionGroups

Akcja, która powinna zostać zastosowana.

Schedule

Planowanie konfiguracji dla danej reguły przetwarzania alertów.

Nazwa Typ Opis
effectiveFrom

string

Planowanie efektywne od czasu. Date-Time w formacie ISO-8601 bez sufiksu strefy czasowej.

effectiveUntil

string

Planowanie skuteczne do czasu. Date-Time w formacie ISO-8601 bez sufiksu strefy czasowej.

recurrences Recurrence[]:

Lista cykli.

timeZone

string

Planowanie strefy czasowej.

systemData

Metadane dotyczące tworzenia i ostatniej modyfikacji zasobu.

Nazwa Typ Opis
createdAt

string

Sygnatura czasowa tworzenia zasobów (UTC).

createdBy

string

Tożsamość, która utworzyła zasób.

createdByType

createdByType

Typ tożsamości, która utworzyła zasób.

lastModifiedAt

string

Sygnatura czasowa ostatniej modyfikacji zasobu (UTC)

lastModifiedBy

string

Tożsamość, która ostatnio zmodyfikowała zasób.

lastModifiedByType

createdByType

Typ tożsamości, która ostatnio zmodyfikowała zasób.

WeeklyRecurrence

Cotygodniowy obiekt cyklu.

Nazwa Typ Opis
daysOfWeek

DaysOfWeek[]

Określa wartości wzorca cyklu tygodniowego.

endTime

string

Godzina zakończenia cyklu.

recurrenceType string:

Weekly

Określa, kiedy ma być stosowany cykl.

startTime

string

Godzina rozpoczęcia cyklu.