{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-describe-execution-response-schema.json",
  "title": "DescribeExecutionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-executions-api-openapi.yml#/components/schemas/DescribeExecutionResponse",
  "type": "object",
  "properties": {
    "executionId": {
      "type": "string",
      "description": "The ID of the execution."
    },
    "actionType": {
      "type": "string",
      "description": "The type of action exectued."
    },
    "targetResource": {
      "$ref": "#/$defs/TargetResource"
    },
    "targetResourceVersion": {
      "type": "string",
      "description": "The version of the target resource."
    },
    "resolveTo": {
      "$ref": "#/$defs/ResolveTo"
    },
    "executionStartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time the process started."
    },
    "executionEndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time the process ended."
    },
    "executionStatus": {
      "$ref": "#/$defs/ExecutionStatus"
    },
    "executionResult": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The result of the execution."
    },
    "executionDetails": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Provides detailed information about the execution of your anomaly detection models. This includes model metrics and training timestamps for both training and inference actions. The training action (Amazon Web Services/ANOMALY_DETECTION_TRAINING), includes performance metrics that help you compare different versions of your anomaly detection models. These metrics provide insights into the model's performance during the training process. The inference action (Amazon Web Services/ANOMALY_DETECTION_INFERENCE), includes information about the results of executing your anomaly detection models. This "
    },
    "executionEntityVersion": {
      "type": "string",
      "description": "Entity version used for the execution."
    }
  },
  "required": [
    "executionId",
    "targetResource",
    "targetResourceVersion",
    "executionStartTime",
    "executionStatus"
  ],
  "$defs": {
    "ExecutionStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "RUNNING",
            "COMPLETED",
            "FAILED"
          ],
          "description": "The current state of the computation model."
        }
      },
      "required": [
        "state"
      ]
    },
    "ResolveTo": {
      "type": "object",
      "properties": {
        "assetId": {
          "type": "string",
          "description": "The ID of the asset that the resource resolves to."
        }
      },
      "required": [
        "assetId"
      ]
    },
    "TargetResource": {
      "type": "object",
      "properties": {
        "assetId": {
          "type": "string",
          "description": "The ID of the asset, in UUID format."
        },
        "computationModelId": {
          "type": "string",
          "description": "The ID of the computation model."
        }
      }
    }
  }
}