---
title: "POST /v1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies"
method: POST
path: "/v1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies"
tags: ["projects"]
---

# POST /v1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies

`POST /v1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies`

Searches Model Monitoring Statistics generated within a given time window.

## Path parameters

- `modelDeploymentMonitoringJob` string, required

## Request body

- GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest — Request message for JobService.SearchModelDeploymentMonitoringStatsAnomalies.
  - `featureDisplayName` string — The feature display name. If specified, only return the stats belonging to this feature. Format: ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name, example: "user_destination".
  - `objectives` GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective[] — Required. Objectives of the stats to retrieve.
    - `type` 'MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED' | 'RAW_FEATURE_SKEW' | 'RAW_FEATURE_DRIFT' | 'FEATURE_ATTRIBUTION_SKEW' | 'FEATURE_ATTRIBUTION_DRIFT'
    - `topFeatureCount` integer — If set, all attribution scores between SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time and SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time are fetched, and page token doesn't take effect in this case. Only used to retrieve attribution score for the top Features which has the highest attribution score in the latest monitoring run.
  - `pageSize` integer — The standard list page size.
  - `startTime` string, google-datetime — The earliest timestamp of stats being generated. If not set, indicates fetching stats till the earliest possible one.
  - `pageToken` string — A page token received from a previous JobService.SearchModelDeploymentMonitoringStatsAnomalies call.
  - `deployedModelId` string — Required. The DeployedModel ID of the [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
  - `endTime` string, google-datetime — The latest timestamp of stats being generated. If not set, indicates feching stats till the latest possible one.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/aiplatform.md) · [All operations](https://skmtc.net/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/aiplatform/versions/b608d71b91f0/schema)
