> ## Documentation Index
> Fetch the complete documentation index at: https://docs.domino.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Post model monitorv2apimodel analyse drift



## OpenAPI

````yaml /api-specs/6.3/public-api.json post /model-monitor/v2/api/model/{model_id}/analyse-drift
openapi: 3.0.3
info:
  title: Domino Public API
  description: Reference for Domino's public REST API endpoints.
  version: 6.3.0
  x-catalog-key: nucleus
servers:
  - url: https://mycluster.domino.tech
    description: >-
      Replace 'mycluster.domino.tech' with your Domino cluster hostname. For
      Domino Cloud customers, that is `your-subdomain`.domino.tech (e.g.,
      acme.domino.tech). For self-hosted deployments, it is the hostname you
      reach the Domino UI at.
security: []
tags:
  - name: AIGateway
    x-displayName: AIGateway
  - name: AppInstances
    x-displayName: AppInstances
  - name: AppVersions
    x-displayName: AppVersions
  - name: Apps
    x-displayName: Apps
  - name: AsyncPredictions
    x-displayName: AsyncPredictions
  - name: AuditTrail
    x-displayName: AuditTrail
  - name: BillingTag
    x-displayName: BillingTag
  - name: BillingTagSettings
    x-displayName: BillingTagSettings
  - name: Cost
    x-displayName: Cost
  - name: CustomMetrics
    x-displayName: CustomMetrics
  - name: DataSource
    x-displayName: DataSource
  - name: DatasetRw
    x-displayName: DatasetRw
  - name: DeploymentTargets
    x-displayName: DeploymentTargets
  - name: Environments
    x-displayName: Environments
  - name: Extensions
    x-displayName: Extensions
  - name: GenAI
    x-displayName: GenAI
  - name: HPC Jobs
    x-displayName: HPC Jobs
  - name: HardwareTier
    x-displayName: HardwareTier
  - name: Jobs
    x-displayName: Jobs
  - name: ModelAPI
    x-displayName: ModelAPI
  - name: ModelAPIVersion
    x-displayName: ModelAPIVersion
  - name: ModelDeployment
    x-displayName: ModelDeployment
  - name: Organizations
    x-displayName: Organizations
  - name: PPM
    x-displayName: PPM
  - name: PersonalAccessToken
    x-displayName: PersonalAccessToken
  - name: ProjectSharedDatasets
    x-displayName: ProjectSharedDatasets
  - name: ProjectTemplates
    x-displayName: ProjectTemplates
  - name: Projects
    x-displayName: Projects
  - name: ProjectsCommits
    x-displayName: ProjectsCommits
  - name: ProjectsFiles
    x-displayName: ProjectsFiles
  - name: RegisteredModels
    x-displayName: RegisteredModels
  - name: ServiceAccounts
    x-displayName: ServiceAccounts
  - name: Users
    x-displayName: Users
  - name: Workspaces
    x-displayName: Workspaces
  - name: nucleus_other
    x-displayName: other
  - name: PersonalAccessTokenAdmin
    x-displayName: PersonalAccessTokenAdmin
  - name: Git Credentials
    x-displayName: Git Credentials
  - name: Activity
    x-displayName: Activity
  - name: Admin
    x-displayName: Admin
  - name: Notifications
    x-displayName: Notifications
  - name: Adminnotifications
    x-displayName: Adminnotifications
  - name: UserManagement
    x-displayName: UserManagement
  - name: WhiteLabel
    x-displayName: WhiteLabel
  - name: Authentication and Authorization
    x-displayName: Authentication and Authorization
  - name: Code
    x-displayName: Code
  - name: ComputeCluster
    x-displayName: ComputeCluster
  - name: Control Center
    x-displayName: Control Center
  - name: controlcenter
    x-displayName: controlcenter
  - name: DataSourceCredential
    x-displayName: DataSourceCredential
  - name: DataMount
    x-displayName: DataMount
  - name: DataPlane
    x-displayName: DataPlane
  - name: dataset
    x-displayName: dataset
  - name: Datasets
    x-displayName: Datasets
  - name: datasetrw.api
    x-displayName: datasetrw.api
  - name: DatasetObjectStore
    x-displayName: DatasetObjectStore
  - name: DevelopV1ProjectTemplates
    x-displayName: DevelopV1ProjectTemplates
  - name: DevelopV1Projects
    x-displayName: DevelopV1Projects
  - name: Execution Events
    x-displayName: Execution Events
  - name: Files
    x-displayName: Files
  - name: Frontend
    x-displayName: Frontend
  - name: Gateway
    x-displayName: Gateway
  - name: Runs
    x-displayName: Runs
  - name: Search
    x-displayName: Search
  - name: Git
    x-displayName: Git
  - name: Metadata
    x-displayName: Metadata
  - name: Gruz
    x-displayName: Gruz
  - name: Guardrails
    x-displayName: Guardrails
  - name: Hardware Tier
    x-displayName: Hardware Tier
  - name: ActionableInsights
    x-displayName: ActionableInsights
  - name: Socket
    x-displayName: Socket
  - name: Job
    x-displayName: Job
  - name: Tags
    x-displayName: Tags
  - name: JobComments
    x-displayName: JobComments
  - name: LogsWithProblemSuggestion
    x-displayName: LogsWithProblemSuggestion
  - name: JobResults
    x-displayName: JobResults
  - name: Layout
    x-displayName: Layout
  - name: Metrics
    x-displayName: Metrics
  - name: MLFlow
    x-displayName: MLFlow
  - name: ModelManager
    x-displayName: ModelManager
  - name: Model Products
    x-displayName: Model Products
  - name: Project Goals
    x-displayName: Project Goals
  - name: ProjectManagement
    x-displayName: ProjectManagement
  - name: Templates
    x-displayName: Templates
  - name: Project
    x-displayName: Project
  - name: Launchers
    x-displayName: Launchers
  - name: Scheduled Jobs
    x-displayName: Scheduled Jobs
  - name: Quota
    x-displayName: Quota
  - name: RemoteFileSystem
    x-displayName: RemoteFileSystem
  - name: Scheduled Runs
    x-displayName: Scheduled Runs
  - name: Workspace
    x-displayName: Workspace
  - name: Logs
    x-displayName: Logs
  - name: WorkspaceComments
    x-displayName: WorkspaceComments
  - name: WorkspaceResults
    x-displayName: WorkspaceResults
  - name: Resource
    description: The Data Plane Resource API
    x-displayName: Resource
  - name: authz
    x-displayName: authz
  - name: volumes
    x-displayName: volumes
  - name: data transfers
    x-displayName: data transfers
  - name: downloads
    x-displayName: downloads
  - name: filesystems
    x-displayName: filesystems
  - name: snapshots
    x-displayName: snapshots
  - name: tasks
    x-displayName: tasks
  - description: Manage taxonomy namespaces.
    name: Tagging - Namespaces
    x-displayName: Tagging - Namespaces
  - description: Manage tags within namespaces.
    name: Tagging - Tags
    x-displayName: Tagging - Tags
  - description: Assign, remove, and list tag assignments on entities.
    name: Tagging - Entity Tags
    x-displayName: Tagging - Entity Tags
  - description: Look up entities by tag.
    name: Tagging - Entities
    x-displayName: Tagging - Entities
  - description: Fetch the full namespace + tag hierarchy.
    name: Tagging - Taxonomy Tree
    x-displayName: Tagging - Taxonomy Tree
  - description: Validate and import taxonomy data from a file.
    name: Tagging - Import
    x-displayName: Tagging - Import
  - description: Export the current taxonomy to a file.
    name: Tagging - Export
    x-displayName: Tagging - Export
  - description: Internal-only endpoints for service-account callers.
    name: Tagging - Internal
    x-displayName: Tagging - Internal
  - description: Manage property definitions and their groups.
    name: Properties - Definitions
    x-displayName: Properties - Definitions
  - description: Read and update an entity's property values.
    name: Properties - Values
    x-displayName: Properties - Values
  - description: Internal-only endpoints for service-account callers (properties).
    name: Properties - Internal
    x-displayName: Properties - Internal
  - name: config
    x-displayName: config
  - name: Workloads
    description: Everything related to deploying and managingDomino Workloads
    x-displayName: Workloads
  - name: Executor
    description: Executor-related commands
    x-displayName: Executor
  - name: HPC
    description: HPC workload management
    x-displayName: HPC
  - name: Endpoints
    x-displayName: Endpoints
  - name: mlflow-proxy_other
    x-displayName: other
  - name: attachments
    x-displayName: attachments
  - name: bundle-stages
    x-displayName: bundle-stages
  - name: bundles
    x-displayName: bundles
  - name: findings
    x-displayName: findings
  - name: drafts
    x-displayName: drafts
  - name: evidence-templates
    x-displayName: evidence-templates
  - name: policies
    x-displayName: policies
  - name: policy-versions
    x-displayName: policy-versions
  - name: policy-enforcers
    x-displayName: policy-enforcers
  - name: results
    x-displayName: results
  - name: rpc
    x-displayName: rpc
  - name: approvals
    x-displayName: approvals
  - description: >-
      Create, query, bulk-update, and evaluate priority-based access control
      rules.
    name: rules
    x-displayName: rules
  - name: DatasetJob
    description: All Dataset Job related operations.
    x-displayName: DatasetJob
  - name: Model
    description: All Model related operations.
    x-displayName: Model
  - name: ModelTag
    description: Operations related to the management of model tags.
    x-displayName: ModelTag
  - name: ModelDrift
    description: All Model drift related operations.
    x-displayName: ModelDrift
  - name: ModelQuality
    description: All Model quality related operations.
    x-displayName: ModelQuality
  - name: Workbench
    description: All Workbench related operations.
    x-displayName: Workbench
  - name: DefaultSettings
    description: Operations related to drift and model quality defaults setting in DMM.
    x-displayName: DefaultSettings
  - name: UserSettings
    description: Operations related to configuring user related settings for DMM.
    x-displayName: UserSettings
  - name: Notification
    description: >-
      Operations related to configuring notification channel config and alert
      recipients for the model.
    x-displayName: Notification
  - name: Other
    description: Other miscellaneous operations.
    x-displayName: Other
  - name: Scheduler
    description: All scheduler related operations
    x-displayName: Scheduler
  - name: GlobalSettings
    x-displayName: GlobalSettings
  - name: domino-connect_other
    x-displayName: other
  - name: events
    x-displayName: events
  - name: curated-central-configs
    x-displayName: curated-central-configs
  - name: nodepools
    x-displayName: nodepools
  - name: ip-allowlist
    x-displayName: ip-allowlist
externalDocs:
  description: OpenAPI
  url: https://swagger.io/resources/open-api/
paths:
  /model-monitor/v2/api/model/{model_id}/analyse-drift:
    summary: >
      Returns drift analysis for the model based on the user's config (or
      model's scheduler config). The endpoint is behind the old backend's auth
      mechanism.
    parameters:
      - in: path
        name: model_id
        schema:
          type: string
        required: true
        description: Identifier for the model to be updated.
    post:
      tags:
        - ModelDrift
      operationId: analyzeDrift
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dmm-plier_driftAnalyzeRequest'
      responses:
        '200':
          description: The drift analyze query was done successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dmm-plier_driftAnalyzeResponse'
        '204':
          description: Empty response.
        '400':
          description: Bad request input data.
        '403':
          description: Forbidden. The endpoint enforces permissions.
        '500':
          description: Internal server error, check server logs.
      security:
        - dmm-plier_DominoApiKeyAuth: []
        - dmm-plier_DmmApiKeyAuth: []
        - dmm-plier_cookieAuth: []
        - dmm-plier_BearerAuth: []
components:
  schemas:
    dmm-plier_driftAnalyzeRequest:
      type: object
      properties:
        modelId:
          type: string
        startDate:
          nullable: true
          type: number
        endDate:
          nullable: true
          type: number
        searchQuery:
          type: string
        config:
          type: array
          items:
            $ref: '#/components/schemas/dmm-plier_featureQuery'
        pagination:
          $ref: '#/components/schemas/dmm-plier_pagination'
    dmm-plier_driftAnalyzeResponse:
      type: object
      required:
        - calculatedOn
        - start
        - end
        - records
        - features
        - totalCount
        - pagination
      properties:
        totalCount:
          type: number
        calculatedOn:
          title: Query Time
          description: Timestamp of time when the query was performed.
          type: number
        start:
          title: Start Time Period
          description: Start time for the data used for the query.
          type: number
        end:
          title: End Time Period
          description: End time for the data used for the query.
          type: number
        records:
          title: Record Count
          description: Number of records (rows) used for the query.
          type: object
          required:
            - training
            - prediction
          properties:
            training:
              title: Training Records
              description: Number of records of training data used for the query.
              type: number
            prediction:
              title: Prediction Records
              description: Number of records of prediction data used for the query.
              type: number
        features:
          title: Feature Drifts
          description: Drift calculations for selected columns for the query.
          type: array
          items:
            $ref: '#/components/schemas/dmm-plier_driftCalculations'
        pagination:
          $ref: '#/components/schemas/dmm-plier_pagination'
    dmm-plier_featureQuery:
      title: Feature Query
      description: Query config for a feature in a model
      type: object
      required:
        - id
        - name
        - type
        - value
        - alertable
        - algorithm
        - condition
      properties:
        id:
          title: Feature Identifier
          description: Identifier of the feature in a model
          type: string
        name:
          title: Feature Name
          description: Name for the model feature
          type: string
        type:
          title: Feature Type
          description: Type of the feature - feature, prediction, row identifier, timestamp
          type: string
        value:
          title: Feature Value Type
          description: Type of the feature value - categorical or numerical
          type: string
        alertable:
          title: Alertable
          description: Whether this feature is alertable for not
          type: boolean
        algorithm:
          title: Algorithm
          description: Algorithm function used for the check query
          type: string
        condition:
          $ref: '#/components/schemas/dmm-plier_alertCondition'
    dmm-plier_pagination:
      type: object
      required:
        - pageSize
        - pageNumber
        - sortOrder
        - sortOn
      properties:
        pageSize:
          type: integer
        pageNumber:
          type: integer
        sortOrder:
          type: integer
        sortOn:
          type: string
          enum:
            - column_name
            - divergence
            - model_column_id
            - feature_importance
            - created_on
            - created_at
            - updated_at
    dmm-plier_driftCalculations:
      title: Drift Calculation
      description: Drift calculations for a column for the given time query.
      type: object
      required:
        - id
        - name
        - alertable
        - driftTrends
        - condition
        - algorithm
        - columnType
        - valueType
      properties:
        id:
          title: Identifier
          description: Feature's unique identifier
          type: string
        name:
          title: Column Name
          description: Column's name used during model registration.
          type: string
        importance:
          title: Feature Importance
          description: Custom feature importance value used during the model registration.
          type: number
          nullable: true
        drift:
          title: Feature Drift
          description: Feature's calculated drift for the requested query.
          type: number
          nullable: true
        pValue:
          title: Feature p-Value
          description: Feature's calculated p-value for the requested query.
          type: number
          nullable: true
        drifted:
          title: Feature Drifted
          description: >-
            Boolean to suggest whether the feature has drifted for the input
            query.
          type: boolean
          nullable: true
        alertable:
          title: Alertable
          description: >-
            Boolean to suggest whether this feature is enabled for scheduled
            alerts.
          type: boolean
        columnType:
          title: Column Type
          description: Column type for column
          type: string
          enum:
            - prediction
            - feature
        valueType:
          title: Feature Type
          description: Algorithm function used for the check query
          type: string
          enum:
            - numerical
            - categorical
        algorithm:
          title: Algorithm
          description: Algorithm function used for the check query
          type: string
        driftTrends:
          title: Drift Trends
          description: Drift values for time periods representing the drift trend.
          type: array
          items:
            type: array
            items:
              type: number
        error:
          title: Calculation Error
          description: Error occurred during computing for a feature
          type: string
          nullable: true
        training:
          $ref: '#/components/schemas/dmm-plier_distribution'
        prediction:
          $ref: '#/components/schemas/dmm-plier_distribution'
        condition:
          $ref: '#/components/schemas/dmm-plier_alertCondition'
    dmm-plier_alertCondition:
      title: Alert Condition
      description: Condition at which alert is triggered
      type: object
      required:
        - operator
        - lower
        - upper
      properties:
        operator:
          title: Math Operator
          description: The math operator for the condition, like < or <=.
          type: string
        lower:
          title: Lower Bound
          description: The lower bound for the condition
          type: number
        upper:
          title: Upper Bound
          description: The upper bound for the condition
          type: number
    dmm-plier_distribution:
      title: Distribution
      nullable: true
      description: Distribution of data for a feature over a time period
      type: object
      required:
        - counts
      properties:
        bins:
          description: >-
            The "bin" for a statistical distribution. May be numerical or
            categorical.
          type: array
          items:
            type: string
          default: []
        counts:
          description: An array of counts representing the bin distribution in the data.
          type: array
          items:
            type: integer
        normalizedValues:
          description: >-
            Normalized form, or proportional representation, of "counts" in the
            data
          type: array
          items:
            type: number
          default: []
  securitySchemes:
    dmm-plier_DominoApiKeyAuth:
      type: apiKey
      in: header
      name: X-Domino-Api-Key
    dmm-plier_DmmApiKeyAuth:
      type: apiKey
      in: header
      name: X-DMM-API-KEY
    dmm-plier_cookieAuth:
      type: apiKey
      in: cookie
      name: PLAY_SESSION
    dmm-plier_BearerAuth:
      type: http
      scheme: bearer

````

## Related topics

- [Post model monitorv2apimodel save scheduler query](/6.3/api-reference/modeldrift/post-model-monitorv2apimodel-save-scheduler-query.md)
- [Get model monitorv2apimodel drift trend](/6.3/api-reference/modeldrift/get-model-monitorv2apimodel-drift-trend.md)
- [Get model monitorv2apimodel drift scheduler query](/6.3/api-reference/modeldrift/get-model-monitorv2apimodel-drift-scheduler-query.md)
- [Get model monitorv2apimodel drift user query](/6.3/api-reference/modeldrift/get-model-monitorv2apimodel-drift-user-query.md)
