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 |
Gets information about the specified fleet metric.
Requires permission to access the DescribeFleetMetric action.
Synopsis
- data DescribeFleetMetric = DescribeFleetMetric' {
- metricName :: Text
- newDescribeFleetMetric :: Text -> DescribeFleetMetric
- describeFleetMetric_metricName :: Lens' DescribeFleetMetric Text
- data DescribeFleetMetricResponse = DescribeFleetMetricResponse' {
- aggregationType :: Maybe AggregationType
- lastModifiedDate :: Maybe POSIX
- period :: Maybe Natural
- queryVersion :: Maybe Text
- metricName :: Maybe Text
- aggregationField :: Maybe Text
- queryString :: Maybe Text
- version :: Maybe Integer
- creationDate :: Maybe POSIX
- description :: Maybe Text
- unit :: Maybe FleetMetricUnit
- indexName :: Maybe Text
- metricArn :: Maybe Text
- httpStatus :: Int
- newDescribeFleetMetricResponse :: Int -> DescribeFleetMetricResponse
- describeFleetMetricResponse_aggregationType :: Lens' DescribeFleetMetricResponse (Maybe AggregationType)
- describeFleetMetricResponse_lastModifiedDate :: Lens' DescribeFleetMetricResponse (Maybe UTCTime)
- describeFleetMetricResponse_period :: Lens' DescribeFleetMetricResponse (Maybe Natural)
- describeFleetMetricResponse_queryVersion :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_metricName :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_aggregationField :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_queryString :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_version :: Lens' DescribeFleetMetricResponse (Maybe Integer)
- describeFleetMetricResponse_creationDate :: Lens' DescribeFleetMetricResponse (Maybe UTCTime)
- describeFleetMetricResponse_description :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_unit :: Lens' DescribeFleetMetricResponse (Maybe FleetMetricUnit)
- describeFleetMetricResponse_indexName :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_metricArn :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_httpStatus :: Lens' DescribeFleetMetricResponse Int
Creating a Request
data DescribeFleetMetric Source #
See: newDescribeFleetMetric
smart constructor.
DescribeFleetMetric' | |
|
Instances
newDescribeFleetMetric Source #
Create a value of DescribeFleetMetric
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:metricName:DescribeFleetMetric'
, describeFleetMetric_metricName
- The name of the fleet metric to describe.
Request Lenses
describeFleetMetric_metricName :: Lens' DescribeFleetMetric Text Source #
The name of the fleet metric to describe.
Destructuring the Response
data DescribeFleetMetricResponse Source #
See: newDescribeFleetMetricResponse
smart constructor.
DescribeFleetMetricResponse' | |
|
Instances
newDescribeFleetMetricResponse Source #
Create a value of DescribeFleetMetricResponse
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:aggregationType:DescribeFleetMetricResponse'
, describeFleetMetricResponse_aggregationType
- The type of the aggregation query.
$sel:lastModifiedDate:DescribeFleetMetricResponse'
, describeFleetMetricResponse_lastModifiedDate
- The date when the fleet metric is last modified.
$sel:period:DescribeFleetMetricResponse'
, describeFleetMetricResponse_period
- The time in seconds between fleet metric emissions. Range [60(1 min),
86400(1 day)] and must be multiple of 60.
$sel:queryVersion:DescribeFleetMetricResponse'
, describeFleetMetricResponse_queryVersion
- The query version.
$sel:metricName:DescribeFleetMetric'
, describeFleetMetricResponse_metricName
- The name of the fleet metric to describe.
$sel:aggregationField:DescribeFleetMetricResponse'
, describeFleetMetricResponse_aggregationField
- The field to aggregate.
$sel:queryString:DescribeFleetMetricResponse'
, describeFleetMetricResponse_queryString
- The search query string.
$sel:version:DescribeFleetMetricResponse'
, describeFleetMetricResponse_version
- The version of the fleet metric.
$sel:creationDate:DescribeFleetMetricResponse'
, describeFleetMetricResponse_creationDate
- The date when the fleet metric is created.
$sel:description:DescribeFleetMetricResponse'
, describeFleetMetricResponse_description
- The fleet metric description.
$sel:unit:DescribeFleetMetricResponse'
, describeFleetMetricResponse_unit
- Used to support unit transformation such as milliseconds to seconds. The
unit must be supported by
CW metric.
$sel:indexName:DescribeFleetMetricResponse'
, describeFleetMetricResponse_indexName
- The name of the index to search.
$sel:metricArn:DescribeFleetMetricResponse'
, describeFleetMetricResponse_metricArn
- The ARN of the fleet metric to describe.
$sel:httpStatus:DescribeFleetMetricResponse'
, describeFleetMetricResponse_httpStatus
- The response's http status code.
Response Lenses
describeFleetMetricResponse_aggregationType :: Lens' DescribeFleetMetricResponse (Maybe AggregationType) Source #
The type of the aggregation query.
describeFleetMetricResponse_lastModifiedDate :: Lens' DescribeFleetMetricResponse (Maybe UTCTime) Source #
The date when the fleet metric is last modified.
describeFleetMetricResponse_period :: Lens' DescribeFleetMetricResponse (Maybe Natural) Source #
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
describeFleetMetricResponse_queryVersion :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The query version.
describeFleetMetricResponse_metricName :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The name of the fleet metric to describe.
describeFleetMetricResponse_aggregationField :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The field to aggregate.
describeFleetMetricResponse_queryString :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The search query string.
describeFleetMetricResponse_version :: Lens' DescribeFleetMetricResponse (Maybe Integer) Source #
The version of the fleet metric.
describeFleetMetricResponse_creationDate :: Lens' DescribeFleetMetricResponse (Maybe UTCTime) Source #
The date when the fleet metric is created.
describeFleetMetricResponse_description :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The fleet metric description.
describeFleetMetricResponse_unit :: Lens' DescribeFleetMetricResponse (Maybe FleetMetricUnit) Source #
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric.
describeFleetMetricResponse_indexName :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The name of the index to search.
describeFleetMetricResponse_metricArn :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The ARN of the fleet metric to describe.
describeFleetMetricResponse_httpStatus :: Lens' DescribeFleetMetricResponse Int Source #
The response's http status code.