module Stratosphere.IoT.FleetMetric (
        module Exports, FleetMetric(..), mkFleetMetric
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoT.FleetMetric.AggregationTypeProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data FleetMetric
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html>
    FleetMetric {FleetMetric -> ()
haddock_workaround_ :: (),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-aggregationfield>
                 FleetMetric -> Maybe (Value Text)
aggregationField :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-aggregationtype>
                 FleetMetric -> Maybe AggregationTypeProperty
aggregationType :: (Prelude.Maybe AggregationTypeProperty),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-description>
                 FleetMetric -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-indexname>
                 FleetMetric -> Maybe (Value Text)
indexName :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-metricname>
                 FleetMetric -> Value Text
metricName :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-period>
                 FleetMetric -> Maybe (Value Integer)
period :: (Prelude.Maybe (Value Prelude.Integer)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-querystring>
                 FleetMetric -> Maybe (Value Text)
queryString :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-queryversion>
                 FleetMetric -> Maybe (Value Text)
queryVersion :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-tags>
                 FleetMetric -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-unit>
                 FleetMetric -> Maybe (Value Text)
unit :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FleetMetric -> FleetMetric -> Bool
(FleetMetric -> FleetMetric -> Bool)
-> (FleetMetric -> FleetMetric -> Bool) -> Eq FleetMetric
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FleetMetric -> FleetMetric -> Bool
== :: FleetMetric -> FleetMetric -> Bool
$c/= :: FleetMetric -> FleetMetric -> Bool
/= :: FleetMetric -> FleetMetric -> Bool
Prelude.Eq, Int -> FleetMetric -> ShowS
[FleetMetric] -> ShowS
FleetMetric -> String
(Int -> FleetMetric -> ShowS)
-> (FleetMetric -> String)
-> ([FleetMetric] -> ShowS)
-> Show FleetMetric
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FleetMetric -> ShowS
showsPrec :: Int -> FleetMetric -> ShowS
$cshow :: FleetMetric -> String
show :: FleetMetric -> String
$cshowList :: [FleetMetric] -> ShowS
showList :: [FleetMetric] -> ShowS
Prelude.Show)
mkFleetMetric :: Value Prelude.Text -> FleetMetric
mkFleetMetric :: Value Text -> FleetMetric
mkFleetMetric Value Text
metricName
  = FleetMetric
      {haddock_workaround_ :: ()
haddock_workaround_ = (), metricName :: Value Text
metricName = Value Text
metricName,
       aggregationField :: Maybe (Value Text)
aggregationField = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       aggregationType :: Maybe AggregationTypeProperty
aggregationType = Maybe AggregationTypeProperty
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       indexName :: Maybe (Value Text)
indexName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, period :: Maybe (Value Integer)
period = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       queryString :: Maybe (Value Text)
queryString = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, queryVersion :: Maybe (Value Text)
queryVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing, unit :: Maybe (Value Text)
unit = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FleetMetric where
  toResourceProperties :: FleetMetric -> ResourceProperties
toResourceProperties FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::FleetMetric", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"MetricName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
metricName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AggregationField" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
aggregationField,
                               Key -> AggregationTypeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AggregationType" (AggregationTypeProperty -> (Key, Value))
-> Maybe AggregationTypeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AggregationTypeProperty
aggregationType,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IndexName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
indexName,
                               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Period" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
period,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueryString" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
queryString,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueryVersion" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
queryVersion,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Unit" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
unit]))}
instance JSON.ToJSON FleetMetric where
  toJSON :: FleetMetric -> Value
toJSON FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"MetricName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
metricName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AggregationField" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
aggregationField,
                  Key -> AggregationTypeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AggregationType" (AggregationTypeProperty -> (Key, Value))
-> Maybe AggregationTypeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AggregationTypeProperty
aggregationType,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IndexName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
indexName,
                  Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Period" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
period,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueryString" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
queryString,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueryVersion" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
queryVersion,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Unit" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
unit])))
instance Property "AggregationField" FleetMetric where
  type PropertyType "AggregationField" FleetMetric = Value Prelude.Text
  set :: PropertyType "AggregationField" FleetMetric
-> FleetMetric -> FleetMetric
set PropertyType "AggregationField" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {aggregationField :: Maybe (Value Text)
aggregationField = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AggregationField" FleetMetric
Value Text
newValue, Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: ()
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
instance Property "AggregationType" FleetMetric where
  type PropertyType "AggregationType" FleetMetric = AggregationTypeProperty
  set :: PropertyType "AggregationType" FleetMetric
-> FleetMetric -> FleetMetric
set PropertyType "AggregationType" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {aggregationType :: Maybe AggregationTypeProperty
aggregationType = AggregationTypeProperty -> Maybe AggregationTypeProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AggregationType" FleetMetric
AggregationTypeProperty
newValue, Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
instance Property "Description" FleetMetric where
  type PropertyType "Description" FleetMetric = Value Prelude.Text
  set :: PropertyType "Description" FleetMetric
-> FleetMetric -> FleetMetric
set PropertyType "Description" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" FleetMetric
Value Text
newValue, Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
instance Property "IndexName" FleetMetric where
  type PropertyType "IndexName" FleetMetric = Value Prelude.Text
  set :: PropertyType "IndexName" FleetMetric -> FleetMetric -> FleetMetric
set PropertyType "IndexName" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {indexName :: Maybe (Value Text)
indexName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IndexName" FleetMetric
Value Text
newValue, Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
instance Property "MetricName" FleetMetric where
  type PropertyType "MetricName" FleetMetric = Value Prelude.Text
  set :: PropertyType "MetricName" FleetMetric -> FleetMetric -> FleetMetric
set PropertyType "MetricName" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {metricName :: Value Text
metricName = PropertyType "MetricName" FleetMetric
Value Text
newValue, Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
instance Property "Period" FleetMetric where
  type PropertyType "Period" FleetMetric = Value Prelude.Integer
  set :: PropertyType "Period" FleetMetric -> FleetMetric -> FleetMetric
set PropertyType "Period" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {period :: Maybe (Value Integer)
period = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Period" FleetMetric
Value Integer
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
instance Property "QueryString" FleetMetric where
  type PropertyType "QueryString" FleetMetric = Value Prelude.Text
  set :: PropertyType "QueryString" FleetMetric
-> FleetMetric -> FleetMetric
set PropertyType "QueryString" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {queryString :: Maybe (Value Text)
queryString = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueryString" FleetMetric
Value Text
newValue, Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
instance Property "QueryVersion" FleetMetric where
  type PropertyType "QueryVersion" FleetMetric = Value Prelude.Text
  set :: PropertyType "QueryVersion" FleetMetric
-> FleetMetric -> FleetMetric
set PropertyType "QueryVersion" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {queryVersion :: Maybe (Value Text)
queryVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueryVersion" FleetMetric
Value Text
newValue, Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
instance Property "Tags" FleetMetric where
  type PropertyType "Tags" FleetMetric = [Tag]
  set :: PropertyType "Tags" FleetMetric -> FleetMetric -> FleetMetric
set PropertyType "Tags" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" FleetMetric
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
instance Property "Unit" FleetMetric where
  type PropertyType "Unit" FleetMetric = Value Prelude.Text
  set :: PropertyType "Unit" FleetMetric -> FleetMetric -> FleetMetric
set PropertyType "Unit" FleetMetric
newValue FleetMetric {Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: FleetMetric -> ()
aggregationField :: FleetMetric -> Maybe (Value Text)
aggregationType :: FleetMetric -> Maybe AggregationTypeProperty
description :: FleetMetric -> Maybe (Value Text)
indexName :: FleetMetric -> Maybe (Value Text)
metricName :: FleetMetric -> Value Text
period :: FleetMetric -> Maybe (Value Integer)
queryString :: FleetMetric -> Maybe (Value Text)
queryVersion :: FleetMetric -> Maybe (Value Text)
tags :: FleetMetric -> Maybe [Tag]
unit :: FleetMetric -> Maybe (Value Text)
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
unit :: Maybe (Value Text)
..}
    = FleetMetric {unit :: Maybe (Value Text)
unit = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Unit" FleetMetric
Value Text
newValue, Maybe [Tag]
Maybe (Value Integer)
Maybe (Value Text)
Maybe AggregationTypeProperty
()
Value Text
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
aggregationField :: Maybe (Value Text)
aggregationType :: Maybe AggregationTypeProperty
description :: Maybe (Value Text)
indexName :: Maybe (Value Text)
metricName :: Value Text
period :: Maybe (Value Integer)
queryString :: Maybe (Value Text)
queryVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
..}