Returns the Model Monitoring alerts.
Endpoint
post https:Where {service-endpoint}
is one of the supported service endpoints.
Path parameters
modelMonitor
string
Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{modelMonitor}
Request body
The request body contains data with the following structure:
modelMonitoringJob
string
If non-empty, returns the alerts of this model monitoring job.
If non-empty, returns the alerts in this time interval.
statsName
string
If non-empty, returns the alerts of this statsName.
objectiveType
string
If non-empty, returns the alerts of this objective type. Supported monitoring objectives: raw-feature-drift
prediction-output-drift
feature-attribution
pageSize
integer
The standard list page size.
pageToken
string
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.
nextPageToken
string
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.
statsName
string
The stats name.
objectiveType
string
One of the supported monitoring objectives: raw-feature-drift
prediction-output-drift
feature-attribution
Alert creation time.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z"
and "2014-10-02T15:01:23.045123456Z"
.
Anomaly details.
JSON representation |
---|
{
"statsName": string,
"objectiveType": string,
"alertTime": string,
"anomaly": {
object ( |
ModelMonitoringAnomaly
Represents a single model monitoring anomaly.
modelMonitoringJob
string
Model monitoring job resource name.
algorithm
string
algorithm used to calculated the metrics, eg: jensen_shannon_divergence, l_infinity.
Union field anomaly
.
anomaly
can be only one of the following:
Tabular anomaly.
JSON representation |
---|
{ "modelMonitoringJob": string, "algorithm": string, // Union field |
TabularAnomaly
Tabular anomaly details.
anomalyUri
string
Additional anomaly information. e.g. Google Cloud Storage uri.
summary
string
Overview of this anomaly.
Anomaly body.
The time the anomaly was triggered.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z"
and "2014-10-02T15:01:23.045123456Z"
.
The alert condition associated with this anomaly.
JSON representation |
---|
{
"anomalyUri": string,
"summary": string,
"anomaly": value,
"triggerTime": string,
"condition": {
object ( |