你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AlertProcessingRulesOperations interface

表示 AlertProcessingRules 操作的接口。

属性

createOrUpdate

创建或更新警报处理规则。

delete
getByName

按名称获取警报处理规则。

listByResourceGroup

列出资源组中的所有警报处理规则。

listBySubscription

列出订阅中的所有警报处理规则。

update

为警报处理规则启用、禁用或更新标记。

属性详细信息

createOrUpdate

创建或更新警报处理规则。

createOrUpdate: (resourceGroupName: string, alertProcessingRuleName: string, alertProcessingRule: AlertProcessingRule, options?: AlertProcessingRulesCreateOrUpdateOptionalParams) => Promise<AlertProcessingRule>

属性值

(resourceGroupName: string, alertProcessingRuleName: string, alertProcessingRule: AlertProcessingRule, options?: AlertProcessingRulesCreateOrUpdateOptionalParams) => Promise<AlertProcessingRule>

delete

delete: (resourceGroupName: string, alertProcessingRuleName: string, options?: AlertProcessingRulesDeleteOptionalParams) => Promise<void>

属性值

(resourceGroupName: string, alertProcessingRuleName: string, options?: AlertProcessingRulesDeleteOptionalParams) => Promise<void>

getByName

按名称获取警报处理规则。

getByName: (resourceGroupName: string, alertProcessingRuleName: string, options?: AlertProcessingRulesGetByNameOptionalParams) => Promise<AlertProcessingRule>

属性值

(resourceGroupName: string, alertProcessingRuleName: string, options?: AlertProcessingRulesGetByNameOptionalParams) => Promise<AlertProcessingRule>

listByResourceGroup

列出资源组中的所有警报处理规则。

listByResourceGroup: (resourceGroupName: string, options?: AlertProcessingRulesListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<AlertProcessingRule, AlertProcessingRule[], PageSettings>

属性值

(resourceGroupName: string, options?: AlertProcessingRulesListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<AlertProcessingRule, AlertProcessingRule[], PageSettings>

listBySubscription

列出订阅中的所有警报处理规则。

listBySubscription: (options?: AlertProcessingRulesListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<AlertProcessingRule, AlertProcessingRule[], PageSettings>

属性值

(options?: AlertProcessingRulesListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<AlertProcessingRule, AlertProcessingRule[], PageSettings>

update

为警报处理规则启用、禁用或更新标记。

update: (resourceGroupName: string, alertProcessingRuleName: string, alertProcessingRulePatch: PatchObject, options?: AlertProcessingRulesUpdateOptionalParams) => Promise<AlertProcessingRule>

属性值

(resourceGroupName: string, alertProcessingRuleName: string, alertProcessingRulePatch: PatchObject, options?: AlertProcessingRulesUpdateOptionalParams) => Promise<AlertProcessingRule>