Model Monitoring API Reference

The Model Monitoring API gives you programmatic access to the Model Monitor.

To invoke these APIs, you must pass the API token in the header. See API Token for more information.

Domino Model Monitoring can only ingest prediction data for Model APIs in the form of Domino Datasets captured using Domino’s prediction capture library. To ingest different data types, create a new model in Domino Model Monitor and use a Model Monitor Data Source.

Endpoints

DatasetJob

getDatasetJobs

POST

/v2/api/{model_id}/dataset-jobs

Description

Get the list of jobs associated with a model

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier of the modelstringpath
Body Parameter
NameDescriptionRequired
undefined

Responses
CodeMessageDatatype
200Gets the list of jobs for the model
404Dataset not found for the given identifier.
500Internal server error, check server logs.

getDatasetTimeline

GET

/v2/api/model/{model_id}/dataset-timeline

Description

Gets the dataset ingestion timeline

Parameters
NameDescriptionRequiredTypeInExample
model_idstringpath
start_datenumberquery
end_datenumberquery
Responses
CodeMessageDatatype
200Gets the dataset ingestion timeline
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

DataSource

getAllDataSources

GET

/v2/api/datasources

Description

Gets all Data sources.

Responses
CodeMessageDatatype
200Gets all the registered data sources.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
405Method not allowed.
500Internal server error, check server logs.

createDataSource

PUT

/v2/api/datasource

Description

Delete a datasource.

Body Parameter
NameDescriptionRequired
undefined

Responses
CodeMessageDatatype
200Data source added/updated successfully
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
405Method not allowed.
500Internal server error, check server logs.

deleteDataSource

DELETE

/v2/api/datasource

Description

Delete a datasource.

Parameters
NameDescriptionRequiredTypeInExample
datasource_idstringquery
Responses
CodeMessageDatatype
200The data source object that was deleted.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
405Method not allowed.
500Internal server error, check server logs.

ModelQuality

analyzeModelQuality

POST

/v2/api/model/{model_id}/analyze-model-quality

Description

Returns MQ analyze for the model based on the user's config (or model's default config).

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model to be updated.stringpath
Body Parameter
NameDescriptionRequired
undefined

Responses
CodeMessageDatatype
200The MQ analyze query was done successfully.
204Empty response.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getModelQualityUserQuery

GET

/v2/api/model/{model_id}/model-quality-user-query

Description

Returns model quality user config for the model.

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model.stringpath
Responses
CodeMessageDatatype
200The model quality user query was fetched successfully.
204The model quality user query does not exist for the user.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getModelQualityTrend

GET

/v2/api/model/{model_id}/model-quality-trend

Description

Returns model quality trend for the model for specific model quality metric.

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier of the model.stringpath
startTimestampStart time for the data used for the query.numberquery
endTimestampEnd time for the data used for the query.numberquery
metricNameMetric used for the trend.stringquery
Responses
CodeMessageDatatype
200The model quality trend was fetched successfully.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getModelQualitySchedulerQuery

GET

/v2/api/model/{model_id}/model-quality-scheduler-query

Description

Returns model quality scheduler query for the model.

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model.stringpath
Responses
CodeMessageDatatype
200The model quality scheduler query was fetched successfully.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Model Quality Scheduler Query not found.
500Internal server error, check server logs.

saveModelQualitySchedulerQuery

POST

/v2/api/model/{model_id}/model-quality-scheduler-query

Description

Returns model quality scheduler query for the model.

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model.stringpath
Body Parameter
NameDescriptionRequired
undefined

Responses
CodeMessageDatatype
200The model quality scheduler query was saved successfully.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Model Quality Scheduler Query not found.
500Internal server error, check server logs.

getModelQualityScheduledChecksTimeline

GET

/v2/api/model/{model_id}/model-quality-scheduled-checks-history

Description

Gets the model timeline data for model quality schedule history page

Parameters
NameDescriptionRequiredTypeInExample
model_idstringpath
start_datestringquery
end_datestringquery
Responses
CodeMessageDatatype
200Gets the model timeline data
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Model not found or is deleted.
500Internal server error, check server logs.

getModelQualityScheduledCheckData

GET

/v2/api/model/{scheduled_check_id}/model-quality-scheduled-check-data

Description

Gets the model scheduled check data for MQ schedule history page for the passed scheduled check id

Parameters
NameDescriptionRequiredTypeInExample
scheduled_check_idstringpath
Responses
CodeMessageDatatype
200Gets the scheduled check data
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Data for passed Scheduled Check Id not found.
500Internal server error, check server logs.

getGroundTruthTraffic

GET

/v2/api/model/{model_id}/traffic/ground-truth

Description

Gets the model's ground truth traffic for matched labels

Parameters
NameDescriptionRequiredTypeInExample
model_idstringpath
startTimestampnumberquery
endTimestampnumberquery
Responses
CodeMessageDatatype
200Gets the ground truth traffic based on number of ground truth labels that matched prediction data.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Model not found.
500Internal server error, check server logs.

Model

registerDatasetConfig

PUT

/v2/api/model/{model_id}/register-dataset/{dataset_type}

Description

Dataset registration to a model.

Parameters
NameDescriptionRequiredTypeInExample
model_idstringpath
dataset_typestringpath
prediction
ground_truth
Body Parameter
NameDescriptionRequired
undefined

Responses
CodeMessageDatatype
200Successfully registered dataset to the Model.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
405Method not allowed.
500Internal server error, check server logs.

getModelById

GET

/v2/api/model

Description

Gets a DMM model either via a unique model identifier or via a unique combination of workbench model id and workbench model version id

Parameters
NameDescriptionRequiredTypeInExample
model_idstringquery
workbench_model_version_idstringquery
Responses
CodeMessageDatatype
200Successfully fetched the Model.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Model not found.
405Method not allowed.
500Internal server error, check server logs.

registerModelThroughConfig

PUT

/v2/api/model

Description

Model Operations.

Body Parameter
NameDescriptionRequired
undefined

Responses
CodeMessageDatatype
200Successfully registered the Model.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
405Method not allowed.
500Internal server error, check server logs.

deleteModelById

DELETE

/v2/api/model

Description

Model Operations.

Parameters
NameDescriptionRequiredTypeInExample
model_idstringquery
Responses
CodeMessageDatatype
200Successfully deleted the Model.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Model not found.
405Method not allowed.
500Internal server error, check server logs.

listModels

GET

/v2/api/models

Description

Parameters
NameDescriptionRequiredTypeInExample
pageNumberintegerquery
pageSizeintegerquery
numberOfLastChecksToFetchintegerquery
searchQuerystringquery
modelTypeUndefinedquery
Responses
CodeMessageDatatype
200Successfully fetched the Model.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
405Method not allowed.
500Internal server error, check server logs.

getModelSummary

GET

/v2/api/get_model_summary

Description

Gets a DMM model summary either via a unique model identifier or via a unique combination of workbench model id and workbench model version id

Parameters
NameDescriptionRequiredTypeInExample
model_idstringquery
workbench_model_version_idstringquery
Responses
CodeMessageDatatype
200Successfully fetched the Model summary.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Model not found.
405Method not allowed.
500Internal server error, check server logs.

getModelVariablesSummary

GET

/v2/api/model/{model_id}/variables/summary

Description

Get the model's variables summary list

Parameters
NameDescriptionRequiredTypeInExample
model_idstringpath
Responses
CodeMessageDatatype
200Successfully fetched the Model.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
404Model not found.
405Method not allowed.
500Internal server error, check server logs.

Workbench

Get summary for workbench model versions

GET

/v2/api/workbench/model/version/summary

Description

Parameters
NameDescriptionRequiredTypeInExample
model_version_idsa string of comma separated workbench model version ids.stringquery
start_datenumberquery
end_datenumberquery
Responses
CodeMessageDatatype
200Model summaries were fetched successfully.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
405Method not allowed.
500Internal server error, check server logs.

Other

getPing

GET

/v2/api/ping

Description

Health check endpoint.

Responses
CodeMessageDatatype
200A no non-sense static body for full cycle web server health

getMetrics

GET

/v2/metrics

Description

Prometheus metrics endpoint.

Responses
CodeMessageDatatype
200Prometheus metrics endpoint.
400Bad request input data.
500Internal server error, check server logs.

postAnalyseDrift

POST

/v2/api/model/{model_id}/analyse-drift

Description

Returns drift analyse 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
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model to be updated.stringpath
Body Parameter
NameDescriptionRequired
undefined

Responses
CodeMessageDatatype
200The drift analyse query was done successfully.
204Empty response.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getDriftUserQuery

GET

/v2/api/model/{model_id}/drift-user-query

Description

Returns drift scheduler config for the model. The endpoint is behind the old backend's auth mechanism.

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model to be updated.stringpath
Responses
CodeMessageDatatype
200The drift scheduler query was generated successfully.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getDriftSchedulerQuery

GET

/v2/api/model/{model_id}/drift-scheduler-query

Description

Returns drift scheduler config for the model. The endpoint is behind the old backend's auth mechanism.

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model to be updated.stringpath
Responses
CodeMessageDatatype
200The drift scheduler query was generated successfully.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getDriftTrend

GET

/v2/api/model/{model_id}/{column_id}/drift-trend

Description

Returns drift trend for the model's column. The endpoint is behind the old backend's auth mechanism.

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model for the trendsstringpath
column_idIdentifier for the column.stringpath
startDateStart time for the data used for the query.numberquery
endDateEnd time for the data used for the query.numberquery
algorithmAlgorithm function used for the check querystringquery
Responses
CodeMessageDatatype
200The drift trend fetch query was done successfully.
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

postSaveSchedulerQuery

POST

/v2/api/model/{model_id}/save-scheduler-query

Description

Returns drift scheduler config for the model. The endpoint is behind the old backend's auth mechanism.

Parameters
NameDescriptionRequiredTypeInExample
model_idIdentifier for the model to be updated.stringpath
Body Parameter
NameDescriptionRequired
undefined

Responses
CodeMessageDatatype
200The drift scheduler query was generated successfully.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getDriftScheduleChecksHistory

GET

/v2/api/model/{model_id}/drift-schedule-checks-history

Description

Gets the model timeline data for drift schedule history page

Parameters
NameDescriptionRequiredTypeInExample
model_idstringpath
start_datestringquery
end_datestringquery
Responses
CodeMessageDatatype
200Gets the model timeline data
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getScheduledCheckDriftData

GET

/v2/api/model/{model_id}/{scheduler_id}/scheduled-check-drift-data

Description

Get scheduled check drift data

Parameters
NameDescriptionRequiredTypeInExample
model_idstringpath
scheduler_idstringpath
sortOrderstringquery
sortOnstringquery
pageNumberstringquery
pageSizestringquery
searchQuerystringquery
Responses
CodeMessageDatatype
200Gets the model timeline data
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.

getGetPredictionTraffic

GET

/v2/api/model/get-prediction-traffic

Description

Gets the model prediction traffic

Parameters
NameDescriptionRequiredTypeInExample
model_idsstringquery
start_datenumberquery
end_datenumberquery
Responses
CodeMessageDatatype
200Gets the model prediction traffic
400Bad request input data.
403Unauthorised. The endpoint enforces authorisation.
500Internal server error, check server logs.