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 |
Creates a fleet metric.
Requires permission to access the CreateFleetMetric action.
Synopsis
- data CreateFleetMetric = CreateFleetMetric' {
- queryVersion :: Maybe Text
- description :: Maybe Text
- unit :: Maybe FleetMetricUnit
- indexName :: Maybe Text
- tags :: Maybe [Tag]
- metricName :: Text
- queryString :: Text
- aggregationType :: AggregationType
- period :: Natural
- aggregationField :: Text
- newCreateFleetMetric :: Text -> Text -> AggregationType -> Natural -> Text -> CreateFleetMetric
- createFleetMetric_queryVersion :: Lens' CreateFleetMetric (Maybe Text)
- createFleetMetric_description :: Lens' CreateFleetMetric (Maybe Text)
- createFleetMetric_unit :: Lens' CreateFleetMetric (Maybe FleetMetricUnit)
- createFleetMetric_indexName :: Lens' CreateFleetMetric (Maybe Text)
- createFleetMetric_tags :: Lens' CreateFleetMetric (Maybe [Tag])
- 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' {
- metricName :: Maybe Text
- metricArn :: Maybe Text
- httpStatus :: Int
- newCreateFleetMetricResponse :: Int -> CreateFleetMetricResponse
- createFleetMetricResponse_metricName :: Lens' CreateFleetMetricResponse (Maybe Text)
- createFleetMetricResponse_metricArn :: Lens' CreateFleetMetricResponse (Maybe Text)
- createFleetMetricResponse_httpStatus :: Lens' CreateFleetMetricResponse Int
Creating a Request
data CreateFleetMetric Source #
See: newCreateFleetMetric
smart constructor.
CreateFleetMetric' | |
|
Instances
:: 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:
$sel:queryVersion:CreateFleetMetric'
, createFleetMetric_queryVersion
- The query version.
$sel:description:CreateFleetMetric'
, createFleetMetric_description
- The fleet metric description.
$sel:unit:CreateFleetMetric'
, createFleetMetric_unit
- Used to support unit transformation such as milliseconds to seconds. The
unit must be supported by
CW metric.
Default to null.
$sel:indexName:CreateFleetMetric'
, createFleetMetric_indexName
- The name of the index to search.
$sel:tags:CreateFleetMetric'
, createFleetMetric_tags
- Metadata, which can be used to manage the fleet metric.
$sel:metricName:CreateFleetMetric'
, createFleetMetric_metricName
- The name of the fleet metric to create.
$sel:queryString: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_queryVersion :: Lens' CreateFleetMetric (Maybe Text) Source #
The query version.
createFleetMetric_description :: Lens' CreateFleetMetric (Maybe Text) Source #
The fleet metric description.
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_indexName :: Lens' CreateFleetMetric (Maybe Text) Source #
The name of the index to search.
createFleetMetric_tags :: Lens' CreateFleetMetric (Maybe [Tag]) Source #
Metadata, which can be used to manage the fleet metric.
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.
CreateFleetMetricResponse' | |
|
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:
$sel:metricName:CreateFleetMetric'
, createFleetMetricResponse_metricName
- The name of the fleet metric to create.
$sel:metricArn:CreateFleetMetricResponse'
, createFleetMetricResponse_metricArn
- The Amazon Resource Name (ARN) of the new fleet metric.
$sel:httpStatus:CreateFleetMetricResponse'
, createFleetMetricResponse_httpStatus
- The response's http status code.
Response Lenses
createFleetMetricResponse_metricName :: Lens' CreateFleetMetricResponse (Maybe Text) Source #
The name of the fleet metric to create.
createFleetMetricResponse_metricArn :: Lens' CreateFleetMetricResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the new fleet metric.
createFleetMetricResponse_httpStatus :: Lens' CreateFleetMetricResponse Int Source #
The response's http status code.