| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SageMaker.ListMonitoringAlerts
Description
Gets the alerts for a single monitoring schedule.
This operation returns paginated results.
Synopsis
- data ListMonitoringAlerts = ListMonitoringAlerts' {}
- newListMonitoringAlerts :: Text -> ListMonitoringAlerts
- listMonitoringAlerts_maxResults :: Lens' ListMonitoringAlerts (Maybe Natural)
- listMonitoringAlerts_nextToken :: Lens' ListMonitoringAlerts (Maybe Text)
- listMonitoringAlerts_monitoringScheduleName :: Lens' ListMonitoringAlerts Text
- data ListMonitoringAlertsResponse = ListMonitoringAlertsResponse' {}
- newListMonitoringAlertsResponse :: Int -> ListMonitoringAlertsResponse
- listMonitoringAlertsResponse_monitoringAlertSummaries :: Lens' ListMonitoringAlertsResponse (Maybe (NonEmpty MonitoringAlertSummary))
- listMonitoringAlertsResponse_nextToken :: Lens' ListMonitoringAlertsResponse (Maybe Text)
- listMonitoringAlertsResponse_httpStatus :: Lens' ListMonitoringAlertsResponse Int
Creating a Request
data ListMonitoringAlerts Source #
See: newListMonitoringAlerts smart constructor.
Constructors
| ListMonitoringAlerts' | |
Fields
| |
Instances
newListMonitoringAlerts Source #
Arguments
| :: Text | |
| -> ListMonitoringAlerts |
Create a value of ListMonitoringAlerts with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:ListMonitoringAlerts', listMonitoringAlerts_maxResults - The maximum number of results to display. The default is 100.
ListMonitoringAlerts, listMonitoringAlerts_nextToken - If the result of the previous ListMonitoringAlerts request was
truncated, the response includes a NextToken. To retrieve the next set
of alerts in the history, use the token in the next request.
ListMonitoringAlerts, listMonitoringAlerts_monitoringScheduleName - The name of a monitoring schedule.
Request Lenses
listMonitoringAlerts_maxResults :: Lens' ListMonitoringAlerts (Maybe Natural) Source #
The maximum number of results to display. The default is 100.
listMonitoringAlerts_nextToken :: Lens' ListMonitoringAlerts (Maybe Text) Source #
If the result of the previous ListMonitoringAlerts request was
truncated, the response includes a NextToken. To retrieve the next set
of alerts in the history, use the token in the next request.
listMonitoringAlerts_monitoringScheduleName :: Lens' ListMonitoringAlerts Text Source #
The name of a monitoring schedule.
Destructuring the Response
data ListMonitoringAlertsResponse Source #
See: newListMonitoringAlertsResponse smart constructor.
Constructors
| ListMonitoringAlertsResponse' | |
Fields
| |
Instances
newListMonitoringAlertsResponse Source #
Create a value of ListMonitoringAlertsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListMonitoringAlertsResponse, listMonitoringAlertsResponse_monitoringAlertSummaries - A JSON array where each element is a summary for a monitoring alert.
ListMonitoringAlerts, listMonitoringAlertsResponse_nextToken - If the response is truncated, SageMaker returns this token. To retrieve
the next set of alerts, use it in the subsequent request.
$sel:httpStatus:ListMonitoringAlertsResponse', listMonitoringAlertsResponse_httpStatus - The response's http status code.
Response Lenses
listMonitoringAlertsResponse_monitoringAlertSummaries :: Lens' ListMonitoringAlertsResponse (Maybe (NonEmpty MonitoringAlertSummary)) Source #
A JSON array where each element is a summary for a monitoring alert.
listMonitoringAlertsResponse_nextToken :: Lens' ListMonitoringAlertsResponse (Maybe Text) Source #
If the response is truncated, SageMaker returns this token. To retrieve the next set of alerts, use it in the subsequent request.
listMonitoringAlertsResponse_httpStatus :: Lens' ListMonitoringAlertsResponse Int Source #
The response's http status code.