Smart Detector Alert Rules - Patch
특정 Smart Detector 경고 규칙을 패치합니다.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}?api-version=2019-06-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
alert
|
path | True |
string |
경고 규칙의 이름입니다. |
resource
|
path | True |
string |
리소스 그룹의 이름. |
subscription
|
path | True |
string |
대상 구독의 ID입니다. |
api-version
|
query | True |
string |
클라이언트 API 버전. |
요청 본문
Name | 형식 | Description |
---|---|---|
properties.actionGroups |
경고 규칙 작업입니다. |
|
properties.description |
string |
경고 규칙 설명입니다. |
properties.frequency |
string |
ISO8601 형식의 경고 규칙 빈도입니다. 시간 세분성은 분 단위여야 하고 최소값은 5분이어야 합니다. |
properties.severity |
경고 규칙 심각도입니다. |
|
properties.state |
경고 규칙 상태입니다. |
|
properties.throttling |
경고 규칙 제한 정보입니다. |
|
tags |
object |
리소스 태그입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
Smart Detector 경고 규칙을 패치하도록 요청했습니다. |
|
Other Status Codes |
작업이 실패한 이유를 설명하는 오류 응답입니다. |
보안
azure_auth
Azure Active Directory OAuth2 Flow
형식:
oauth2
Flow:
implicit
권한 부여 URL:
https://login.microsoftonline.com/common/oauth2/authorize
범위
Name | Description |
---|---|
user_impersonation | 사용자 계정 가장 |
예제
Patch alert rules
샘플 요청
PATCH https://management.azure.com/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule?api-version=2019-06-01
{
"tags": {
"newKey": "newVal"
},
"properties": {
"description": "New description for patching",
"frequency": "PT1M"
}
}
샘플 응답
{
"id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule",
"type": "Microsoft.AlertsManagement/smartDetectorAlertRules",
"name": "MyAlertRule",
"location": "global",
"tags": {
"newKey": "newVal"
},
"properties": {
"description": "New description for patching",
"state": "Enabled",
"severity": "Sev3",
"frequency": "PT1M",
"detector": {
"id": "VMMemoryLeak"
},
"scope": [
"/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"
],
"actionGroups": [
{
"actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"
}
],
"throttling": {
"duration": "PT20M"
}
}
}
정의
Name | Description |
---|---|
Action |
경고 규칙에서 사용하는 작업 그룹 정보입니다. |
Alert |
경고 규칙 정보 |
Alert |
경고 규칙 패치 정보 |
Alert |
경고 규칙 상태입니다. |
Detector |
탐지기 정보입니다. expandDetector에 지정되지 않는 한 기본적으로 채워지지 않습니다. |
Severity |
경고 규칙 심각도입니다. |
Smart |
오류 응답의 형식을 설명합니다. |
Throttling |
경고 규칙에 대한 선택적 제한 정보입니다. |
ActionGroupsInformation
경고 규칙에서 사용하는 작업 그룹 정보입니다.
Name | 형식 | Description |
---|---|---|
customEmailSubject |
string |
메일 알림 사용할 선택적 사용자 지정 전자 메일입니다. |
customWebhookPayload |
string |
웹 후크 알림에 사용할 선택적 사용자 지정 웹 후크 페이로드입니다. |
groupIds |
string[] |
작업 그룹 리소스 ID입니다. |
AlertRule
경고 규칙 정보
Name | 형식 | Default value | Description |
---|---|---|---|
id |
string |
리소스 ID입니다. |
|
location |
string |
global |
리소스 위치입니다. |
name |
string |
리소스 이름입니다. |
|
properties.actionGroups |
경고 규칙 작업입니다. |
||
properties.description |
string |
경고 규칙 설명입니다. |
|
properties.detector |
경고 규칙의 탐지기입니다. |
||
properties.frequency |
string |
ISO8601 형식의 경고 규칙 빈도입니다. 시간 세분성은 분 단위여야 하고 최소값은 5분이어야 합니다. |
|
properties.scope |
string[] |
경고 규칙 리소스는 scope. |
|
properties.severity |
경고 규칙 심각도입니다. |
||
properties.state |
경고 규칙 상태입니다. |
||
properties.throttling |
경고 규칙 제한 정보입니다. |
||
tags |
object |
리소스 태그입니다. |
|
type |
string |
리소스 종류입니다. |
AlertRulePatchObject
경고 규칙 패치 정보
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
name |
string |
리소스 이름입니다. |
properties.actionGroups |
경고 규칙 작업입니다. |
|
properties.description |
string |
경고 규칙 설명입니다. |
properties.frequency |
string |
ISO8601 형식의 경고 규칙 빈도입니다. 시간 세분성은 분 단위여야 하고 최소값은 5분이어야 합니다. |
properties.severity |
경고 규칙 심각도입니다. |
|
properties.state |
경고 규칙 상태입니다. |
|
properties.throttling |
경고 규칙 제한 정보입니다. |
|
tags |
object |
리소스 태그입니다. |
type |
string |
리소스 종류입니다. |
AlertRuleState
경고 규칙 상태입니다.
Name | 형식 | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
Detector
탐지기 정보입니다. expandDetector에 지정되지 않는 한 기본적으로 채워지지 않습니다.
Name | 형식 | Description |
---|---|---|
description |
string |
Smart Detector 설명입니다. expandDetector에 지정되지 않는 한 기본적으로 채워지지 않습니다. |
id |
string |
감지기 ID입니다. |
imagePaths |
string[] |
Smart Detector 이미지 경로입니다. expandDetector에 지정되지 않는 한 기본적으로 채워지지 않습니다. |
name |
string |
Smart Detector 이름입니다. expandDetector에 지정되지 않는 한 기본적으로 채워지지 않습니다. |
parameters |
object |
탐지기의 매개 변수입니다.' |
supportedResourceTypes |
string[] |
Smart Detector 지원 리소스 종류입니다. expandDetector에 지정되지 않는 한 기본적으로 채워지지 않습니다. |
Severity
경고 규칙 심각도입니다.
Name | 형식 | Description |
---|---|---|
Sev0 |
string |
|
Sev1 |
string |
|
Sev2 |
string |
|
Sev3 |
string |
|
Sev4 |
string |
SmartDetectorErrorResponse
오류 응답의 형식을 설명합니다.
Name | 형식 | Description |
---|---|---|
code |
string |
오류 코드 |
message |
string |
작업이 실패한 이유를 나타내는 오류 메시지입니다. |
ThrottlingInformation
경고 규칙에 대한 선택적 제한 정보입니다.
Name | 형식 | Description |
---|---|---|
duration |
string |
경고 규칙에 다시 알리기 전에 대기하는 데 필요한 기간(ISO8601 형식)입니다. 시간 세분성은 분 단위여야 하고 최소값은 0분이어야 합니다. |