| 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.CreateFleetMetric
Description
Creates a fleet metric.
Requires permission to access the CreateFleetMetric action.
Synopsis
- data CreateFleetMetric = CreateFleetMetric' {
- description :: Maybe Text
- indexName :: Maybe Text
- queryVersion :: Maybe Text
- tags :: Maybe [Tag]
- unit :: Maybe FleetMetricUnit
- metricName :: Text
- queryString :: Text
- aggregationType :: AggregationType
- period :: Natural
- aggregationField :: Text
- newCreateFleetMetric :: Text -> Text -> AggregationType -> Natural -> Text -> CreateFleetMetric
- createFleetMetric_description :: Lens' CreateFleetMetric (Maybe Text)
- createFleetMetric_indexName :: Lens' CreateFleetMetric (Maybe Text)
- createFleetMetric_queryVersion :: Lens' CreateFleetMetric (Maybe Text)
- createFleetMetric_tags :: Lens' CreateFleetMetric (Maybe [Tag])
- createFleetMetric_unit :: Lens' CreateFleetMetric (Maybe FleetMetricUnit)
- createFleetMetric_metricName :: Lens' CreateFleetMetric Text
- createFleetMetric_queryString :: Lens' CreateFleetMetric Text
- createFleetMetric_aggregationType :: Lens' CreateFleetMetric AggregationType
- createFleetMetric_period :: Lens' CreateFleetMetric Natural
- createFleetMetric_aggregationField :: Lens' CreateFleetMetric Text
- data CreateFleetMetricResponse = CreateFleetMetricResponse' {
- metricArn :: Maybe Text
- metricName :: Maybe Text
- httpStatus :: Int
- newCreateFleetMetricResponse :: Int -> CreateFleetMetricResponse
- createFleetMetricResponse_metricArn :: Lens' CreateFleetMetricResponse (Maybe Text)
- createFleetMetricResponse_metricName :: Lens' CreateFleetMetricResponse (Maybe Text)
- createFleetMetricResponse_httpStatus :: Lens' CreateFleetMetricResponse Int
Creating a Request
data CreateFleetMetric Source #
See: newCreateFleetMetric smart constructor.
Constructors
| CreateFleetMetric' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> AggregationType | |
| -> Natural | |
| -> Text | |
| -> CreateFleetMetric |
Create a value of CreateFleetMetric 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:
CreateFleetMetric, createFleetMetric_description - The fleet metric description.
$sel:indexName:CreateFleetMetric', createFleetMetric_indexName - The name of the index to search.
$sel:queryVersion:CreateFleetMetric', createFleetMetric_queryVersion - The query version.
$sel:tags:CreateFleetMetric', createFleetMetric_tags - Metadata, which can be used to manage the fleet metric.
CreateFleetMetric, createFleetMetric_unit - Used to support unit transformation such as milliseconds to seconds. The
unit must be supported by
CW metric.
Default to null.
CreateFleetMetric, createFleetMetric_metricName - The name of the fleet metric to create.
CreateFleetMetric, createFleetMetric_queryString - The search query string.
$sel:aggregationType:CreateFleetMetric', createFleetMetric_aggregationType - The type of the aggregation query.
$sel:period:CreateFleetMetric', createFleetMetric_period - The time in seconds between fleet metric emissions. Range [60(1 min),
86400(1 day)] and must be multiple of 60.
$sel:aggregationField:CreateFleetMetric', createFleetMetric_aggregationField - The field to aggregate.
Request Lenses
createFleetMetric_description :: Lens' CreateFleetMetric (Maybe Text) Source #
The fleet metric description.
createFleetMetric_indexName :: Lens' CreateFleetMetric (Maybe Text) Source #
The name of the index to search.
createFleetMetric_queryVersion :: Lens' CreateFleetMetric (Maybe Text) Source #
The query version.
createFleetMetric_tags :: Lens' CreateFleetMetric (Maybe [Tag]) Source #
Metadata, which can be used to manage the fleet metric.
createFleetMetric_unit :: Lens' CreateFleetMetric (Maybe FleetMetricUnit) Source #
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
createFleetMetric_metricName :: Lens' CreateFleetMetric Text Source #
The name of the fleet metric to create.
createFleetMetric_queryString :: Lens' CreateFleetMetric Text Source #
The search query string.
createFleetMetric_aggregationType :: Lens' CreateFleetMetric AggregationType Source #
The type of the aggregation query.
createFleetMetric_period :: Lens' CreateFleetMetric Natural Source #
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
createFleetMetric_aggregationField :: Lens' CreateFleetMetric Text Source #
The field to aggregate.
Destructuring the Response
data CreateFleetMetricResponse Source #
See: newCreateFleetMetricResponse smart constructor.
Constructors
| CreateFleetMetricResponse' | |
Fields
| |
Instances
newCreateFleetMetricResponse Source #
Create a value of CreateFleetMetricResponse 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:
CreateFleetMetricResponse, createFleetMetricResponse_metricArn - The Amazon Resource Name (ARN) of the new fleet metric.
CreateFleetMetric, createFleetMetricResponse_metricName - The name of the fleet metric to create.
$sel:httpStatus:CreateFleetMetricResponse', createFleetMetricResponse_httpStatus - The response's http status code.
Response Lenses
createFleetMetricResponse_metricArn :: Lens' CreateFleetMetricResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the new fleet metric.
createFleetMetricResponse_metricName :: Lens' CreateFleetMetricResponse (Maybe Text) Source #
The name of the fleet metric to create.
createFleetMetricResponse_httpStatus :: Lens' CreateFleetMetricResponse Int Source #
The response's http status code.