TagRules interface
表示 TagRules 的接口。
方法
| begin |
删除给定监视器资源的标记规则集。 |
| begin |
删除给定监视器资源的标记规则集。 |
| create |
为给定的监视器资源创建或更新标记规则集。 |
| get(string, string, string, Tag |
获取给定监视器资源的标记规则集。 |
| list(string, string, Tag |
列出给定监视资源的标记规则。 |
方法详细信息
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
标记规则集资源名称
选项参数。
返回
Promise<MonitoringTagRules>
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
选项参数。
返回
Promise<MonitoringTagRules>
list(string, string, TagRulesListOptionalParams)
列出给定监视资源的标记规则。
function list(resourceGroupName: string, monitorName: string, options?: TagRulesListOptionalParams): PagedAsyncIterableIterator<MonitoringTagRules, MonitoringTagRules[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- monitorName
-
string
监视资源名称
- options
- TagRulesListOptionalParams
选项参数。