Important: 按照 公告, 2019 年6月1日 之后创建的 log analytics 工作区 () 使用当前 scheduledQueryRules API管理警报规则。 建议客户切换到较旧工作区中 的当前 API ,利用 Azure Monitor scheduledQueryRules 的 优势。 本文介绍如何使用旧版 API 管理警报规则。
使用 Log Analytics 警报 REST API 可以在 Log Analytics 中创建和管理警报。 本文提供了用于执行不同操作的 API 和几个示例的详细信息。
Log Analytics 搜索 REST API 为 RESTful,可通过 Azure 资源管理器 REST API 访问。 在本文档中,你将看到一些示例,其中使用 ARMClient(一种可简化调用 AZURE 资源管理器 API 的开源命令行工具)从 PowerShell 命令行访问 API。 ARMClient 和 PowerShell 的使用是访问 Log Analytics 搜索 API 的许多选项之一。 借助这些工具,可以利用 RESTful Azure 资源管理器 API 对 Log Analytics 工作区进行调用并在其中执行搜索命令。 API 以 JSON 格式输出搜索结果,从而允许通过编程以许多不同的方式来使用搜索结果。
先决条件
目前,仅可以使用 Log Analytics 中已保存的搜索来创建警报。 有关详细信息,请参阅日志搜索 REST API。
计划
已保存的搜索可以有一个或多个计划。 计划定义搜索的运行频率以及进行条件识别的时间间隔。 计划具有下表中的属性。
| 属性 | 说明 |
|---|---|
| 时间间隔 | 搜索的运行频率。 以分钟为度量单位。 |
| QueryTimeSpan | 计算条件的时间间隔。 必须等于或大于间隔。 以分钟为度量单位。 |
| 版本 | 正在使用的 API 版本。 目前应始终设置为 1。 |
例如,考虑一个间隔为 15 分钟和时间跨度为 30 分钟的事件查询。 在这种情况下,将每隔 15 分钟运行一次查询,如果条件在超过 30 分钟的时间内持续解析为 true,则会触发警报。
检索计划
使用 Get 方法检索已保存搜索的所有计划。
armclient get /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules?api-version=2015-03-20
结合使用 Get 方法和计划 ID 检索已保存搜索的特定计划。
armclient get /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Subscription ID}/schedules/{Schedule ID}?api-version=2015-03-20
下面是一个响应计划的示例。
{
"value": [{
"id": "subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/sampleRG/providers/Microsoft.OperationalInsights/workspaces/MyWorkspace/savedSearches/0f0f4853-17f8-4ed1-9a03-8e888b0d16ec/schedules/a17b53ef-bd70-4ca4-9ead-83b00f2024a8",
"etag": "W/\"datetime'2016-02-25T20%3A54%3A49.8074679Z'\"",
"properties": {
"Interval": 15,
"QueryTimeSpan": 15,
"Enabled": true,
}
}]
}
创建计划
结合使用 Put 方法和唯一计划 ID 创建一个新计划。 两个计划的 ID 不能相同,即使它们与不同的已保存搜索关联,也是如此。 在 Log Analytics 控制台中创建计划时,将为计划 ID 创建一个 GUID。
Note: 所有已保存的搜索、计划和使用 Log Analytics API 创建的操作的名称必须小写。
$scheduleJson = "{'properties': { 'Interval': 15, 'QueryTimeSpan':15, 'Enabled':'true' } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/mynewschedule?api-version=2015-03-20 $scheduleJson
编辑计划
结合使用 Put 方法和相同已保存搜索的现有计划 ID 来修改该计划;在下面的示例中,该计划被禁用。 请求正文必须包含计划的 etag 。
$scheduleJson = "{'etag': 'W/\"datetime'2016-02-25T20%3A54%3A49.8074679Z'\""','properties': { 'Interval': 15, 'QueryTimeSpan':15, 'Enabled':'false' } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/mynewschedule?api-version=2015-03-20 $scheduleJson
删除计划
结合使用 Delete 方法和计划 ID 删除计划。
armclient delete /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Subscription ID}/schedules/{Schedule ID}?api-version=2015-03-20
操作
一个计划可以有多个操作。 操作可以定义一个或多个要执行的进程,例如发送邮件或启动 Runbook,也可以定义确定搜索结果与某些条件何时匹配的阈值。 某些操作将同时定义这两者,以便达到阈值时执行这些进程。
所有操作具有下表中的属性。 不同类型的警报具有不同的其他属性,如下所述。
| 属性 | 说明 |
|---|---|
Type |
操作的类型。 目前可能的值为警报和 Webhook。 |
Name |
警报的显示名称。 |
Version |
正在使用的 API 版本。 目前应始终设置为 1。 |
检索操作
使用 Get 方法检索计划的所有操作。
armclient get /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions?api-version=2015-03-20
结合使用 Get 方法和计划 ID 检索计划的特定操作。
armclient get /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Subscription ID}/schedules/{Schedule ID}/actions/{Action ID}?api-version=2015-03-20
创建或编辑操作
结合使用 Put 方法和计划唯一的操作 ID 可创建新操作。 在 Log Analytics 控制台中创建操作时,GUID 作为操作 ID。
Note: 所有已保存的搜索、计划和使用 Log Analytics API 创建的操作的名称必须小写。
结合使用 Put 方法和相同已保存搜索的现有操作 ID 来修改该计划。 请求正文必须包含该计划的 etag。
创建新操作的请求格式因操作类型而异,因此在以下各节中提供了这些示例。
删除操作
结合使用 Delete 方法和操作 ID 可删除操作。
armclient delete /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Subscription ID}/schedules/{Schedule ID}/Actions/{Action ID}?api-version=2015-03-20
警报操作
一个计划应具有一个且只能有一个警报操作。 警报操作具有下表中的一个或多个部分。 下面对各部分进行了详细描述。
| 部分 | 说明 | 使用情况 |
|---|---|---|
| 阈值 | 用于确定何时运行操作的条件。 | 每个警报所必需的,无论是在警报扩展到 Azure 之前还是之后。 |
| 严重性 | 当触发时用来对警报进行分类的标签。 | 每个警报所必需的,无论是在警报扩展到 Azure 之前还是之后。 |
| 取消 | 用于停止警报通知的选项。 | 对于每个警报均为可选,无论是在警报扩展到 Azure 之前还是之后。 |
| 操作组 | 在其中指定所需操作的 Azure 操作组的 ID,例如 - 电子邮件、SMS、语音呼叫、Webhook、自动化 Runbook、ITSM 连接器,等等。 | 警报扩展到 Azure 后所必需的 |
| 自定义操作 | 修改有关从操作组中选择操作的标准输出 | 对于每个警报都是可选的,可以在警报扩展到 Azure 后使用。 |
阈值
一项警报操作应具有一个且只能有一个阈值。 当已保存搜索的结果匹配与该搜索关联的操作中的阈值时,将运行该操作中的任何其他进程。 操作也可以只包含一个阈值,以便与不包含阈值的其他类型的操作一起使用。
阈值具有下表中的属性。
| 属性 | 说明 |
|---|---|
Operator |
阈值比较运算符。 gt = 大于 lt = 小于 |
Value |
阈值的数值。 |
例如,考虑一个间隔为 15 分钟、时间跨度为 30 分钟并且阈值大于 10 的事件查询。 在这种情况下,将每隔 15 分钟运行一次查询,如果返回在 30 分钟时间跨度内创建的 10 个事件,则会触发警报。
下面是响应仅具备一个阈值的操作的示例。
"etag": "W/\"datetime'2016-02-25T20%3A54%3A20.1302566Z'\"",
"properties": {
"Type": "Alert",
"Name": "My threshold action",
"Threshold": {
"Operator": "gt",
"Value": 10
},
"Version": 1
}
结合使用 Put 方法和唯一操作 ID 可为计划创建新阈值操作。
$thresholdJson = "{'properties': { 'Name': 'My Threshold', 'Version':'1', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 10 } } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/mythreshold?api-version=2015-03-20 $thresholdJson
结合使用 Put 方法和现有操作 ID 可修改计划的阈值操作。 请求正文必须包含操作的 etag。
$thresholdJson = "{'etag': 'W/\"datetime'2016-02-25T20%3A54%3A20.1302566Z'\"','properties': { 'Name': 'My Threshold', 'Version':'1', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 10 } } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/mythreshold?api-version=2015-03-20 $thresholdJson
严重性
Log Analytics 允许你将警报归类到各个类别,以便更轻松地进行管理和会审。 定义的警报严重性是:信息性、警告和严重。 它们如下所示映射到 Azure 警报的常规严重性级别:
| Log Analytics 严重性级别 | Azure 警报严重性级别 |
|---|---|
critical |
Sev 0 |
warning |
Sev 1 |
informational |
Sev 2 |
下面是针对仅具有阈值和严重性的操作的一个示例响应。
"etag": "W/\"datetime'2016-02-25T20%3A54%3A20.1302566Z'\"",
"properties": {
"Type": "Alert",
"Name": "My threshold action",
"Threshold": {
"Operator": "gt",
"Value": 10
},
"Severity": "critical",
"Version": 1
}
可以组合使用 Put 方法与唯一操作 ID 来为计划创建具有严重性的新操作。
$thresholdWithSevJson = "{'properties': { 'Name': 'My Threshold', 'Version':'1','Severity': 'critical', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 10 } } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/mythreshold?api-version=2015-03-20 $thresholdWithSevJson
可以组合使用 Put 方法与现有操作 ID 来为计划修改严重性操作。 请求正文必须包含操作的 etag。
$thresholdWithSevJson = "{'etag': 'W/\"datetime'2016-02-25T20%3A54%3A20.1302566Z'\"','properties': { 'Name': 'My Threshold', 'Version':'1','Severity': 'critical', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 10 } } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/mythreshold?api-version=2015-03-20 $thresholdWithSevJson
取消
每次达到或超过阈值时,都会触发基于 Log Analytics 的查询警报。 根据查询中隐含的逻辑,这可能会导致警报在一系列时间间隔触发,进而导致通知不断发送。 为了防止这种情况发生,用户可以设置“取消”选项,以指示 Log Analytics 在根据预警规则第二次发送通知之前等待规定的时间。 所以,如果“取消”设置为 30 分钟,那么警报在第一次触发时发送配置的通知。 不过,在根据预警规则再次发送通知之前,需要先等待 30 分钟。 在过渡期间,预警规则会继续运行,Log Analytics 在指定时间仅取消通知,无论在此期间内预警规则触发了多少次,也不例外。
Log Analytics 预警规则的“取消”属性是使用 Throttling 值指定,取消时间段是使用 DurationInMinutes 值指定。
下面的示例展示了仅包含“阈值”、“严重性”和“取消”属性的操作响应
"etag": "W/\"datetime'2016-02-25T20%3A54%3A20.1302566Z'\"",
"properties": {
"Type": "Alert",
"Name": "My threshold action",
"Threshold": {
"Operator": "gt",
"Value": 10
},
"Throttling": {
"DurationInMinutes": 30
},
"Severity": "critical",
"Version": 1
}
可以组合使用 Put 方法与唯一操作 ID 来为计划创建具有严重性的新操作。
$AlertSuppressJson = "{'properties': { 'Name': 'My Threshold', 'Version':'1','Severity': 'critical', 'Type':'Alert', 'Throttling': { 'DurationInMinutes': 30 },'Threshold': { 'Operator': 'gt', 'Value': 10 } } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myalert?api-version=2015-03-20 $AlertSuppressJson
可以组合使用 Put 方法与现有操作 ID 来为计划修改严重性操作。 请求正文必须包含操作的 etag。
$AlertSuppressJson = "{'etag': 'W/\"datetime'2016-02-25T20%3A54%3A20.1302566Z'\"','properties': { 'Name': 'My Threshold', 'Version':'1','Severity': 'critical', 'Type':'Alert', 'Throttling': { 'DurationInMinutes': 30 },'Threshold': { 'Operator': 'gt', 'Value': 10 } } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myalert?api-version=2015-03-20 $AlertSuppressJson
操作组
Azure 中的所有警报都使用操作组作为用来处理操作的默认机制。 使用操作组,可以将操作指定一次,然后将操作组关联到 Azure 中的多个警报。 不需要一再重复声明相同的操作。 操作组支持多个操作 - 包括电子邮件、SMS、语音呼叫、ITSM 连接、自动化 Runbook、Webhook URI,等等。
对于已将其警报扩展到 Azure 中的用户 - 一个计划现在应当将操作组详细信息与阈值一起传递,以便能够创建警报。 在创建警报前,需要先在操作组中定义电子邮件详细信息、Webhook URL、Runbook 自动化详细信息以及其他操作;可以在门户中通过 Azure Monitor 创建操作组,也可以使用操作组 API。
若要添加操作组到警报的关联,请在警报定义中指定操作组的唯一 Azure 资源管理器 ID。 下面提供了一个示例展示:
"etag": "W/\"datetime'2017-12-13T10%3A52%3A21.1697364Z'\"",
"properties": {
"Type": "Alert",
"Name": "test-alert",
"Description": "I need to put a description here",
"Threshold": {
"Operator": "gt",
"Value": 12
},
"AzNsNotification": {
"GroupIds": [
"/subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup"
]
},
"Severity": "critical",
"Version": 1
}
可以组合使用 Put 方法与唯一操作 ID 来为计划关联已经存在的操作组。 下面是用法的一个示例展示。
$AzNsJson = "{'properties': { 'Name': 'test-alert', 'Version':'1', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 12 },'Severity': 'critical', 'AzNsNotification': {'GroupIds': ['subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup']} } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{Resource Group Name}/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myAzNsaction?api-version=2015-03-20 $AzNsJson
可以组合使用 Put 方法与现有操作 ID 来为 计划修改关联的操作组。 请求正文必须包含操作的 etag。
$AzNsJson = "{'etag': 'datetime'2017-12-13T10%3A52%3A21.1697364Z'\"', 'properties': { 'Name': 'test-alert', 'Version':'1', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 12 },'Severity': 'critical', 'AzNsNotification': { 'GroupIds': ['subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup'] } } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{Resource Group Name}/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myAzNsaction?api-version=2015-03-20 $AzNsJson
自定义操作
默认情况下,操作遵循用于通知的标准模板和格式。 但是,用户可以自定义某些操作,即使它们是由操作组控制的。 目前可以自定义电子邮件主题和 Webhook 有效负载。
自定义操作组的电子邮件主题
默认情况下,警报的电子邮件主题是:<WorkspaceName> 的警报通知 <AlertName>。 但这可以自定义,因此你可以指定词语或标签,以便轻松在收件箱中利用筛选规则。 自定义的电子邮件标题详细信息需要随操作组详细信息一起发送,如以下示例中所示。
"etag": "W/\"datetime'2017-12-13T10%3A52%3A21.1697364Z'\"",
"properties": {
"Type": "Alert",
"Name": "test-alert",
"Description": "I need to put a description here",
"Threshold": {
"Operator": "gt",
"Value": 12
},
"AzNsNotification": {
"GroupIds": [
"/subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup"
],
"CustomEmailSubject": "Azure Alert fired"
},
"Severity": "critical",
"Version": 1
}
可以组合使用 Put 方法与唯一操作 ID 来为计划将已经存在的操作组与自定义项进行关联。 下面是用法的一个示例展示。
$AzNsJson = "{'properties': { 'Name': 'test-alert', 'Version':'1', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 12 },'Severity': 'critical', 'AzNsNotification': {'GroupIds': ['subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup'], 'CustomEmailSubject': 'Azure Alert fired'} } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{Resource Group Name}/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myAzNsaction?api-version=2015-03-20 $AzNsJson
可以组合使用 Put 方法与现有操作 ID 来为 计划修改关联的操作组。 请求正文必须包含操作的 etag。
$AzNsJson = "{'etag': 'datetime'2017-12-13T10%3A52%3A21.1697364Z'\"', 'properties': { 'Name': 'test-alert', 'Version':'1', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 12 },'Severity': 'critical', 'AzNsNotification': {'GroupIds': ['subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup']}, 'CustomEmailSubject': 'Azure Alert fired' } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{Resource Group Name}/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myAzNsaction?api-version=2015-03-20 $AzNsJson
自定义操作组的 Webhook 有效负载
默认情况下,通过 Log Analytics 的操作组发送的 Webhook 具有固定结构。 但是,可以使用受支持的特定变量来自定义 JSON 有效负载,以满足 Webhook 终结点的要求。 有关详细信息,请参阅日志警报规则的 Webhook 操作。
自定义的 Webhook 详细信息需要随操作组详细信息一起发送,并且将应用于在操作组内指定的所有 Webhook URI,如以下示例中所示。
"etag": "W/\"datetime'2017-12-13T10%3A52%3A21.1697364Z'\"",
"properties": {
"Type": "Alert",
"Name": "test-alert",
"Description": "I need to put a description here",
"Threshold": {
"Operator": "gt",
"Value": 12
},
"AzNsNotification": {
"GroupIds": [
"/subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup"
],
"CustomWebhookPayload": "{\"field1\":\"value1\",\"field2\":\"value2\"}",
"CustomEmailSubject": "Azure Alert fired"
},
"Severity": "critical",
"Version": 1
},
可以组合使用 Put 方法与唯一操作 ID 来为计划将已经存在的操作组与自定义项进行关联。 下面是用法的一个示例展示。
$AzNsJson = "{'properties': { 'Name': 'test-alert', 'Version':'1', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 12 },'Severity': 'critical', 'AzNsNotification': {'GroupIds': ['subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup'], 'CustomEmailSubject': 'Azure Alert fired','CustomWebhookPayload': '{\"field1\":\"value1\",\"field2\":\"value2\"}'} } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{Resource Group Name}/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myAzNsaction?api-version=2015-03-20 $AzNsJson
可以组合使用 Put 方法与现有操作 ID 来为 计划修改关联的操作组。 请求正文必须包含操作的 etag。
$AzNsJson = "{'etag': 'datetime'2017-12-13T10%3A52%3A21.1697364Z'\"', 'properties': { 'Name': 'test-alert', 'Version':'1', 'Type':'Alert', 'Threshold': { 'Operator': 'gt', 'Value': 12 },'Severity': 'critical', 'AzNsNotification': {'GroupIds': ['subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup']}, 'CustomEmailSubject': 'Azure Alert fired','CustomWebhookPayload': '{\"field1\":\"value1\",\"field2\":\"value2\"}' } }"
armclient put /subscriptions/{Subscription ID}/resourceGroups/{Resource Group Name}/Microsoft.OperationalInsights/workspaces/{Workspace Name}/savedSearches/{Search ID}/schedules/{Schedule ID}/actions/myAzNsaction?api-version=2015-03-20 $AzNsJson
后续步骤
- 在 Log Analytics 中使用 REST API 执行日志搜索。
- 了解 Azure monitor 中的日志警报
- 如何在 Azure monitor 中创建、编辑或管理日志警报规则
历史资料。此文对应 2022-08-12 的中文文档快照,适用产品版本和命令行为以原文为准。
来源与署名:Microsoft 和文档贡献者。固定版本原文。文档采用 CC BY 4.0,示例代码采用 MIT 授权。本站将 Markdown 转为 HTML,规范化链接,移除外部媒体和导航标记。
