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

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

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

GetMetricStatisticsRequest.getStartTime介绍

[英]The time stamp that determines the first data point to return. Start times are evaluated relative to the time that CloudWatch receives the request.

The value specified is inclusive; results include data points with the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).

CloudWatch rounds the specified time stamp as follows:

  • Start time less than 15 days ago - Round down to the nearest whole minute. For example, 12:32:34 is rounded down to 12:32:00.
  • Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. For example, 12:32:34 is rounded down to 12:30:00.
  • Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. For example, 12:32:34 is rounded down to 12:00:00.

If you set Period to 5, 10, or 30, the start time of your request is rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a period of 5 seconds, you receive data timestamped between 15:02:15 and 15:07:15.
[中]

代码示例

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

if (getDimensions() != null)
  sb.append("Dimensions: ").append(getDimensions()).append(",");
if (getStartTime() != null)
  sb.append("StartTime: ").append(getStartTime()).append(",");
if (getEndTime() != null)
  sb.append("EndTime: ").append(getEndTime()).append(",");

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

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getNamespace() == null) ? 0 : getNamespace().hashCode());
  hashCode = prime * hashCode + ((getMetricName() == null) ? 0 : getMetricName().hashCode());
  hashCode = prime * hashCode + ((getDimensions() == null) ? 0 : getDimensions().hashCode());
  hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
  hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
  hashCode = prime * hashCode + ((getPeriod() == null) ? 0 : getPeriod().hashCode());
  hashCode = prime * hashCode + ((getStatistics() == null) ? 0 : getStatistics().hashCode());
  hashCode = prime * hashCode + ((getExtendedStatistics() == null) ? 0 : getExtendedStatistics().hashCode());
  hashCode = prime * hashCode + ((getUnit() == null) ? 0 : getUnit().hashCode());
  return hashCode;
}

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

if (other.getDimensions() != null && other.getDimensions().equals(this.getDimensions()) == false)
  return false;
if (other.getStartTime() == null ^ this.getStartTime() == null)
  return false;
if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false)
  return false;
if (other.getEndTime() == null ^ this.getEndTime() == null)

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

if (getMetricStatisticsRequest.getStartTime() != null) {
  request.addParameter("StartTime", StringUtils.fromDate(getMetricStatisticsRequest.getStartTime()));

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

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getNamespace() == null) ? 0 : getNamespace().hashCode());
  hashCode = prime * hashCode + ((getMetricName() == null) ? 0 : getMetricName().hashCode());
  hashCode = prime * hashCode + ((getDimensions() == null) ? 0 : getDimensions().hashCode());
  hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
  hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
  hashCode = prime * hashCode + ((getPeriod() == null) ? 0 : getPeriod().hashCode());
  hashCode = prime * hashCode + ((getStatistics() == null) ? 0 : getStatistics().hashCode());
  hashCode = prime * hashCode + ((getUnit() == null) ? 0 : getUnit().hashCode());
  return hashCode;
}

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

/**
 * Returns a string representation of this object; useful for testing and
 * debugging.
 *
 * @return A string representation of this object.
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("{");
  if (getNamespace() != null)
    sb.append("Namespace: " + getNamespace() + ",");
  if (getMetricName() != null)
    sb.append("MetricName: " + getMetricName() + ",");
  if (getDimensions() != null)
    sb.append("Dimensions: " + getDimensions() + ",");
  if (getStartTime() != null)
    sb.append("StartTime: " + getStartTime() + ",");
  if (getEndTime() != null)
    sb.append("EndTime: " + getEndTime() + ",");
  if (getPeriod() != null)
    sb.append("Period: " + getPeriod() + ",");
  if (getStatistics() != null)
    sb.append("Statistics: " + getStatistics() + ",");
  if (getUnit() != null)
    sb.append("Unit: " + getUnit());
  sb.append("}");
  return sb.toString();
}

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

&& other.getDimensions().equals(this.getDimensions()) == false)
  return false;
if (other.getStartTime() == null ^ this.getStartTime() == null)
  return false;
if (other.getStartTime() != null
    && other.getStartTime().equals(this.getStartTime()) == false)
  return false;
if (other.getEndTime() == null ^ this.getEndTime() == null)

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

if (getMetricStatisticsRequest.getStartTime() != null) {
  prefix = "StartTime";
  java.util.Date startTime = getMetricStatisticsRequest.getStartTime();
  request.addParameter(prefix, StringUtils.fromDate(startTime));

相关文章

微信公众号

最新文章

更多