public static final class PutExporterRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
PutExporterRuleRequest |
build() |
PutExporterRuleRequest.Builder |
describe(String describe)
The description of the data export rule.
|
PutExporterRuleRequest.Builder |
dstNames(List<String> dstNames)
The destination to which the data is exported.
|
PutExporterRuleRequest.Builder |
metricName(String metricName)
The name of the metric.
|
PutExporterRuleRequest.Builder |
namespace(String namespace)
The namespace of the cloud service.
|
PutExporterRuleRequest.Builder |
ruleName(String ruleName)
The name of the rule.
|
PutExporterRuleRequest.Builder |
targetWindows(String targetWindows)
The time window of the exported data.
|
public PutExporterRuleRequest.Builder describe(String describe)
The description of the data export rule.
example:Export CPU metrics
public PutExporterRuleRequest.Builder dstNames(List<String> dstNames)
The destination to which the data is exported. Valid values of N: 1 to 20.
This parameter is required.
example:distName1
public PutExporterRuleRequest.Builder metricName(String metricName)
public PutExporterRuleRequest.Builder namespace(String namespace)
The namespace of the cloud service.
example:For more information, see Appendix 1: Metrics.
acs_ecs_dashboard
public PutExporterRuleRequest.Builder ruleName(String ruleName)
The name of the rule.
example:If the specified rule exists, the existing rule is modified. Otherwise, a rule is created.
MyRuleName
public PutExporterRuleRequest.Builder targetWindows(String targetWindows)
The time window of the exported data. Unit: seconds.
Separate multiple time windows with commas (,).
Data in a time window of less than 60 seconds cannot be exported.
60,300
public PutExporterRuleRequest build()
Copyright © 2026. All rights reserved.