com.amazonaws.services.cloudwatch.model.GetMetricStatisticsRequest.setNamespace()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中com.amazonaws.services.cloudwatch.model.GetMetricStatisticsRequest.setNamespace()方法的一些代码示例,展示了GetMetricStatisticsRequest.setNamespace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GetMetricStatisticsRequest.setNamespace()方法的具体详情如下:
包路径:com.amazonaws.services.cloudwatch.model.GetMetricStatisticsRequest
类名称:GetMetricStatisticsRequest
方法名:setNamespace

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);

相关文章

微信公众号

最新文章

更多