| 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.IoT.ListCustomMetrics
Description
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_maxResults :: Lens' ListCustomMetrics (Maybe Natural)
- listCustomMetrics_nextToken :: Lens' ListCustomMetrics (Maybe Text)
- 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.
Constructors
| ListCustomMetrics' | |
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:maxResults:ListCustomMetrics', listCustomMetrics_maxResults - The maximum number of results to return at one time. The default is 25.
ListCustomMetrics, listCustomMetrics_nextToken - The token for the next set of results.
Request Lenses
listCustomMetrics_maxResults :: Lens' ListCustomMetrics (Maybe Natural) Source #
The maximum number of results to return at one time. The default is 25.
listCustomMetrics_nextToken :: Lens' ListCustomMetrics (Maybe Text) Source #
The token for the next set of results.
Destructuring the Response
data ListCustomMetricsResponse Source #
See: newListCustomMetricsResponse smart constructor.
Constructors
| ListCustomMetricsResponse' | |
Fields
| |
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.
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.