本文整理了Java中com.amazonaws.services.cloudwatch.model.GetMetricStatisticsRequest.setMetricName()
方法的一些代码示例,展示了GetMetricStatisticsRequest.setMetricName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GetMetricStatisticsRequest.setMetricName()
方法的具体详情如下:
包路径:com.amazonaws.services.cloudwatch.model.GetMetricStatisticsRequest
类名称:GetMetricStatisticsRequest
方法名:setMetricName
[英]The name of the metric, with or without spaces.
[中]度量的名称,带空格或不带空格。
代码示例来源:origin: aws/aws-sdk-java
/**
* <p>
* The name of the metric, with or without spaces.
* </p>
*
* @param metricName
* The name of the metric, with or without spaces.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMetricStatisticsRequest withMetricName(String metricName) {
setMetricName(metricName);
return this;
}
代码示例来源:origin: petezybrick/awscwxls
getMetricRequest.setMetricName(metricName);
GetMetricStatisticsResult getMetricStatisticsResult = cwClient.getMetricStatistics(getMetricRequest);
List<Datapoint> datapoints = getMetricStatisticsResult.getDatapoints();
代码示例来源:origin: prometheus/cloudwatch_exporter
GetMetricStatisticsRequest request = new GetMetricStatisticsRequest();
request.setNamespace(rule.awsNamespace);
request.setMetricName(rule.awsMetricName);
request.setStatistics(rule.awsStatistics);
request.setExtendedStatistics(rule.awsExtendedStatistics);
内容来源于网络,如有侵权,请联系作者删除!