| 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.DescribeFleetMetric
Description
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' {
- aggregationField :: Maybe Text
- aggregationType :: Maybe AggregationType
- creationDate :: Maybe POSIX
- description :: Maybe Text
- indexName :: Maybe Text
- lastModifiedDate :: Maybe POSIX
- metricArn :: Maybe Text
- metricName :: Maybe Text
- period :: Maybe Natural
- queryString :: Maybe Text
- queryVersion :: Maybe Text
- unit :: Maybe FleetMetricUnit
- version :: Maybe Integer
- httpStatus :: Int
- newDescribeFleetMetricResponse :: Int -> DescribeFleetMetricResponse
- describeFleetMetricResponse_aggregationField :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_aggregationType :: Lens' DescribeFleetMetricResponse (Maybe AggregationType)
- describeFleetMetricResponse_creationDate :: Lens' DescribeFleetMetricResponse (Maybe UTCTime)
- describeFleetMetricResponse_description :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_indexName :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_lastModifiedDate :: Lens' DescribeFleetMetricResponse (Maybe UTCTime)
- describeFleetMetricResponse_metricArn :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_metricName :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_period :: Lens' DescribeFleetMetricResponse (Maybe Natural)
- describeFleetMetricResponse_queryString :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_queryVersion :: Lens' DescribeFleetMetricResponse (Maybe Text)
- describeFleetMetricResponse_unit :: Lens' DescribeFleetMetricResponse (Maybe FleetMetricUnit)
- describeFleetMetricResponse_version :: Lens' DescribeFleetMetricResponse (Maybe Integer)
- describeFleetMetricResponse_httpStatus :: Lens' DescribeFleetMetricResponse Int
Creating a Request
data DescribeFleetMetric Source #
See: newDescribeFleetMetric smart constructor.
Constructors
| DescribeFleetMetric' | |
Fields
| |
Instances
newDescribeFleetMetric Source #
Arguments
| :: Text | |
| -> DescribeFleetMetric |
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:
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.
Constructors
| DescribeFleetMetricResponse' | |
Fields
| |
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:aggregationField:DescribeFleetMetricResponse', describeFleetMetricResponse_aggregationField - The field to aggregate.
$sel:aggregationType:DescribeFleetMetricResponse', describeFleetMetricResponse_aggregationType - The type of the aggregation query.
DescribeFleetMetricResponse, describeFleetMetricResponse_creationDate - The date when the fleet metric is created.
DescribeFleetMetricResponse, describeFleetMetricResponse_description - The fleet metric description.
$sel:indexName:DescribeFleetMetricResponse', describeFleetMetricResponse_indexName - The name of the index to search.
DescribeFleetMetricResponse, describeFleetMetricResponse_lastModifiedDate - The date when the fleet metric is last modified.
DescribeFleetMetricResponse, describeFleetMetricResponse_metricArn - The ARN of the fleet metric to describe.
DescribeFleetMetric, describeFleetMetricResponse_metricName - The name of the fleet metric to describe.
$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.
DescribeFleetMetricResponse, describeFleetMetricResponse_queryString - The search query string.
$sel:queryVersion:DescribeFleetMetricResponse', describeFleetMetricResponse_queryVersion - The query version.
DescribeFleetMetricResponse, describeFleetMetricResponse_unit - Used to support unit transformation such as milliseconds to seconds. The
unit must be supported by
CW metric.
DescribeFleetMetricResponse, describeFleetMetricResponse_version - The version of the fleet metric.
$sel:httpStatus:DescribeFleetMetricResponse', describeFleetMetricResponse_httpStatus - The response's http status code.
Response Lenses
describeFleetMetricResponse_aggregationField :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The field to aggregate.
describeFleetMetricResponse_aggregationType :: Lens' DescribeFleetMetricResponse (Maybe AggregationType) Source #
The type of the aggregation query.
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_indexName :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The name of the index to search.
describeFleetMetricResponse_lastModifiedDate :: Lens' DescribeFleetMetricResponse (Maybe UTCTime) Source #
The date when the fleet metric is last modified.
describeFleetMetricResponse_metricArn :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The ARN of the fleet metric to describe.
describeFleetMetricResponse_metricName :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The name of the fleet metric to describe.
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_queryString :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The search query string.
describeFleetMetricResponse_queryVersion :: Lens' DescribeFleetMetricResponse (Maybe Text) Source #
The query version.
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_version :: Lens' DescribeFleetMetricResponse (Maybe Integer) Source #
The version of the fleet metric.
describeFleetMetricResponse_httpStatus :: Lens' DescribeFleetMetricResponse Int Source #
The response's http status code.