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

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

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

GetMetricStatisticsRequest.setEndTime介绍

[英]The time stamp that determines the last data point to return.

The value specified is exclusive; results include data points up to the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).
[中]

代码示例

代码示例来源:origin: aws/aws-sdk-java

/**
 * <p>
 * The time stamp that determines the last data point to return.
 * </p>
 * <p>
 * The value specified is exclusive; results include data points up to the specified time stamp. The time stamp must
 * be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).
 * </p>
 * 
 * @param endTime
 *        The time stamp that determines the last data point to return.</p>
 *        <p>
 *        The value specified is exclusive; results include data points up to the specified time stamp. The time
 *        stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public GetMetricStatisticsRequest withEndTime(java.util.Date endTime) {
  setEndTime(endTime);
  return this;
}

代码示例来源:origin: petezybrick/awscwxls

getMetricRequest.setEndTime( dfYyyyMmDdHhMmSs.parse( properties.getProperty("endTime").trim() ) );

代码示例来源:origin: prometheus/cloudwatch_exporter

request.setStatistics(rule.awsStatistics);
request.setExtendedStatistics(rule.awsExtendedStatistics);
request.setEndTime(startDate);
request.setStartTime(endDate);
request.setPeriod(rule.periodSeconds);

相关文章

微信公众号

最新文章

更多