本文整理了Java中com.amazonaws.services.cloudwatch.model.GetMetricStatisticsRequest.setPeriod()
方法的一些代码示例,展示了GetMetricStatisticsRequest.setPeriod()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GetMetricStatisticsRequest.setPeriod()
方法的具体详情如下:
包路径:com.amazonaws.services.cloudwatch.model.GetMetricStatisticsRequest
类名称:GetMetricStatisticsRequest
方法名:setPeriod
[英]The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData
call that includes a StorageResolution
of 1 second.
If the StartTime
parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:
PutMetricData
调用存储的指标,该调用包括1秒的StorageResolution
。StartTime
参数指定的时间戳大于3小时前,则必须按以下方式指定时间段,否则将不返回该时间范围内的数据点:代码示例来源:origin: aws/aws-sdk-java
setPeriod(period);
return this;
代码示例来源:origin: petezybrick/awscwxls
GetMetricStatisticsRequest getMetricRequest = new GetMetricStatisticsRequest();
getMetricRequest.setNamespace( extractItem.getNamespace() );
getMetricRequest.setPeriod( extractItem.getPeriodMinutes() * 60 );
代码示例来源:origin: prometheus/cloudwatch_exporter
request.setEndTime(startDate);
request.setStartTime(endDate);
request.setPeriod(rule.periodSeconds);
内容来源于网络,如有侵权,请联系作者删除!