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
26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 | |