从 EC2 Cloudwatch 返回的时间戳是表示时间段的开始还是结束?
Do timestamps returned from EC2 Cloudwatch represent the beginning or end of the period?
当我向 Cloudwatch API 查询我的 EC2 实例的 CPU 利用率时,每个返回的数据点都有一个 "Timestamp" 属性。此时间戳是否表示此数据点聚合周期的开始、中间或结束?
例如,如果我以 5 分钟为周期进行查询,时间戳为 10:00 的数据点是否代表 CPU 之间的平均值 9:55 am - 10:00 上午,或 10:00 上午 - 10:05 上午?
我检查了数据点类型 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Datapoint.html) 的文档,它只说时间戳是 "The time stamp used for the data point."
时间戳是范围的开始。在您的示例中,时间戳为 10:00am 的数据点将覆盖 10:00am - 10:05am.
我不确定那里是否提到了这一点,但是 CloudWatch Concepts 页面与 API 文档一起阅读是很好的选择。
When statistics are aggregated over a period of time, they are stamped
with the time corresponding to the beginning of the period. For
example, data aggregated from 7:00pm to 8:00pm is stamped as 7:00pm.
当我向 Cloudwatch API 查询我的 EC2 实例的 CPU 利用率时,每个返回的数据点都有一个 "Timestamp" 属性。此时间戳是否表示此数据点聚合周期的开始、中间或结束?
例如,如果我以 5 分钟为周期进行查询,时间戳为 10:00 的数据点是否代表 CPU 之间的平均值 9:55 am - 10:00 上午,或 10:00 上午 - 10:05 上午?
我检查了数据点类型 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Datapoint.html) 的文档,它只说时间戳是 "The time stamp used for the data point."
时间戳是范围的开始。在您的示例中,时间戳为 10:00am 的数据点将覆盖 10:00am - 10:05am.
我不确定那里是否提到了这一点,但是 CloudWatch Concepts 页面与 API 文档一起阅读是很好的选择。
When statistics are aggregated over a period of time, they are stamped with the time corresponding to the beginning of the period. For example, data aggregated from 7:00pm to 8:00pm is stamped as 7:00pm.