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