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

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

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

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

相关文章

微信公众号

最新文章

更多