Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists your Device Defender detect custom metrics.
Requires permission to access the ListCustomMetrics action.
This operation returns paginated results.
Synopsis
- data ListCustomMetrics = ListCustomMetrics' {}
- newListCustomMetrics :: ListCustomMetrics
- listCustomMetrics_nextToken :: Lens' ListCustomMetrics (Maybe Text)
- listCustomMetrics_maxResults :: Lens' ListCustomMetrics (Maybe Natural)
- data ListCustomMetricsResponse = ListCustomMetricsResponse' {
- metricNames :: Maybe [Text]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListCustomMetricsResponse :: Int -> ListCustomMetricsResponse
- listCustomMetricsResponse_metricNames :: Lens' ListCustomMetricsResponse (Maybe [Text])
- listCustomMetricsResponse_nextToken :: Lens' ListCustomMetricsResponse (Maybe Text)
- listCustomMetricsResponse_httpStatus :: Lens' ListCustomMetricsResponse Int
Creating a Request
data ListCustomMetrics Source #
See: newListCustomMetrics
smart constructor.
Instances
newListCustomMetrics :: ListCustomMetrics Source #
Create a value of ListCustomMetrics
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:nextToken:ListCustomMetrics'
, listCustomMetrics_nextToken
- The token for the next set of results.
$sel:maxResults:ListCustomMetrics'
, listCustomMetrics_maxResults
- The maximum number of results to return at one time. The default is 25.
Request Lenses
listCustomMetrics_nextToken :: Lens' ListCustomMetrics (Maybe Text) Source #
The token for the next set of results.
listCustomMetrics_maxResults :: Lens' ListCustomMetrics (Maybe Natural) Source #
The maximum number of results to return at one time. The default is 25.
Destructuring the Response
data ListCustomMetricsResponse Source #
See: newListCustomMetricsResponse
smart constructor.
ListCustomMetricsResponse' | |
|
Instances
newListCustomMetricsResponse Source #
Create a value of ListCustomMetricsResponse
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:metricNames:ListCustomMetricsResponse'
, listCustomMetricsResponse_metricNames
- The name of the custom metric.
$sel:nextToken:ListCustomMetrics'
, listCustomMetricsResponse_nextToken
- A token that can be used to retrieve the next set of results, or null
if there are no additional results.
$sel:httpStatus:ListCustomMetricsResponse'
, listCustomMetricsResponse_httpStatus
- The response's http status code.
Response Lenses
listCustomMetricsResponse_metricNames :: Lens' ListCustomMetricsResponse (Maybe [Text]) Source #
The name of the custom metric.
listCustomMetricsResponse_nextToken :: Lens' ListCustomMetricsResponse (Maybe Text) Source #
A token that can be used to retrieve the next set of results, or null
if there are no additional results.
listCustomMetricsResponse_httpStatus :: Lens' ListCustomMetricsResponse Int Source #
The response's http status code.