empty get-metric-statistics

0

get-metric-statistics returns no results while cloud watch console shows data. I run

aws cloudwatch get-metric-statistics --namespace "AWS/Usage" --metric-name "ResourceCount" --start-time 2022-02-28T11:30:00Z --end-time 2022-02-28T14:50:00Z --period 60 --statistics Average --dimensions "Name=Type,Value=Resource"

The metric is

{
    "view": "timeSeries",
    "stacked": false,
    "region": "us-west-2",
    "stat": "Average",
    "period": 300,
    "metrics": [
        [ { "expression": "SELECT AVG(ResourceCount) FROM SCHEMA(\"AWS/Usage\") WHERE Type = 'Resource' AND Resource = 'vCPU' AND Service = 'EC2' AND Class = 'Standard/OnDemand'", "label": "", "id": "q1" } ],
        [ "AWS/Usage", "ResourceCount", "Type", "Resource", "Resource", "vCPU", "Service", "EC2", "Class", "Standard/OnDemand", { "id": "m1" } ]
    ]
}
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인