{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-billing-and-cost-management/json-schema/amazon-billing-and-cost-management-get-anomalies-request-schema.json",
  "title": "GetAnomaliesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-billing-and-cost-management-anomaly-detection-api-openapi.yml#/components/schemas/GetAnomaliesRequest",
  "type": "object",
  "properties": {
    "MonitorArn": {
      "type": "string",
      "description": "Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN)."
    },
    "DateInterval": {
      "$ref": "#/$defs/AnomalyDateInterval"
    },
    "Feedback": {
      "type": "string",
      "enum": [
        "YES",
        "NO",
        "PLANNED_ACTIVITY"
      ],
      "description": "Filters anomaly results by the feedback field on the anomaly object."
    },
    "TotalImpact": {
      "$ref": "#/$defs/TotalImpactFilter"
    },
    "NextPageToken": {
      "type": "string",
      "description": "The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The number of entries a paginated response contains."
    }
  },
  "required": [
    "DateInterval"
  ],
  "$defs": {
    "AnomalyDateInterval": {
      "type": "object",
      "properties": {
        "StartDate": {
          "type": "string",
          "description": "The first date an anomaly was observed."
        },
        "EndDate": {
          "type": "string",
          "description": "The last date an anomaly was observed."
        }
      },
      "required": [
        "StartDate"
      ]
    },
    "TotalImpactFilter": {
      "type": "object",
      "properties": {
        "NumericOperator": {
          "type": "string",
          "enum": [
            "EQUAL",
            "GREATER_THAN_OR_EQUAL",
            "LESS_THAN_OR_EQUAL",
            "GREATER_THAN",
            "LESS_THAN",
            "BETWEEN"
          ],
          "description": "The comparing value that's used in the filter."
        },
        "StartValue": {
          "type": "number",
          "description": "The lower bound dollar value that's used in the filter."
        },
        "EndValue": {
          "type": "number",
          "description": "The upper bound dollar value that's used in the filter."
        }
      },
      "required": [
        "NumericOperator",
        "StartValue"
      ]
    }
  }
}