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 |
Updates the data for a fleet metric.
Requires permission to access the UpdateFleetMetric action.
Synopsis
- data UpdateFleetMetric = UpdateFleetMetric' {}
- newUpdateFleetMetric :: Text -> Text -> UpdateFleetMetric
- updateFleetMetric_aggregationType :: Lens' UpdateFleetMetric (Maybe AggregationType)
- updateFleetMetric_period :: Lens' UpdateFleetMetric (Maybe Natural)
- updateFleetMetric_queryVersion :: Lens' UpdateFleetMetric (Maybe Text)
- updateFleetMetric_aggregationField :: Lens' UpdateFleetMetric (Maybe Text)
- updateFleetMetric_expectedVersion :: Lens' UpdateFleetMetric (Maybe Integer)
- updateFleetMetric_queryString :: Lens' UpdateFleetMetric (Maybe Text)
- updateFleetMetric_description :: Lens' UpdateFleetMetric (Maybe Text)
- updateFleetMetric_unit :: Lens' UpdateFleetMetric (Maybe FleetMetricUnit)
- updateFleetMetric_metricName :: Lens' UpdateFleetMetric Text
- updateFleetMetric_indexName :: Lens' UpdateFleetMetric Text
- data UpdateFleetMetricResponse = UpdateFleetMetricResponse' {
- newUpdateFleetMetricResponse :: UpdateFleetMetricResponse
Creating a Request
data UpdateFleetMetric Source #
See: newUpdateFleetMetric
smart constructor.
UpdateFleetMetric' | |
|
Instances
:: Text | |
-> Text | |
-> UpdateFleetMetric |
Create a value of UpdateFleetMetric
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:UpdateFleetMetric'
, updateFleetMetric_aggregationType
- The type of the aggregation query.
$sel:period:UpdateFleetMetric'
, updateFleetMetric_period
- The time in seconds between fleet metric emissions. Range [60(1 min),
86400(1 day)] and must be multiple of 60.
$sel:queryVersion:UpdateFleetMetric'
, updateFleetMetric_queryVersion
- The version of the query.
$sel:aggregationField:UpdateFleetMetric'
, updateFleetMetric_aggregationField
- The field to aggregate.
$sel:expectedVersion:UpdateFleetMetric'
, updateFleetMetric_expectedVersion
- The expected version of the fleet metric record in the registry.
$sel:queryString:UpdateFleetMetric'
, updateFleetMetric_queryString
- The search query string.
$sel:description:UpdateFleetMetric'
, updateFleetMetric_description
- The description of the fleet metric.
$sel:unit:UpdateFleetMetric'
, updateFleetMetric_unit
- Used to support unit transformation such as milliseconds to seconds. The
unit must be supported by
CW metric.
$sel:metricName:UpdateFleetMetric'
, updateFleetMetric_metricName
- The name of the fleet metric to update.
$sel:indexName:UpdateFleetMetric'
, updateFleetMetric_indexName
- The name of the index to search.
Request Lenses
updateFleetMetric_aggregationType :: Lens' UpdateFleetMetric (Maybe AggregationType) Source #
The type of the aggregation query.
updateFleetMetric_period :: Lens' UpdateFleetMetric (Maybe Natural) Source #
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
updateFleetMetric_queryVersion :: Lens' UpdateFleetMetric (Maybe Text) Source #
The version of the query.
updateFleetMetric_aggregationField :: Lens' UpdateFleetMetric (Maybe Text) Source #
The field to aggregate.
updateFleetMetric_expectedVersion :: Lens' UpdateFleetMetric (Maybe Integer) Source #
The expected version of the fleet metric record in the registry.
updateFleetMetric_queryString :: Lens' UpdateFleetMetric (Maybe Text) Source #
The search query string.
updateFleetMetric_description :: Lens' UpdateFleetMetric (Maybe Text) Source #
The description of the fleet metric.
updateFleetMetric_unit :: Lens' UpdateFleetMetric (Maybe FleetMetricUnit) Source #
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric.
updateFleetMetric_metricName :: Lens' UpdateFleetMetric Text Source #
The name of the fleet metric to update.
updateFleetMetric_indexName :: Lens' UpdateFleetMetric Text Source #
The name of the index to search.
Destructuring the Response
data UpdateFleetMetricResponse Source #
See: newUpdateFleetMetricResponse
smart constructor.
Instances
Eq UpdateFleetMetricResponse Source # | |
Defined in Amazonka.IoT.UpdateFleetMetric | |
Read UpdateFleetMetricResponse Source # | |
Show UpdateFleetMetricResponse Source # | |
Defined in Amazonka.IoT.UpdateFleetMetric showsPrec :: Int -> UpdateFleetMetricResponse -> ShowS # show :: UpdateFleetMetricResponse -> String # showList :: [UpdateFleetMetricResponse] -> ShowS # | |
Generic UpdateFleetMetricResponse Source # | |
Defined in Amazonka.IoT.UpdateFleetMetric type Rep UpdateFleetMetricResponse :: Type -> Type # | |
NFData UpdateFleetMetricResponse Source # | |
Defined in Amazonka.IoT.UpdateFleetMetric rnf :: UpdateFleetMetricResponse -> () # | |
type Rep UpdateFleetMetricResponse Source # | |
newUpdateFleetMetricResponse :: UpdateFleetMetricResponse Source #
Create a value of UpdateFleetMetricResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.