list_monitoring_alert_history
async
¶
list_monitoring_alert_history(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
monitoring_schedule_name: Optional[MonitoringScheduleName] = None,
monitoring_alert_name: Optional[MonitoringAlertName] = None,
sort_by: Optional[MonitoringAlertHistorySortKey] = None,
sort_order: Optional[SortOrder] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
creation_time_before: Optional[Timestamp] = None,
creation_time_after: Optional[Timestamp] = None,
status_equals: Optional[MonitoringAlertStatus] = None,
) -> ListMonitoringAlertHistoryResponse
Gets a list of past alerts in a model monitoring schedule.
Parameters:
-
monitoring_schedule_name(Optional[MonitoringScheduleName], default:None) –The name of a monitoring schedule.
-
monitoring_alert_name(Optional[MonitoringAlertName], default:None) –The name of a monitoring alert.
-
sort_by(Optional[MonitoringAlertHistorySortKey], default:None) –The field used to sort results. The default is
CreationTime. -
sort_order(Optional[SortOrder], default:None) –The sort order, whether
AscendingorDescending, of the alert history. The default isDescending. -
next_token(Optional[NextToken], default:None) –If the result of the previous
ListMonitoringAlertHistoryrequest was truncated, the response includes aNextToken. To retrieve the next set of alerts in the history, use the token in the next request. -
max_results(Optional[MaxResults], default:None) –The maximum number of results to display. The default is 100.
-
creation_time_before(Optional[Timestamp], default:None) –A filter that returns only alerts created on or before the specified time.
-
creation_time_after(Optional[Timestamp], default:None) –A filter that returns only alerts created on or after the specified time.
-
status_equals(Optional[MonitoringAlertStatus], default:None) –A filter that retrieves only alerts with a specific status.
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 | |