{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/informatica/json-schema/informatica-profile-rm-schema.json",
  "title": "ProfileRM",
  "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/ProfileRM",
  "required": [
    "connectionId",
    "frsProjectId",
    "name"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "System-generated field that specifies the unique identifier of the Data Profiling asset.",
      "readOnly": true
    },
    "profileKey": {
      "type": "integer",
      "description": "System-generated field that specifies the profile key.",
      "format": "int32",
      "readOnly": true
    },
    "version": {
      "type": "integer",
      "description": "System-generated field.",
      "format": "int32",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Name of the Data Profiling asset."
    },
    "orgId": {
      "type": "string",
      "description": "System-generated field that specifies the organization ID of the asset.",
      "readOnly": true
    },
    "description": {
      "type": "string"
    },
    "frsId": {
      "type": "string",
      "description": "System-generated field that specifies the unique identifier of the location in which the profile task is stored.",
      "readOnly": true
    },
    "frsProjectId": {
      "type": "string",
      "description": "Specifies the ID of the project where the profile task is stored."
    },
    "frsFolderId": {
      "type": "string",
      "description": "Specifies the ID of the folder where the profile task is stored."
    },
    "connectionId": {
      "type": "string",
      "description": "Specifies the connection ID to connect to the data source."
    },
    "createdBy": {
      "type": "string",
      "description": "System-generated field that specifies the ID of the user who created the profile.",
      "readOnly": true
    },
    "createdByName": {
      "type": "string",
      "description": "System-generated field that specifies the name of the user who created the profile.",
      "readOnly": true
    },
    "createTime": {
      "type": "integer",
      "description": "System-generated field that specifies the time at which profile was created.",
      "format": "int64",
      "readOnly": true
    },
    "updatedBy": {
      "type": "string",
      "description": "System-generated field that specifies the ID of the user who recently updated the profile.",
      "readOnly": true
    },
    "updatedByName": {
      "type": "string",
      "description": "System-generated field that specifies the name of the user who recently updated the profile.",
      "readOnly": true
    },
    "updateTime": {
      "type": "integer",
      "description": "System-generated field that specifies the time at which the Profile was last updated.",
      "format": "int64",
      "readOnly": true
    },
    "lastRunKey": {
      "type": "integer",
      "description": "System-generated field that specifies the last run identifier.",
      "format": "int32",
      "readOnly": true
    },
    "isFilterEnabled": {
      "type": "boolean",
      "description": "Indicates whether filter is enabled."
    },
    "runtimeOptions": {
      "$ref": "#/$defs/RuntimeOptionsRM"
    },
    "source": {
      "$ref": "#/$defs/ProfileableSourceRM"
    },
    "profileableFields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProfileableFieldRM"
      }
    },
    "filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FilterRM"
      }
    },
    "samplingOptions": {
      "$ref": "#/$defs/SamplingOptionsRM"
    },
    "drillDownType": {
      "type": "string",
      "description": "Indicates whether drilldown is enabled for the profile.",
      "enum": [
        "OFF",
        "ON"
      ]
    }
  },
  "$defs": {
    "FilterRM": {
      "required": [
        "filterType",
        "isEnabled",
        "name"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated field.",
          "readOnly": true
        },
        "isEnabled": {
          "type": "boolean",
          "description": "Indicates whether filter is enabled. You can choose only one filter for a profile run."
        },
        "name": {
          "type": "string",
          "description": "The name of the filter."
        },
        "description": {
          "type": "string",
          "description": "The description for the filter."
        },
        "filterType": {
          "type": "string",
          "description": "Indicates the type of filter.",
          "enum": [
            "SIMPLE",
            "ADVANCED",
            "SQL"
          ]
        }
      },
      "description": "You can add one or more filters to a profile. You can choose only one filter for a profile run."
    },
    "ProfileAdvancedOptionsRM": {
      "type": "object",
      "properties": {
        "maxTopN": {
          "type": "integer",
          "description": "The maximum number of column values to store in the profile results. Default is 500. For example, if you set the value to 100, only the top 100 values appear in the profile results.",
          "format": "int32"
        },
        "maxPatterns": {
          "type": "integer",
          "description": "The maximum number of patterns per column to be inferred. Default is 10. For example, if you set the value to 3, the top 3 patterns appear with their statistics.",
          "format": "int32"
        },
        "maxPatternThresholdPercent": {
          "type": "number",
          "description": "Maximum percentage of values used to derive a pattern in the profile results. Default is 5. For example, when you set the value to 4, the patterns that are 4% and higher appear individually with their statistics.",
          "format": "float"
        },
        "inferDateTime": {
          "type": "boolean",
          "description": "Infers the date and time for a column of date or time data type. Default is Yes."
        },
        "detectOutliers": {
          "type": "boolean",
          "description": "Detects pattern and value frequency outliers in the source object. Default is Yes."
        },
        "maxColumnsPerMapping": {
          "type": "integer",
          "description": "The maximum number of columns to be profiled for each mapping. Default is 50.",
          "format": "int32"
        },
        "minNoOfRowsForSplitMapping": {
          "type": "integer",
          "description": "The minimum number of rows to process each column in a seperate mapping. Default is 100,000,000.",
          "format": "int32"
        },
        "defaultBufferBlockSize": {
          "type": "string",
          "description": "Size of buffer blocks used to move data blocks from sources to targets. Default is Auto. If you enter a numeric value, the default unit of measure is bytes. Append KB, MB, or GB to the value to specify a different unit of measure. For example, 512MB."
        },
        "dtmBufferSize": {
          "type": "string",
          "description": "Amount of memory allocated to the task from the DTM process. Default is Auto. "
        },
        "lineSequentialBufferLength": {
          "type": "integer",
          "description": "Number of bytes that the task reads for each row in a flat file source. Default is 1024.",
          "format": "int32"
        },
        "stopOnErrors": {
          "type": "integer",
          "description": "Indicates how many non-fatal errors the task can encounter before it stops. Default is 100.",
          "format": "int32"
        }
      },
      "description": "Advanced  runtime configuration of data profiling asset to detect outliers, infer the date and time, and infer other profile-related parameters."
    },
    "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"
          ]
        }
      }
    },
    "ProfileableSourceRM": {
      "required": [
        "sourceType"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated field that identifies the source object.",
          "readOnly": true
        },
        "sourceType": {
          "type": "string",
          "description": "Type of source.",
          "enum": [
            "DATASOURCE"
          ]
        }
      },
      "description": "The source object to run the profile on. You can specify a source object after you create a connection."
    },
    "RuntimeOptionsRM": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated field.",
          "readOnly": true
        },
        "scheduleId": {
          "type": "string",
          "description": "The schedule to run the data profiling task. When you choose to run a profile on a schedule, the profile runs after the configured schedule offset time. For example, if you configure a schedule to run every hour from 8:00 a.m. to 12:00 p.m., and the schedule offset for your organization is 15 seconds. Your schedule runs at 8:00:15, 9:00:15, 10:00:15, 11:00:15, and 12:00:15."
        },
        "runtimeEnvironmentId": {
          "type": "string",
          "description": "The runtime environment to run the task. If you do not specify a runtime environment, the profile runs on the default runtime environment configured for the connection."
        },
        "defaultEmailNotification": {
          "type": "boolean",
          "description": "Indicates whether Data Profiling sends the email notification to the default email address of the logged-in user."
        },
        "failureEmailIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warningEmailIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "successEmailIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "profileAdvProps": {
          "$ref": "#/$defs/ProfileAdvancedOptionsRM"
        }
      },
      "description": "Runtime properties of the Data Profiling asset."
    },
    "SamplingOptionsRM": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated field.",
          "readOnly": true
        },
        "rows": {
          "type": "integer",
          "description": "Specifies the number of rows to sample. This field is required when the selected sampling type is FIRST_N_ROWS or RANDOM_N_ROWS.",
          "format": "int32"
        },
        "samplingType": {
          "type": "string",
          "description": "Sampling options to run the profile.",
          "enum": [
            "ALL_ROWS",
            "FIRST_N_ROWS",
            "RANDOM_N_ROWS",
            "RANDOM_AUTO"
          ]
        }
      },
      "description": "Sampling options to select the rows to profile."
    }
  }
}