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

TagRules interface

表示 TagRules 的接口。

方法

beginCreateOrUpdate(string, string, string, TagRule, TagRulesCreateOrUpdateOptionalParams)

创建 TagRule

beginCreateOrUpdateAndWait(string, string, string, TagRule, TagRulesCreateOrUpdateOptionalParams)

创建 TagRule

beginDelete(string, string, string, TagRulesDeleteOptionalParams)

删除 TagRule

beginDeleteAndWait(string, string, string, TagRulesDeleteOptionalParams)

删除 TagRule

get(string, string, string, TagRulesGetOptionalParams)

获取 TagRule

listByNewRelicMonitorResource(string, string, TagRulesListByNewRelicMonitorResourceOptionalParams)

按 NewRelicMonitorResource 列出 TagRule 资源

update(string, string, string, TagRuleUpdate, TagRulesUpdateOptionalParams)

更新 TagRule

方法详细信息

beginCreateOrUpdate(string, string, string, TagRule, TagRulesCreateOrUpdateOptionalParams)

创建 TagRule

function beginCreateOrUpdate(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<TagRule>, TagRule>>

参数

resourceGroupName

string

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

monitorName

string

监视器资源的名称

ruleSetName

string

TagRule 的名称

resource
TagRule

资源创建参数。

options
TagRulesCreateOrUpdateOptionalParams

选项参数。

返回

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

beginCreateOrUpdateAndWait(string, string, string, TagRule, TagRulesCreateOrUpdateOptionalParams)

创建 TagRule

function beginCreateOrUpdateAndWait(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<TagRule>

参数

resourceGroupName

string

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

monitorName

string

监视器资源的名称

ruleSetName

string

TagRule 的名称

resource
TagRule

资源创建参数。

options
TagRulesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<TagRule>

beginDelete(string, string, string, TagRulesDeleteOptionalParams)

删除 TagRule

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

参数

resourceGroupName

string

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

monitorName

string

监视器资源的名称

ruleSetName

string

TagRule 的名称

options
TagRulesDeleteOptionalParams

选项参数。

返回

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

beginDeleteAndWait(string, string, string, TagRulesDeleteOptionalParams)

删除 TagRule

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

参数

resourceGroupName

string

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

monitorName

string

监视器资源的名称

ruleSetName

string

TagRule 的名称

options
TagRulesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, TagRulesGetOptionalParams)

获取 TagRule

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

参数

resourceGroupName

string

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

monitorName

string

监视器资源的名称

ruleSetName

string

TagRule 的名称

options
TagRulesGetOptionalParams

选项参数。

返回

Promise<TagRule>

listByNewRelicMonitorResource(string, string, TagRulesListByNewRelicMonitorResourceOptionalParams)

按 NewRelicMonitorResource 列出 TagRule 资源

function listByNewRelicMonitorResource(resourceGroupName: string, monitorName: string, options?: TagRulesListByNewRelicMonitorResourceOptionalParams): PagedAsyncIterableIterator<TagRule, TagRule[], PageSettings>

参数

resourceGroupName

string

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

monitorName

string

监视器资源的名称

返回

update(string, string, string, TagRuleUpdate, TagRulesUpdateOptionalParams)

更新 TagRule

function update(resourceGroupName: string, monitorName: string, ruleSetName: string, properties: TagRuleUpdate, options?: TagRulesUpdateOptionalParams): Promise<TagRule>

参数

resourceGroupName

string

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

monitorName

string

监视器资源的名称

ruleSetName

string

TagRule 的名称

properties
TagRuleUpdate

要更新的资源属性。

options
TagRulesUpdateOptionalParams

选项参数。

返回

Promise<TagRule>