Я не могу получить данные метрики с помощью этой команды.
aws cloudwatch get-metric-data --metric-data-queries jsonfile.json \
--start-time 2019-02-01T10:40:0000 --end-time 2019-02-27T14:12:0000
Появляется следующая ошибка.
Error parsing parameter '--metric-data-queries': Expected: '=', received: 'EOF' for input:
jsonfile.json
Здесь jsonfile.json содержит мой запрос, определенный ниже.
[
{
"Id": "MyRequest",
"MetricStat": {
"Metric": {
"Namespace": "AWS/EBS",
"MetricName": "VolumeReadBytes",
"Dimensions": [
{
"Name": "VolumeId",
"Value": "vol-******420********"
}
]
},
"Period": "3600",
"Stat": "Average",
"Unit": "Bytes"
},
"Label": "myRequestLabel",
"ReturnData": "true"
}
]