{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeguru-profiler/refs/heads/main/json-schema/amazon-codeguru-profiler-anomaly-instance-schema.json",
  "title": "AnomalyInstance",
  "description": "The specific duration in which the metric is flagged as anomalous.",
  "type": "object",
  "properties": {
    "endTime": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Timestamp"
        },
        {
          "description": " The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. "
        }
      ]
    },
    "id": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": " The universally unique identifier (UUID) of an instance of an anomaly in a metric. "
        }
      ]
    },
    "startTime": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Timestamp"
        },
        {
          "description": " The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. "
        }
      ]
    },
    "userFeedback": {
      "allOf": [
        {
          "$ref": "#/components/schemas/UserFeedback"
        },
        {
          "description": "Feedback type on a specific instance of anomaly submitted by the user."
        }
      ]
    }
  },
  "required": [
    "id",
    "startTime"
  ]
}