Как GetMetricStatistics нарушает временной интервал для точек данных?

С помощью следующего кода я намерен получить CPUUtilization за последний час. Я получаю набор точек данных, разделенных временным интервалом 5 minutes, Почему это?

       $dimensions = array(
array('Name' => 'InstanceId', 'Value' => 'i-4dxxxd95'),
);

$stats = $cloudWatchClient->getMetricStatistics(array(
'Namespace'  => 'AWS/EC2',
'MetricName' => 'CPUUtilization',
'Dimensions' => $dimensions,
'StartTime'  => strtotime('-1 hour'),
'EndTime'    => strtotime('now'),
'Period'     => 60,
'Statistics' => array('Maximum', 'Minimum'),
));

В соответствии с документация:

Amazon CloudWatch aggregates data points based on the length of the period that you specify.
For example, if you request statistics with a one-minute granularity, Amazon
CloudWatch aggregates data points with time stamps that fall within the
same one-minute period. In such a case, the data points queried
can greatly outnumber the data points returned.

Итак, я должен получить все отметки времени в течение одной минуты. Не так ли?

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector