list_monitoring_alert_history
¶
list_monitoring_alert_history(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 | |