public class CreateMetricRuleResourcesRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
overwrite
Specifies whether to overwrite the existing data.
|
String |
resources
The resources to be associated with the alert rule.
|
String |
ruleId
The ID of the alert rule.
|
| 构造器和说明 |
|---|
CreateMetricRuleResourcesRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateMetricRuleResourcesRequest |
build(Map<String,?> map) |
String |
getOverwrite() |
String |
getResources() |
String |
getRuleId() |
CreateMetricRuleResourcesRequest |
setOverwrite(String overwrite) |
CreateMetricRuleResourcesRequest |
setResources(String resources) |
CreateMetricRuleResourcesRequest |
setRuleId(String ruleId) |
@NameInMap(value="Overwrite") public String overwrite
Specifies whether to overwrite the existing data. Valid values:
* true: The resources submitted this time will overwrite the previous associated resources.
* false: The resources submitted this time will not overwrite the previous associated resources. The associated resources after submission include the previous associated resources and the resources submitted this time.
@NameInMap(value="Resources") public String resources
The resources to be associated with the alert rule. The value is a JSON array.
> You can add up to 100 resources each time. An alert rule can be associated with up to 3,000 resources.
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
public static CreateMetricRuleResourcesRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateMetricRuleResourcesRequest setOverwrite(String overwrite)
public String getOverwrite()
public CreateMetricRuleResourcesRequest setResources(String resources)
public String getResources()
public CreateMetricRuleResourcesRequest setRuleId(String ruleId)
public String getRuleId()
Copyright © 2024. All rights reserved.