Alert Processing Rules - List By Resource Group
리소스 그룹의 모든 경고 처리 규칙을 나열합니다.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules?api-version=2021-08-08
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
리소스가 만들어지는 리소스 그룹 이름입니다. |
subscription
|
path | True |
string |
대상 구독의 ID입니다. |
api-version
|
query | True |
클라이언트 API 버전입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
OK. 경고 처리 규칙 목록을 반환합니다. Headers x-ms-request-id: string |
|
Other Status Codes |
작업이 실패한 이유를 설명하는 오류 응답입니다. |
예제
GetAlertProcessingRulesResourceGroupWide
Sample Request
Sample Response
{
"nextLink": "https://management.azure.com:443/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules?api-version=2021-08-08&ctoken=%2bRID%3aPlwOAPHEGwB9UwEAAAAgCw%3d%3d%23RT%3a2%23TRC%3a500%23RTD%3aqtQyMDE4LTA2LTEyVDE1OjEyOjE1",
"value": [
{
"systemData": {
"createdBy": "abc@microsoft.com",
"createdByType": "User",
"createdAt": "2018-06-12T22:05:09Z",
"lastModifiedBy": "xyz@microsoft.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-06-12T22:05:09Z"
},
"properties": {
"scopes": [
"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"
],
"conditions": [
{
"field": "Severity",
"operator": "Equals",
"values": [
"Sev0",
"Sev2"
]
},
{
"field": "MonitorService",
"operator": "Equals",
"values": [
"Platform",
"Application Insights"
]
},
{
"field": "TargetResourceType",
"operator": "NotEquals",
"values": [
"Microsoft.Compute/VirtualMachines"
]
}
],
"schedule": {
"effectiveFrom": "2018-09-12T06:00:00",
"effectiveUntil": "2018-09-20T14:00:00",
"timeZone": "Pacific Standard Time",
"recurrences": [
{
"recurrenceType": "Daily",
"startTime": "06:00:00",
"endTime": "14:00:00"
}
]
},
"actions": [
{
"actionType": "RemoveAllActionGroups"
}
],
"description": "Alert processing rule on resource group for daily suppression",
"enabled": true
},
"id": "/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression",
"type": "Microsoft.AlertsManagement/actionRules",
"name": "DailySuppression",
"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-12T22:05:09Z"
},
"properties": {
"scopes": [
"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.Compute/VirtualMachines/testResource"
],
"conditions": [
{
"field": "MonitorCondition",
"operator": "Equals",
"values": [
"Fired"
]
},
{
"field": "Description",
"operator": "Contains",
"values": [
"Percentage CPU greater than 80%",
"Metric alert on resource foo"
]
},
{
"field": "AlertContext",
"operator": "DoesNotContain",
"values": [
"testresource",
"foo"
]
}
],
"actions": [
{
"actionType": "AddActionGroups",
"actionGroupIds": [
"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.insights/actiongroups/testAG"
]
}
],
"description": "Alert processing rule on resource group for sending email",
"enabled": true
},
"id": "/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/WeeklySuppression",
"type": "Microsoft.AlertsManagement/actionRules",
"name": "WeeklySuppression",
"location": "Global",
"tags": {}
}
]
}
정의
Name | Description |
---|---|
Add |
경고 처리 규칙에 작업 그룹을 추가합니다. |
Alert |
대상 범위, 조건 및 예약 논리를 포함하는 경고 처리 규칙 개체입니다. |
Alert |
경고 처리 규칙 속성은 경고 처리 규칙에 대한 범위, 조건 및 예약 논리를 정의합니다. |
Alert |
경고 처리 규칙 목록입니다. |
api-version |
클라이언트 API 버전입니다. |
Condition |
경고 처리 규칙을 트리거하는 조건입니다. |
created |
리소스를 만든 ID 유형입니다. |
Daily |
일별 되풀이 개체입니다. |
Days |
요일. |
error |
서비스의 오류 응답입니다. |
error |
오류 응답에 대한 세부 정보입니다. |
Field |
지정된 조건의 필드입니다. |
Monthly |
월별 되풀이 개체입니다. |
Operator |
지정된 조건에 대한 연산자입니다. |
Remove |
모든 작업 그룹을 제거해야 하는지를 나타냅니다. |
Schedule |
지정된 경고 처리 규칙에 대한 구성 예약 |
system |
리소스 만들기 및 마지막 수정과 관련된 메타데이터입니다. |
Weekly |
매주 되풀이 개체입니다. |
AddActionGroups
경고 처리 규칙에 작업 그룹을 추가합니다.
Name | 형식 | Description |
---|---|---|
actionGroupIds |
string[] |
경고 처리 규칙에 추가할 작업 그룹 ID 목록입니다. |
actionType | string: |
적용해야 하는 작업입니다. |
AlertProcessingRule
대상 범위, 조건 및 예약 논리를 포함하는 경고 처리 규칙 개체입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
Azure 리소스 ID |
location |
string |
리소스 위치 |
name |
string |
Azure 리소스 이름 |
properties |
경고 처리 규칙 속성입니다. |
|
systemData |
경고 처리 규칙 시스템 데이터입니다. |
|
tags |
object |
리소스 태그 |
type |
string |
Azure 리소스 종류 |
AlertProcessingRuleProperties
경고 처리 규칙 속성은 경고 처리 규칙에 대한 범위, 조건 및 예약 논리를 정의합니다.
Name | 형식 | 기본값 | Description |
---|---|---|---|
actions | Action[]: |
적용할 작업입니다. |
|
conditions |
경고를 필터링할 조건입니다. |
||
description |
string |
경고 처리 규칙에 대한 설명입니다. |
|
enabled |
boolean |
True |
지정된 경고 처리 규칙을 사용하도록 설정하거나 사용하지 않도록 설정했는지 여부를 나타냅니다. |
schedule |
경고 처리 규칙 예약 |
||
scopes |
string[] |
경고 처리 규칙이 적용되는 범위입니다. |
AlertProcessingRulesList
경고 처리 규칙 목록입니다.
Name | 형식 | Description |
---|---|---|
nextLink |
string |
다음 경고 처리 규칙 집합을 가져오는 URL입니다. |
value |
경고 처리 규칙 목록입니다. |
api-version
클라이언트 API 버전입니다.
Name | 형식 | Description |
---|---|---|
2021-08-08 |
string |
Condition
경고 처리 규칙을 트리거하는 조건입니다.
Name | 형식 | Description |
---|---|---|
field |
지정된 조건의 필드입니다. |
|
operator |
지정된 조건에 대한 연산자입니다. |
|
values |
string[] |
지정된 조건에 일치시킬 값 목록입니다. |
createdByType
리소스를 만든 ID 유형입니다.
Name | 형식 | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DailyRecurrence
일별 되풀이 개체입니다.
Name | 형식 | Description |
---|---|---|
endTime |
string |
되풀이 종료 시간입니다. |
recurrenceType |
string:
Daily |
되풀이를 적용해야 하는 시기를 지정합니다. |
startTime |
string |
되풀이를 위한 시작 시간입니다. |
DaysOfWeek
요일.
Name | 형식 | Description |
---|---|---|
Friday |
string |
|
Monday |
string |
|
Saturday |
string |
|
Sunday |
string |
|
Thursday |
string |
|
Tuesday |
string |
|
Wednesday |
string |
errorResponse
서비스의 오류 응답입니다.
Name | 형식 | Description |
---|---|---|
error |
오류 응답에 대한 세부 정보입니다. |
errorResponseBody
오류 응답에 대한 세부 정보입니다.
Name | 형식 | Description |
---|---|---|
code |
string |
프로그래밍 방식으로 사용할 오류 코드입니다. |
details |
오류에 대한 추가 세부 정보 목록입니다. |
|
message |
string |
사용자 인터페이스에 표시하기 위한 오류에 대한 설명입니다. |
target |
string |
특정 오류의 대상(예: 속성 이름)입니다. |
Field
지정된 조건의 필드입니다.
Name | 형식 | Description |
---|---|---|
AlertContext |
string |
|
AlertRuleId |
string |
|
AlertRuleName |
string |
|
Description |
string |
|
MonitorCondition |
string |
|
MonitorService |
string |
|
Severity |
string |
|
SignalType |
string |
|
TargetResource |
string |
|
TargetResourceGroup |
string |
|
TargetResourceType |
string |
MonthlyRecurrence
월별 되풀이 개체입니다.
Name | 형식 | Description |
---|---|---|
daysOfMonth |
integer[] |
월별 되풀이 패턴의 값을 지정합니다. |
endTime |
string |
되풀이 종료 시간입니다. |
recurrenceType |
string:
Monthly |
되풀이를 적용해야 하는 시기를 지정합니다. |
startTime |
string |
되풀이를 위한 시작 시간입니다. |
Operator
지정된 조건에 대한 연산자입니다.
Name | 형식 | Description |
---|---|---|
Contains |
string |
|
DoesNotContain |
string |
|
Equals |
string |
|
NotEquals |
string |
RemoveAllActionGroups
모든 작업 그룹을 제거해야 하는지를 나타냅니다.
Name | 형식 | Description |
---|---|---|
actionType | string: |
적용해야 하는 작업입니다. |
Schedule
지정된 경고 처리 규칙에 대한 구성 예약
Name | 형식 | Description |
---|---|---|
effectiveFrom |
string |
일정 예약은 시간부터 유효합니다. 표준 시간대 접미사가 없는 ISO-8601 형식으로 Date-Time. |
effectiveUntil |
string |
일정은 시간까지 유효합니다. 표준 시간대 접미사가 없는 ISO-8601 형식으로 Date-Time. |
recurrences | Recurrence[]: |
되풀이 목록입니다. |
timeZone |
string |
표준 시간대 예약. |
systemData
리소스 만들기 및 마지막 수정과 관련된 메타데이터입니다.
Name | 형식 | Description |
---|---|---|
createdAt |
string |
UTC(리소스 만들기)의 타임스탬프입니다. |
createdBy |
string |
리소스를 만든 ID입니다. |
createdByType |
리소스를 만든 ID 유형입니다. |
|
lastModifiedAt |
string |
리소스 마지막 수정의 타임스탬프(UTC) |
lastModifiedBy |
string |
리소스를 마지막으로 수정한 ID입니다. |
lastModifiedByType |
리소스를 마지막으로 수정한 ID 유형입니다. |
WeeklyRecurrence
매주 되풀이 개체입니다.
Name | 형식 | Description |
---|---|---|
daysOfWeek |
매주 되풀이 패턴의 값을 지정합니다. |
|
endTime |
string |
되풀이 종료 시간입니다. |
recurrenceType |
string:
Weekly |
되풀이를 적용해야 하는 시기를 지정합니다. |
startTime |
string |
되풀이를 위한 시작 시간입니다. |