{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/informatica/json-schema/informatica-run-detail-rm-schema.json",
  "title": "RunDetailRM",
  "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/RunDetailRM",
  "type": "object",
  "properties": {
    "profileId": {
      "type": "string",
      "description": "The profile ID that uniquely identifies the profile."
    },
    "jobId": {
      "type": "string",
      "description": "Identifies the Data Profiling job. When you run a data profiling task, Data Profiling creates a job."
    },
    "id": {
      "type": "string",
      "description": "Identifies the profile run. A profile can have multiple runs. A user can use this ID to get the results specific to a given run."
    },
    "runKey": {
      "type": "integer",
      "description": "Indicates the profile run key. For example, if the profile run key is 1 and you run the profile again, the run key is now 2.",
      "format": "int32"
    },
    "samplingType": {
      "type": "string",
      "description": "Indicates the sampling options to run the profile.",
      "enum": [
        "ALL_ROWS",
        "FIRST_N_ROWS",
        "RANDOM_N_ROWS",
        "RANDOM_AUTO"
      ]
    },
    "samplingRows": {
      "type": "integer",
      "description": "Indicates the sampling options to run the profile.",
      "format": "int32"
    },
    "status": {
      "type": "string",
      "description": "Indicates the status of the Data Profiling job."
    },
    "runDetailStatus": {
      "type": "string",
      "description": "Indicates the status of the status of the profile run."
    },
    "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"
    },
    "executionTime": {
      "type": "integer",
      "description": "Indicates the execution time of the Data Profiling job.",
      "format": "int64"
    },
    "createdTime": {
      "type": "integer",
      "description": "Indicates the time of creation of the Data Profiling job.",
      "format": "int64"
    },
    "createdBy": {
      "type": "string",
      "description": "Indicates the user ID using which the Data Profiling job was created."
    },
    "createdByName": {
      "type": "string",
      "description": "Indicates the name of the user who created the Data Profiling job."
    },
    "isFilterEnabled": {
      "type": "boolean",
      "description": "Indicates whether filter is enabled for the Data Profiling job."
    },
    "filterName": {
      "type": "string",
      "description": "Indicates the name of the filter."
    },
    "rowsProcessed": {
      "type": "integer",
      "description": "Indicates the number of rows processed during the profile run.",
      "format": "int32"
    },
    "numberOfDSColumns": {
      "type": "integer",
      "format": "int32"
    },
    "numberOfRules": {
      "type": "integer",
      "format": "int32"
    },
    "numberOfMappletColumns": {
      "type": "integer",
      "format": "int32"
    },
    "numberOfColumns": {
      "type": "integer",
      "format": "int32"
    },
    "isOutlierDetected": {
      "type": "boolean"
    },
    "runCostInMB": {
      "type": "number",
      "format": "double"
    },
    "profiledFields": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/ProfileableDataSourceFieldRM"
          },
          {
            "$ref": "#/$defs/ProfileableMappletFieldRM"
          }
        ]
      }
    }
  },
  "readOnly": true,
  "$defs": {
    "MappletInputFieldMapRM": {
      "required": [
        "dataSourceFieldName",
        "inFieldName"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated field.",
          "readOnly": true
        },
        "dataSourceFieldName": {
          "type": "string",
          "description": "The name of the datasource column on which the rule is applied."
        },
        "inFieldName": {
          "type": "string",
          "description": "The name of the input port which is connected to the datasource column."
        },
        "isDeleted": {
          "type": "boolean",
          "description": "Indicates whether the rule is removed from the source.",
          "default": false
        }
      },
      "description": "The rule port and datasource field mappings."
    },
    "MappletOutputFieldMapRM": {
      "required": [
        "outFieldName"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated field.",
          "readOnly": true
        },
        "columnKey": {
          "type": "integer",
          "description": "System-generated field.",
          "format": "int32",
          "readOnly": true
        },
        "datatype": {
          "type": "string"
        },
        "outFieldName": {
          "type": "string",
          "description": "The name of the output port to be profiled."
        },
        "isDeleted": {
          "type": "boolean",
          "description": "Indicates whether the rule association is removed from the profile.",
          "default": false
        }
      },
      "description": "The rule output port and mapping output field mappings."
    },
    "ProfileableDataSourceFieldRM": {
      "required": [
        "fieldName",
        "fieldType",
        "sourceName"
      ],
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/ProfileableFieldRM"
        },
        {
          "type": "object",
          "properties": {
            "columnKey": {
              "type": "integer",
              "description": "System-generated field.",
              "format": "int32",
              "readOnly": true
            },
            "sourceName": {
              "type": "string",
              "description": "Name of the source"
            },
            "fieldName": {
              "type": "string",
              "description": "Name of the field"
            }
          }
        }
      ]
    },
    "ProfileableFieldRM": {
      "required": [
        "fieldType"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated field.",
          "readOnly": true
        },
        "isDeleted": {
          "type": "boolean",
          "description": "Indicates that the columns are no longer profileable.",
          "default": false
        },
        "fieldType": {
          "type": "string",
          "description": "The source or mapplet output.",
          "enum": [
            "DATASOURCEFIELD",
            "MAPPLETFIELD"
          ]
        }
      }
    },
    "ProfileableMappletFieldRM": {
      "required": [
        "fieldType",
        "frsId"
      ],
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/ProfileableFieldRM"
        },
        {
          "type": "object",
          "properties": {
            "frsId": {
              "type": "string",
              "description": "The location ID of the rule or mapplet."
            },
            "assignmentIdentifier": {
              "type": "string",
              "description": "System-generated field.",
              "readOnly": true
            },
            "inputFieldMappings": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/MappletInputFieldMapRM"
              }
            },
            "outputFieldMappings": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/MappletOutputFieldMapRM"
              }
            },
            "ruleType": {
              "type": "string",
              "enum": [
                "SAAS_CUSTOM_FUNC",
                "UPLOADED_MAPPLET",
                "DQ_RULE",
                "CLEANSE",
                "VERIFIER",
                "RULE_SPECIFICATION",
                "PARSE"
              ]
            }
          }
        }
      ]
    }
  }
}