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

TagRules interface

表示 TagRules 的接口。

方法

beginDelete(string, string, string, TagRulesDeleteOptionalParams)

删除给定监视器资源的标记规则集。

beginDeleteAndWait(string, string, string, TagRulesDeleteOptionalParams)

删除给定监视器资源的标记规则集。

createOrUpdate(string, string, string, TagRulesCreateOrUpdateOptionalParams)

为给定的监视器资源创建或更新标记规则集。

get(string, string, string, TagRulesGetOptionalParams)

获取给定监视器资源的标记规则集。

list(string, string, TagRulesListOptionalParams)

列出给定监视资源的标记规则。

方法详细信息

beginDelete(string, string, string, TagRulesDeleteOptionalParams)

删除给定监视器资源的标记规则集。

function beginDelete(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

monitorName

string

监视资源名称

ruleSetName

string

标记规则集资源名称

options
TagRulesDeleteOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, TagRulesDeleteOptionalParams)

删除给定监视器资源的标记规则集。

function beginDeleteAndWait(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

monitorName

string

监视资源名称

ruleSetName

string

标记规则集资源名称

options
TagRulesDeleteOptionalParams

选项参数。

返回

Promise<void>

createOrUpdate(string, string, string, TagRulesCreateOrUpdateOptionalParams)

为给定的监视器资源创建或更新标记规则集。

function createOrUpdate(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesCreateOrUpdateOptionalParams): Promise<MonitoringTagRules>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

monitorName

string

监视资源名称

ruleSetName

string

标记规则集资源名称

options
TagRulesCreateOrUpdateOptionalParams

选项参数。

返回

get(string, string, string, TagRulesGetOptionalParams)

获取给定监视器资源的标记规则集。

function get(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesGetOptionalParams): Promise<MonitoringTagRules>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

monitorName

string

监视资源名称

ruleSetName

string

标记规则集资源名称

options
TagRulesGetOptionalParams

选项参数。

返回

list(string, string, TagRulesListOptionalParams)

列出给定监视资源的标记规则。

function list(resourceGroupName: string, monitorName: string, options?: TagRulesListOptionalParams): PagedAsyncIterableIterator<MonitoringTagRules, MonitoringTagRules[], PageSettings>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

monitorName

string

监视资源名称

options
TagRulesListOptionalParams

选项参数。

返回