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 |
Returns a list of the monitoring evaluation results and predictor events collected by the monitor resource during different windows of time.
For information about monitoring see predictor-monitoring. For more information about retrieving monitoring results see Viewing Monitoring Results.
This operation returns paginated results.
Synopsis
- data ListMonitorEvaluations = ListMonitorEvaluations' {}
- newListMonitorEvaluations :: Text -> ListMonitorEvaluations
- listMonitorEvaluations_filters :: Lens' ListMonitorEvaluations (Maybe [Filter])
- listMonitorEvaluations_maxResults :: Lens' ListMonitorEvaluations (Maybe Natural)
- listMonitorEvaluations_nextToken :: Lens' ListMonitorEvaluations (Maybe Text)
- listMonitorEvaluations_monitorArn :: Lens' ListMonitorEvaluations Text
- data ListMonitorEvaluationsResponse = ListMonitorEvaluationsResponse' {}
- newListMonitorEvaluationsResponse :: Int -> ListMonitorEvaluationsResponse
- listMonitorEvaluationsResponse_nextToken :: Lens' ListMonitorEvaluationsResponse (Maybe Text)
- listMonitorEvaluationsResponse_predictorMonitorEvaluations :: Lens' ListMonitorEvaluationsResponse (Maybe [PredictorMonitorEvaluation])
- listMonitorEvaluationsResponse_httpStatus :: Lens' ListMonitorEvaluationsResponse Int
Creating a Request
data ListMonitorEvaluations Source #
See: newListMonitorEvaluations
smart constructor.
ListMonitorEvaluations' | |
|
Instances
newListMonitorEvaluations Source #
Create a value of ListMonitorEvaluations
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:filters:ListMonitorEvaluations'
, listMonitorEvaluations_filters
- An array of filters. For each filter, provide a condition and a match
statement. The condition is either IS
or IS_NOT
, which specifies
whether to include or exclude the resources that match the statement
from the list. The match statement consists of a key and a value.
Filter properties
Condition
- The condition to apply. Valid values areIS
andIS_NOT
.Key
- The name of the parameter to filter on. The only valid value isEvaluationState
.Value
- The value to match. Valid values are onlySUCCESS
orFAILURE
.
For example, to list only successful monitor evaluations, you would specify:
"Filters": [ { "Condition": "IS", "Key": "EvaluationState", "Value": "SUCCESS" } ]
$sel:maxResults:ListMonitorEvaluations'
, listMonitorEvaluations_maxResults
- The maximum number of monitoring results to return.
ListMonitorEvaluations
, listMonitorEvaluations_nextToken
- If the result of the previous request was truncated, the response
includes a NextToken
. To retrieve the next set of results, use the
token in the next request. Tokens expire after 24 hours.
ListMonitorEvaluations
, listMonitorEvaluations_monitorArn
- The Amazon Resource Name (ARN) of the monitor resource to get results
from.
Request Lenses
listMonitorEvaluations_filters :: Lens' ListMonitorEvaluations (Maybe [Filter]) Source #
An array of filters. For each filter, provide a condition and a match
statement. The condition is either IS
or IS_NOT
, which specifies
whether to include or exclude the resources that match the statement
from the list. The match statement consists of a key and a value.
Filter properties
Condition
- The condition to apply. Valid values areIS
andIS_NOT
.Key
- The name of the parameter to filter on. The only valid value isEvaluationState
.Value
- The value to match. Valid values are onlySUCCESS
orFAILURE
.
For example, to list only successful monitor evaluations, you would specify:
"Filters": [ { "Condition": "IS", "Key": "EvaluationState", "Value": "SUCCESS" } ]
listMonitorEvaluations_maxResults :: Lens' ListMonitorEvaluations (Maybe Natural) Source #
The maximum number of monitoring results to return.
listMonitorEvaluations_nextToken :: Lens' ListMonitorEvaluations (Maybe Text) Source #
If the result of the previous request was truncated, the response
includes a NextToken
. To retrieve the next set of results, use the
token in the next request. Tokens expire after 24 hours.
listMonitorEvaluations_monitorArn :: Lens' ListMonitorEvaluations Text Source #
The Amazon Resource Name (ARN) of the monitor resource to get results from.
Destructuring the Response
data ListMonitorEvaluationsResponse Source #
See: newListMonitorEvaluationsResponse
smart constructor.
ListMonitorEvaluationsResponse' | |
|
Instances
newListMonitorEvaluationsResponse Source #
Create a value of ListMonitorEvaluationsResponse
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:
ListMonitorEvaluations
, listMonitorEvaluationsResponse_nextToken
- If the response is truncated, Amazon Forecast returns this token. To
retrieve the next set of results, use the token in the next request.
Tokens expire after 24 hours.
$sel:predictorMonitorEvaluations:ListMonitorEvaluationsResponse'
, listMonitorEvaluationsResponse_predictorMonitorEvaluations
- The monitoring results and predictor events collected by the monitor
resource during different windows of time.
For information about monitoring see Viewing Monitoring Results. For more information about retrieving monitoring results see Viewing Monitoring Results.
$sel:httpStatus:ListMonitorEvaluationsResponse'
, listMonitorEvaluationsResponse_httpStatus
- The response's http status code.
Response Lenses
listMonitorEvaluationsResponse_nextToken :: Lens' ListMonitorEvaluationsResponse (Maybe Text) Source #
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
listMonitorEvaluationsResponse_predictorMonitorEvaluations :: Lens' ListMonitorEvaluationsResponse (Maybe [PredictorMonitorEvaluation]) Source #
The monitoring results and predictor events collected by the monitor resource during different windows of time.
For information about monitoring see Viewing Monitoring Results. For more information about retrieving monitoring results see Viewing Monitoring Results.
listMonitorEvaluationsResponse_httpStatus :: Lens' ListMonitorEvaluationsResponse Int Source #
The response's http status code.