Full name: projects.locations.modelMonitors.searchModelMonitoringAlerts
Returns the Model Monitoring alerts.
Endpoint
posthttps://{service-endpoint}/v1beta1/{modelMonitor}:searchModelMonitoringAlerts
Where {service-endpoint} is one of the supported service endpoints.
Path parameters
modelMonitorstring
Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{modelMonitor}
Request body
The request body contains data with the following structure:
modelMonitoringJobstring
If non-empty, returns the alerts of this model monitoring job.
If non-empty, returns the alerts in this time interval.
statsNamestring
If non-empty, returns the alerts of this statsName.
objectiveTypestring
If non-empty, returns the alerts of this objective type. Supported monitoring objectives: raw-feature-drift prediction-output-drift feature-attribution
pageSizeinteger
The standard list page size.
pageTokenstring
A page token received from a previous ModelMonitoringService.SearchModelMonitoringAlerts call.
Response body
Response message for ModelMonitoringService.SearchModelMonitoringAlerts.
If successful, the response body contains data with the following structure:
Alerts retrieved for the requested objectives. Sorted by alert time descendingly.
The total number of alerts retrieved by the requested objectives.
nextPageTokenstring
The page token that can be used by the next ModelMonitoringService.SearchModelMonitoringAlerts call.
| JSON representation |
|---|
{
"modelMonitoringAlerts": [
{
object ( |
ModelMonitoringAlert
Represents a single monitoring alert. This is currently used in the modelMonitors.searchModelMonitoringAlerts api, thus the alert wrapped in this message belongs to the resource asked in the request.
statsNamestring
The stats name.
objectiveTypestring
One of the supported monitoring objectives: raw-feature-drift prediction-output-drift feature-attribution
Alert creation time.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
Anomaly details.
| JSON representation |
|---|
{
"statsName": string,
"objectiveType": string,
"alertTime": string,
"anomaly": {
object ( |
ModelMonitoringAnomaly
Represents a single model monitoring anomaly.
modelMonitoringJobstring
Model monitoring job resource name.
algorithmstring
algorithm used to calculated the metrics, eg: jensen_shannon_divergence, l_infinity.
anomalyUnion type
anomaly can be only one of the following:Tabular anomaly.
| JSON representation |
|---|
{
"modelMonitoringJob": string,
"algorithm": string,
// anomaly
"tabularAnomaly": {
object ( |
TabularAnomaly
Tabular anomaly details.
anomalyUristring
Additional anomaly information. e.g. Google Cloud Storage uri.
summarystring
Overview of this anomaly.
Anomaly body.
The time the anomaly was triggered.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
The alert condition associated with this anomaly.
| JSON representation |
|---|
{
"anomalyUri": string,
"summary": string,
"anomaly": value,
"triggerTime": string,
"condition": {
object ( |