{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/informatica/json-schema/informatica-job-rm-schema.json",
  "title": "JobRM",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/informatica-data-profiling-api-openapi.yml#/components/schemas/JobRM",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Indicates the Data Profiling job ID."
    },
    "name": {
      "type": "string",
      "description": "Indicates the name of the Data Profiling job."
    },
    "type": {
      "type": "string",
      "enum": [
        "PROFILING_PC",
        "OUTLIER",
        "QUERY",
        "PROFILE_DELETE"
      ]
    },
    "orgId": {
      "type": "string"
    },
    "createTime": {
      "type": "integer",
      "description": "Indicates the time at which the Data Profiling job was created.",
      "format": "int64"
    },
    "startTime": {
      "type": "integer",
      "description": "Indicates the start time of the Data Profiling job.",
      "format": "int64"
    },
    "endTime": {
      "type": "integer",
      "description": "Indicates the end time of the Data Profiling job.",
      "format": "int64"
    },
    "status": {
      "type": "string",
      "description": "Indicates the status of the Data Profiling job.",
      "enum": [
        "INITIALIZED",
        "QUEUED",
        "RUNNING",
        "STOPPING",
        "COMPLETED",
        "FAILED",
        "WARNING"
      ]
    },
    "createdBy": {
      "type": "string",
      "description": "Indicates the name of the user who created the Data Profiling job."
    },
    "errorMessage": {
      "type": "string",
      "description": "Indicates the error message if the Data Profiling job fails."
    },
    "jobSteps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JobStepRM"
      }
    }
  },
  "$defs": {
    "JobStepRM": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Indicates the subtask ID."
        },
        "name": {
          "type": "string",
          "description": "Indicates the name of the subtask."
        },
        "jobStepType": {
          "type": "string",
          "description": "Indicates the subtask type.",
          "enum": [
            "ROWCOUNT_FETCH",
            "GENERATE_PROFILING_WORKFLOW",
            "PROFILING_MAPPING",
            "STAGING_TO_STORE",
            "DRILLDOWN_MAPPING",
            "DETECTING_OUTLIER",
            "DELETING_PROFILE"
          ]
        },
        "orgId": {
          "type": "string",
          "description": "Indicates the organization ID."
        },
        "sequence": {
          "type": "integer",
          "description": "Indicates the sequence of the subtask.",
          "format": "int32"
        },
        "createTime": {
          "type": "integer",
          "description": "Indicates the time the subtask was created.",
          "format": "int64"
        },
        "startTime": {
          "type": "integer",
          "description": "Indicates the start time of the subtask.",
          "format": "int64"
        },
        "endTime": {
          "type": "integer",
          "description": "Indicates the end time of the subtask.",
          "format": "int64"
        },
        "errorMessage": {
          "type": "string",
          "description": "Indicates the error message if the subtask fails."
        },
        "status": {
          "type": "string",
          "description": "Indicates the status of the subtask.",
          "enum": [
            "INITIALIZED",
            "QUEUED",
            "RUNNING",
            "STOPPING",
            "COMPLETED",
            "FAILED",
            "WARNING"
          ]
        },
        "dtmStats": {
          "type": "string",
          "description": "Indicates the status of the DTM process."
        }
      }
    }
  }
}