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 |
Retrieves metrics about specified crawlers.
This operation returns paginated results.
Synopsis
- data GetCrawlerMetrics = GetCrawlerMetrics' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- crawlerNameList :: Maybe [Text]
- newGetCrawlerMetrics :: GetCrawlerMetrics
- getCrawlerMetrics_nextToken :: Lens' GetCrawlerMetrics (Maybe Text)
- getCrawlerMetrics_maxResults :: Lens' GetCrawlerMetrics (Maybe Natural)
- getCrawlerMetrics_crawlerNameList :: Lens' GetCrawlerMetrics (Maybe [Text])
- data GetCrawlerMetricsResponse = GetCrawlerMetricsResponse' {}
- newGetCrawlerMetricsResponse :: Int -> GetCrawlerMetricsResponse
- getCrawlerMetricsResponse_crawlerMetricsList :: Lens' GetCrawlerMetricsResponse (Maybe [CrawlerMetrics])
- getCrawlerMetricsResponse_nextToken :: Lens' GetCrawlerMetricsResponse (Maybe Text)
- getCrawlerMetricsResponse_httpStatus :: Lens' GetCrawlerMetricsResponse Int
Creating a Request
data GetCrawlerMetrics Source #
See: newGetCrawlerMetrics
smart constructor.
GetCrawlerMetrics' | |
|
Instances
newGetCrawlerMetrics :: GetCrawlerMetrics Source #
Create a value of GetCrawlerMetrics
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:GetCrawlerMetrics'
, getCrawlerMetrics_nextToken
- A continuation token, if this is a continuation call.
$sel:maxResults:GetCrawlerMetrics'
, getCrawlerMetrics_maxResults
- The maximum size of a list to return.
$sel:crawlerNameList:GetCrawlerMetrics'
, getCrawlerMetrics_crawlerNameList
- A list of the names of crawlers about which to retrieve metrics.
Request Lenses
getCrawlerMetrics_nextToken :: Lens' GetCrawlerMetrics (Maybe Text) Source #
A continuation token, if this is a continuation call.
getCrawlerMetrics_maxResults :: Lens' GetCrawlerMetrics (Maybe Natural) Source #
The maximum size of a list to return.
getCrawlerMetrics_crawlerNameList :: Lens' GetCrawlerMetrics (Maybe [Text]) Source #
A list of the names of crawlers about which to retrieve metrics.
Destructuring the Response
data GetCrawlerMetricsResponse Source #
See: newGetCrawlerMetricsResponse
smart constructor.
GetCrawlerMetricsResponse' | |
|
Instances
newGetCrawlerMetricsResponse Source #
Create a value of GetCrawlerMetricsResponse
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:crawlerMetricsList:GetCrawlerMetricsResponse'
, getCrawlerMetricsResponse_crawlerMetricsList
- A list of metrics for the specified crawler.
$sel:nextToken:GetCrawlerMetrics'
, getCrawlerMetricsResponse_nextToken
- A continuation token, if the returned list does not contain the last
metric available.
$sel:httpStatus:GetCrawlerMetricsResponse'
, getCrawlerMetricsResponse_httpStatus
- The response's http status code.
Response Lenses
getCrawlerMetricsResponse_crawlerMetricsList :: Lens' GetCrawlerMetricsResponse (Maybe [CrawlerMetrics]) Source #
A list of metrics for the specified crawler.
getCrawlerMetricsResponse_nextToken :: Lens' GetCrawlerMetricsResponse (Maybe Text) Source #
A continuation token, if the returned list does not contain the last metric available.
getCrawlerMetricsResponse_httpStatus :: Lens' GetCrawlerMetricsResponse Int Source #
The response's http status code.