Difference between revisions of "Aws ce get-anomalies"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
  [[aws ce get-anomalies --date-interval]] [[StartDate]]=string,[[EndDate]]=string
 
  [[aws ce get-anomalies --date-interval]] [[StartDate]]=string,[[EndDate]]=string
 
  aws ce get-anomalies --date-interval StartDate=2022-01-01,EndDate=2022-01-15 --output text
 
  aws ce get-anomalies --date-interval StartDate=2022-01-01,EndDate=2022-01-15 --output text
 +
 +
== Example output ==
 +
 +
        {
 +
            "AnomalyId": "22038e3c-eb5d-4c0c-9a1d-04bf29056677",
 +
            "AnomalyStartDate": "2021-12-31T00:00:00Z",
 +
            "AnomalyEndDate": "2022-01-01T00:00:00Z",
 +
            "DimensionValue": "Amazon API Gateway",
 +
            "RootCauses": [
 +
                {
 +
                    "Service": "Amazon API Gateway",
 +
                    "Region": "eu-central-1",
 +
                    "LinkedAccount": "174058868111",
 +
                    "UsageType": "EUC1-ApiGatewayRequest"
 +
                }
 +
            ],
 +
            "AnomalyScore": {
 +
                "MaxScore": 0.43,
 +
                "CurrentScore": 0.42
 +
            },
 +
            "Impact": {
 +
                "MaxImpact": 0.15,
 +
                "TotalImpact": 0.28
 +
            },
 +
            "MonitorArn": "arn:aws:ce::174058868111:anomalymonitor/22038e3c-eb5d-4c0c-9a1d-04bf29056677"
 +
        }
 +
  
 
== Related ==
 
== Related ==

Revision as of 12:06, 18 January 2022

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ce/get-anomalies.html

aws ce get-anomalies --date-interval
aws ce get-anomalies --date-interval StartDate=string,EndDate=string
aws ce get-anomalies --date-interval StartDate=2022-01-01,EndDate=2022-01-15 --output text

Example output

       {
           "AnomalyId": "22038e3c-eb5d-4c0c-9a1d-04bf29056677",
           "AnomalyStartDate": "2021-12-31T00:00:00Z",
           "AnomalyEndDate": "2022-01-01T00:00:00Z",
           "DimensionValue": "Amazon API Gateway",
           "RootCauses": [
               {
                   "Service": "Amazon API Gateway",
                   "Region": "eu-central-1",
                   "LinkedAccount": "174058868111",
                   "UsageType": "EUC1-ApiGatewayRequest"
               }
           ],
           "AnomalyScore": {
               "MaxScore": 0.43,
               "CurrentScore": 0.42
           },
           "Impact": {
               "MaxImpact": 0.15,
               "TotalImpact": 0.28
           },
           "MonitorArn": "arn:aws:ce::174058868111:anomalymonitor/22038e3c-eb5d-4c0c-9a1d-04bf29056677"
       }


Related

See also

Advertising: