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 |
Retrieve the dimensions that can be queried for each specified metric type on a specified DB instance.
Synopsis
- data ListAvailableResourceDimensions = ListAvailableResourceDimensions' {}
- newListAvailableResourceDimensions :: ServiceType -> Text -> NonEmpty Text -> ListAvailableResourceDimensions
- listAvailableResourceDimensions_maxResults :: Lens' ListAvailableResourceDimensions (Maybe Natural)
- listAvailableResourceDimensions_nextToken :: Lens' ListAvailableResourceDimensions (Maybe Text)
- listAvailableResourceDimensions_serviceType :: Lens' ListAvailableResourceDimensions ServiceType
- listAvailableResourceDimensions_identifier :: Lens' ListAvailableResourceDimensions Text
- listAvailableResourceDimensions_metrics :: Lens' ListAvailableResourceDimensions (NonEmpty Text)
- data ListAvailableResourceDimensionsResponse = ListAvailableResourceDimensionsResponse' {}
- newListAvailableResourceDimensionsResponse :: Int -> ListAvailableResourceDimensionsResponse
- listAvailableResourceDimensionsResponse_metricDimensions :: Lens' ListAvailableResourceDimensionsResponse (Maybe [MetricDimensionGroups])
- listAvailableResourceDimensionsResponse_nextToken :: Lens' ListAvailableResourceDimensionsResponse (Maybe Text)
- listAvailableResourceDimensionsResponse_httpStatus :: Lens' ListAvailableResourceDimensionsResponse Int
Creating a Request
data ListAvailableResourceDimensions Source #
See: newListAvailableResourceDimensions
smart constructor.
ListAvailableResourceDimensions' | |
|
Instances
newListAvailableResourceDimensions Source #
Create a value of ListAvailableResourceDimensions
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:ListAvailableResourceDimensions'
, listAvailableResourceDimensions_maxResults
- The maximum number of items to return in the response. If more items
exist than the specified MaxRecords
value, a pagination token is
included in the response so that the remaining results can be retrieved.
ListAvailableResourceDimensions
, listAvailableResourceDimensions_nextToken
- An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
token, up to the value specified by MaxRecords
.
$sel:serviceType:ListAvailableResourceDimensions'
, listAvailableResourceDimensions_serviceType
- The Amazon Web Services service for which Performance Insights returns
metrics.
ListAvailableResourceDimensions
, listAvailableResourceDimensions_identifier
- An immutable identifier for a data source that is unique within an
Amazon Web Services Region. Performance Insights gathers metrics from
this data source. To use an Amazon RDS DB instance as a data source,
specify its DbiResourceId
value. For example, specify
db-ABCDEFGHIJKLMNOPQRSTU1VWZ
.
$sel:metrics:ListAvailableResourceDimensions'
, listAvailableResourceDimensions_metrics
- The types of metrics for which to retrieve dimensions. Valid values
include db.load
.
Request Lenses
listAvailableResourceDimensions_maxResults :: Lens' ListAvailableResourceDimensions (Maybe Natural) Source #
The maximum number of items to return in the response. If more items
exist than the specified MaxRecords
value, a pagination token is
included in the response so that the remaining results can be retrieved.
listAvailableResourceDimensions_nextToken :: Lens' ListAvailableResourceDimensions (Maybe Text) Source #
An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
token, up to the value specified by MaxRecords
.
listAvailableResourceDimensions_serviceType :: Lens' ListAvailableResourceDimensions ServiceType Source #
The Amazon Web Services service for which Performance Insights returns metrics.
listAvailableResourceDimensions_identifier :: Lens' ListAvailableResourceDimensions Text Source #
An immutable identifier for a data source that is unique within an
Amazon Web Services Region. Performance Insights gathers metrics from
this data source. To use an Amazon RDS DB instance as a data source,
specify its DbiResourceId
value. For example, specify
db-ABCDEFGHIJKLMNOPQRSTU1VWZ
.
listAvailableResourceDimensions_metrics :: Lens' ListAvailableResourceDimensions (NonEmpty Text) Source #
The types of metrics for which to retrieve dimensions. Valid values
include db.load
.
Destructuring the Response
data ListAvailableResourceDimensionsResponse Source #
See: newListAvailableResourceDimensionsResponse
smart constructor.
ListAvailableResourceDimensionsResponse' | |
|
Instances
newListAvailableResourceDimensionsResponse Source #
Create a value of ListAvailableResourceDimensionsResponse
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:metricDimensions:ListAvailableResourceDimensionsResponse'
, listAvailableResourceDimensionsResponse_metricDimensions
- The dimension information returned for requested metric types.
ListAvailableResourceDimensions
, listAvailableResourceDimensionsResponse_nextToken
- An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
token, up to the value specified by MaxRecords
.
$sel:httpStatus:ListAvailableResourceDimensionsResponse'
, listAvailableResourceDimensionsResponse_httpStatus
- The response's http status code.
Response Lenses
listAvailableResourceDimensionsResponse_metricDimensions :: Lens' ListAvailableResourceDimensionsResponse (Maybe [MetricDimensionGroups]) Source #
The dimension information returned for requested metric types.
listAvailableResourceDimensionsResponse_nextToken :: Lens' ListAvailableResourceDimensionsResponse (Maybe Text) Source #
An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
token, up to the value specified by MaxRecords
.
listAvailableResourceDimensionsResponse_httpStatus :: Lens' ListAvailableResourceDimensionsResponse Int Source #
The response's http status code.