def iter_list_monitoring_alert_history(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
monitoring_schedule_name: Optional[
"capo_sagemaker.types.monitoring_schedule_name.MonitoringScheduleName"
] = None,
monitoring_alert_name: Optional[
"capo_sagemaker.types.monitoring_alert_name.MonitoringAlertName"
] = None,
sort_by: Optional[
"capo_sagemaker.types.monitoring_alert_history_sort_key.MonitoringAlertHistorySortKey"
] = None,
sort_order: Optional["capo_sagemaker.types.sort_order.SortOrder"] = None,
next_token: Optional["capo_sagemaker.types.next_token.NextToken"] = None,
max_results: Optional["capo_sagemaker.types.max_results.MaxResults"] = None,
creation_time_before: Optional[
"capo_sagemaker.types.timestamp.Timestamp"
] = None,
creation_time_after: Optional[
"capo_sagemaker.types.timestamp.Timestamp"
] = None,
status_equals: Optional[
"capo_sagemaker.types.monitoring_alert_status.MonitoringAlertStatus"
] = None,
) -> "Iterator[capo_sagemaker.types.monitoring_alert_history_summary.MonitoringAlertHistorySummary]":
_token = next_token
while True:
_response = self.list_monitoring_alert_history(
config_overrides=config_overrides,
monitoring_schedule_name=monitoring_schedule_name,
monitoring_alert_name=monitoring_alert_name,
sort_by=sort_by,
sort_order=sort_order,
next_token=_token,
max_results=max_results,
creation_time_before=creation_time_before,
creation_time_after=creation_time_after,
status_equals=status_equals,
)
_page = _resolve_path(_response, ("monitoring_alert_history",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break