{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-describe-enrichment-job-response-schema.json",
  "title": "DescribeEnrichmentJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-enrichment-jobs-api-openapi.yml#/components/schemas/DescribeEnrichmentJobResponse",
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string",
      "description": "The unique identifier of the enrichment job."
    },
    "status": {
      "type": "string",
      "enum": [
        "PENDING",
        "RUNNING",
        "COMPLETED",
        "FAILED",
        "TIMED_OUT",
        "CANCELLED"
      ],
      "description": "Current status of the enrichment job. Possible values: PENDING: Job is waiting to start processing RUNNING: Job is actively processing video data COMPLETED: Job finished successfully; embeddings available in IoT SiteWise FAILED: Job encountered an error; see failureMessage for details TIMED_OUT: Job exceeded maximum processing time limit CANCELLED: Job was cancelled by user request"
    },
    "workspaceName": {
      "type": "string",
      "description": "The name of the IoT SiteWise workspace containing the job."
    },
    "jobType": {
      "type": "string",
      "enum": [
        "EVENT_DETECTION"
      ],
      "description": "The type of enrichment job, derived from the job configuration. Currently EVENT_DETECTION is the only supported type."
    },
    "jobConfiguration": {
      "$ref": "#/$defs/EnrichmentJobConfiguration"
    },
    "createdAt": {
      "type": "string",
      "description": "Timestamp when the enrichment job was created in ISO 8601 format."
    },
    "updatedAt": {
      "type": "string",
      "description": "Timestamp when the job status was last updated in ISO 8601 format. Useful for tracking recent activity."
    },
    "completedAt": {
      "type": "string",
      "description": "Timestamp when the job completed successfully in ISO 8601 format. Only present if status is COMPLETED."
    },
    "cancelledAt": {
      "type": "string",
      "description": "Timestamp when the job was cancelled in ISO 8601 format. Only present if status is CANCELLED."
    },
    "failureMessage": {
      "type": "string",
      "description": "Human-readable error message explaining why the job failed. Only present if status is FAILED. Use this information to diagnose configuration issues, permission problems, or data processing errors."
    }
  },
  "required": [
    "jobId",
    "status",
    "workspaceName",
    "jobType",
    "jobConfiguration",
    "createdAt"
  ],
  "$defs": {
    "EnrichmentJobConfiguration": {
      "type": "object",
      "properties": {
        "eventDetection": {
          "$ref": "#/$defs/EventDetection"
        }
      },
      "description": "Exactly one member is set."
    },
    "EnrichmentTrimSettings": {
      "type": "object",
      "properties": {
        "startTime": {
          "$ref": "#/$defs/TimeInNanos"
        },
        "endTime": {
          "$ref": "#/$defs/TimeInNanos"
        }
      },
      "required": [
        "startTime",
        "endTime"
      ]
    },
    "EventDetection": {
      "type": "object",
      "properties": {
        "datasetId": {
          "type": "string",
          "description": "The IoT SiteWise dataset ID containing the video time-series data to analyze. Query IoT SiteWise to discover available datasets in your workspace."
        },
        "timeSeriesId": {
          "type": "string",
          "description": "Unique system identifier for the video time series to analyze. Specify either timeSeriesId or propertyAlias, but not both. Use this when you have the system-generated time series identifier from IoT SiteWise."
        },
        "propertyAlias": {
          "type": "string",
          "description": "Human-readable alias for the video time series to analyze (e.g., /camera/warehouse/zone-a). Specify either propertyAlias or timeSeriesId, but not both. Use this when you have configured friendly aliases in IoT SiteWise for better readability."
        },
        "trimSettings": {
          "$ref": "#/$defs/EnrichmentTrimSettings"
        }
      },
      "required": [
        "datasetId",
        "trimSettings"
      ]
    },
    "TimeInNanos": {
      "type": "object",
      "properties": {
        "timeInSeconds": {
          "type": "integer",
          "description": "The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos."
        },
        "offsetInNanos": {
          "type": "integer",
          "description": "The nanosecond offset from timeInSeconds."
        }
      },
      "required": [
        "timeInSeconds"
      ]
    }
  }
}