{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AutoScalingPlans.Types.TargetTrackingConfiguration where
import Amazonka.AutoScalingPlans.Types.CustomizedScalingMetricSpecification
import Amazonka.AutoScalingPlans.Types.PredefinedScalingMetricSpecification
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data TargetTrackingConfiguration = TargetTrackingConfiguration'
{
TargetTrackingConfiguration
-> Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification :: Prelude.Maybe CustomizedScalingMetricSpecification,
TargetTrackingConfiguration -> Maybe Bool
disableScaleIn :: Prelude.Maybe Prelude.Bool,
TargetTrackingConfiguration -> Maybe Int
estimatedInstanceWarmup :: Prelude.Maybe Prelude.Int,
TargetTrackingConfiguration
-> Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification :: Prelude.Maybe PredefinedScalingMetricSpecification,
TargetTrackingConfiguration -> Maybe Int
scaleInCooldown :: Prelude.Maybe Prelude.Int,
TargetTrackingConfiguration -> Maybe Int
scaleOutCooldown :: Prelude.Maybe Prelude.Int,
TargetTrackingConfiguration -> Double
targetValue :: Prelude.Double
}
deriving (TargetTrackingConfiguration -> TargetTrackingConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetTrackingConfiguration -> TargetTrackingConfiguration -> Bool
$c/= :: TargetTrackingConfiguration -> TargetTrackingConfiguration -> Bool
== :: TargetTrackingConfiguration -> TargetTrackingConfiguration -> Bool
$c== :: TargetTrackingConfiguration -> TargetTrackingConfiguration -> Bool
Prelude.Eq, ReadPrec [TargetTrackingConfiguration]
ReadPrec TargetTrackingConfiguration
Int -> ReadS TargetTrackingConfiguration
ReadS [TargetTrackingConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TargetTrackingConfiguration]
$creadListPrec :: ReadPrec [TargetTrackingConfiguration]
readPrec :: ReadPrec TargetTrackingConfiguration
$creadPrec :: ReadPrec TargetTrackingConfiguration
readList :: ReadS [TargetTrackingConfiguration]
$creadList :: ReadS [TargetTrackingConfiguration]
readsPrec :: Int -> ReadS TargetTrackingConfiguration
$creadsPrec :: Int -> ReadS TargetTrackingConfiguration
Prelude.Read, Int -> TargetTrackingConfiguration -> ShowS
[TargetTrackingConfiguration] -> ShowS
TargetTrackingConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TargetTrackingConfiguration] -> ShowS
$cshowList :: [TargetTrackingConfiguration] -> ShowS
show :: TargetTrackingConfiguration -> String
$cshow :: TargetTrackingConfiguration -> String
showsPrec :: Int -> TargetTrackingConfiguration -> ShowS
$cshowsPrec :: Int -> TargetTrackingConfiguration -> ShowS
Prelude.Show, forall x.
Rep TargetTrackingConfiguration x -> TargetTrackingConfiguration
forall x.
TargetTrackingConfiguration -> Rep TargetTrackingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TargetTrackingConfiguration x -> TargetTrackingConfiguration
$cfrom :: forall x.
TargetTrackingConfiguration -> Rep TargetTrackingConfiguration x
Prelude.Generic)
newTargetTrackingConfiguration ::
Prelude.Double ->
TargetTrackingConfiguration
newTargetTrackingConfiguration :: Double -> TargetTrackingConfiguration
newTargetTrackingConfiguration Double
pTargetValue_ =
TargetTrackingConfiguration'
{ $sel:customizedScalingMetricSpecification:TargetTrackingConfiguration' :: Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification =
forall a. Maybe a
Prelude.Nothing,
$sel:disableScaleIn:TargetTrackingConfiguration' :: Maybe Bool
disableScaleIn = forall a. Maybe a
Prelude.Nothing,
$sel:estimatedInstanceWarmup:TargetTrackingConfiguration' :: Maybe Int
estimatedInstanceWarmup = forall a. Maybe a
Prelude.Nothing,
$sel:predefinedScalingMetricSpecification:TargetTrackingConfiguration' :: Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification =
forall a. Maybe a
Prelude.Nothing,
$sel:scaleInCooldown:TargetTrackingConfiguration' :: Maybe Int
scaleInCooldown = forall a. Maybe a
Prelude.Nothing,
$sel:scaleOutCooldown:TargetTrackingConfiguration' :: Maybe Int
scaleOutCooldown = forall a. Maybe a
Prelude.Nothing,
$sel:targetValue:TargetTrackingConfiguration' :: Double
targetValue = Double
pTargetValue_
}
targetTrackingConfiguration_customizedScalingMetricSpecification :: Lens.Lens' TargetTrackingConfiguration (Prelude.Maybe CustomizedScalingMetricSpecification)
targetTrackingConfiguration_customizedScalingMetricSpecification :: Lens'
TargetTrackingConfiguration
(Maybe CustomizedScalingMetricSpecification)
targetTrackingConfiguration_customizedScalingMetricSpecification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TargetTrackingConfiguration' {Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification :: Maybe CustomizedScalingMetricSpecification
$sel:customizedScalingMetricSpecification:TargetTrackingConfiguration' :: TargetTrackingConfiguration
-> Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification} -> Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification) (\s :: TargetTrackingConfiguration
s@TargetTrackingConfiguration' {} Maybe CustomizedScalingMetricSpecification
a -> TargetTrackingConfiguration
s {$sel:customizedScalingMetricSpecification:TargetTrackingConfiguration' :: Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification = Maybe CustomizedScalingMetricSpecification
a} :: TargetTrackingConfiguration)
targetTrackingConfiguration_disableScaleIn :: Lens.Lens' TargetTrackingConfiguration (Prelude.Maybe Prelude.Bool)
targetTrackingConfiguration_disableScaleIn :: Lens' TargetTrackingConfiguration (Maybe Bool)
targetTrackingConfiguration_disableScaleIn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TargetTrackingConfiguration' {Maybe Bool
disableScaleIn :: Maybe Bool
$sel:disableScaleIn:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Bool
disableScaleIn} -> Maybe Bool
disableScaleIn) (\s :: TargetTrackingConfiguration
s@TargetTrackingConfiguration' {} Maybe Bool
a -> TargetTrackingConfiguration
s {$sel:disableScaleIn:TargetTrackingConfiguration' :: Maybe Bool
disableScaleIn = Maybe Bool
a} :: TargetTrackingConfiguration)
targetTrackingConfiguration_estimatedInstanceWarmup :: Lens.Lens' TargetTrackingConfiguration (Prelude.Maybe Prelude.Int)
targetTrackingConfiguration_estimatedInstanceWarmup :: Lens' TargetTrackingConfiguration (Maybe Int)
targetTrackingConfiguration_estimatedInstanceWarmup = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TargetTrackingConfiguration' {Maybe Int
estimatedInstanceWarmup :: Maybe Int
$sel:estimatedInstanceWarmup:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
estimatedInstanceWarmup} -> Maybe Int
estimatedInstanceWarmup) (\s :: TargetTrackingConfiguration
s@TargetTrackingConfiguration' {} Maybe Int
a -> TargetTrackingConfiguration
s {$sel:estimatedInstanceWarmup:TargetTrackingConfiguration' :: Maybe Int
estimatedInstanceWarmup = Maybe Int
a} :: TargetTrackingConfiguration)
targetTrackingConfiguration_predefinedScalingMetricSpecification :: Lens.Lens' TargetTrackingConfiguration (Prelude.Maybe PredefinedScalingMetricSpecification)
targetTrackingConfiguration_predefinedScalingMetricSpecification :: Lens'
TargetTrackingConfiguration
(Maybe PredefinedScalingMetricSpecification)
targetTrackingConfiguration_predefinedScalingMetricSpecification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TargetTrackingConfiguration' {Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification :: Maybe PredefinedScalingMetricSpecification
$sel:predefinedScalingMetricSpecification:TargetTrackingConfiguration' :: TargetTrackingConfiguration
-> Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification} -> Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification) (\s :: TargetTrackingConfiguration
s@TargetTrackingConfiguration' {} Maybe PredefinedScalingMetricSpecification
a -> TargetTrackingConfiguration
s {$sel:predefinedScalingMetricSpecification:TargetTrackingConfiguration' :: Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification = Maybe PredefinedScalingMetricSpecification
a} :: TargetTrackingConfiguration)
targetTrackingConfiguration_scaleInCooldown :: Lens.Lens' TargetTrackingConfiguration (Prelude.Maybe Prelude.Int)
targetTrackingConfiguration_scaleInCooldown :: Lens' TargetTrackingConfiguration (Maybe Int)
targetTrackingConfiguration_scaleInCooldown = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TargetTrackingConfiguration' {Maybe Int
scaleInCooldown :: Maybe Int
$sel:scaleInCooldown:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
scaleInCooldown} -> Maybe Int
scaleInCooldown) (\s :: TargetTrackingConfiguration
s@TargetTrackingConfiguration' {} Maybe Int
a -> TargetTrackingConfiguration
s {$sel:scaleInCooldown:TargetTrackingConfiguration' :: Maybe Int
scaleInCooldown = Maybe Int
a} :: TargetTrackingConfiguration)
targetTrackingConfiguration_scaleOutCooldown :: Lens.Lens' TargetTrackingConfiguration (Prelude.Maybe Prelude.Int)
targetTrackingConfiguration_scaleOutCooldown :: Lens' TargetTrackingConfiguration (Maybe Int)
targetTrackingConfiguration_scaleOutCooldown = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TargetTrackingConfiguration' {Maybe Int
scaleOutCooldown :: Maybe Int
$sel:scaleOutCooldown:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
scaleOutCooldown} -> Maybe Int
scaleOutCooldown) (\s :: TargetTrackingConfiguration
s@TargetTrackingConfiguration' {} Maybe Int
a -> TargetTrackingConfiguration
s {$sel:scaleOutCooldown:TargetTrackingConfiguration' :: Maybe Int
scaleOutCooldown = Maybe Int
a} :: TargetTrackingConfiguration)
targetTrackingConfiguration_targetValue :: Lens.Lens' TargetTrackingConfiguration Prelude.Double
targetTrackingConfiguration_targetValue :: Lens' TargetTrackingConfiguration Double
targetTrackingConfiguration_targetValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TargetTrackingConfiguration' {Double
targetValue :: Double
$sel:targetValue:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Double
targetValue} -> Double
targetValue) (\s :: TargetTrackingConfiguration
s@TargetTrackingConfiguration' {} Double
a -> TargetTrackingConfiguration
s {$sel:targetValue:TargetTrackingConfiguration' :: Double
targetValue = Double
a} :: TargetTrackingConfiguration)
instance Data.FromJSON TargetTrackingConfiguration where
parseJSON :: Value -> Parser TargetTrackingConfiguration
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"TargetTrackingConfiguration"
( \Object
x ->
Maybe CustomizedScalingMetricSpecification
-> Maybe Bool
-> Maybe Int
-> Maybe PredefinedScalingMetricSpecification
-> Maybe Int
-> Maybe Int
-> Double
-> TargetTrackingConfiguration
TargetTrackingConfiguration'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CustomizedScalingMetricSpecification")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DisableScaleIn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EstimatedInstanceWarmup")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PredefinedScalingMetricSpecification")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ScaleInCooldown")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ScaleOutCooldown")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"TargetValue")
)
instance Prelude.Hashable TargetTrackingConfiguration where
hashWithSalt :: Int -> TargetTrackingConfiguration -> Int
hashWithSalt Int
_salt TargetTrackingConfiguration' {Double
Maybe Bool
Maybe Int
Maybe CustomizedScalingMetricSpecification
Maybe PredefinedScalingMetricSpecification
targetValue :: Double
scaleOutCooldown :: Maybe Int
scaleInCooldown :: Maybe Int
predefinedScalingMetricSpecification :: Maybe PredefinedScalingMetricSpecification
estimatedInstanceWarmup :: Maybe Int
disableScaleIn :: Maybe Bool
customizedScalingMetricSpecification :: Maybe CustomizedScalingMetricSpecification
$sel:targetValue:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Double
$sel:scaleOutCooldown:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:scaleInCooldown:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:predefinedScalingMetricSpecification:TargetTrackingConfiguration' :: TargetTrackingConfiguration
-> Maybe PredefinedScalingMetricSpecification
$sel:estimatedInstanceWarmup:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:disableScaleIn:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Bool
$sel:customizedScalingMetricSpecification:TargetTrackingConfiguration' :: TargetTrackingConfiguration
-> Maybe CustomizedScalingMetricSpecification
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
disableScaleIn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
estimatedInstanceWarmup
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
scaleInCooldown
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
scaleOutCooldown
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Double
targetValue
instance Prelude.NFData TargetTrackingConfiguration where
rnf :: TargetTrackingConfiguration -> ()
rnf TargetTrackingConfiguration' {Double
Maybe Bool
Maybe Int
Maybe CustomizedScalingMetricSpecification
Maybe PredefinedScalingMetricSpecification
targetValue :: Double
scaleOutCooldown :: Maybe Int
scaleInCooldown :: Maybe Int
predefinedScalingMetricSpecification :: Maybe PredefinedScalingMetricSpecification
estimatedInstanceWarmup :: Maybe Int
disableScaleIn :: Maybe Bool
customizedScalingMetricSpecification :: Maybe CustomizedScalingMetricSpecification
$sel:targetValue:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Double
$sel:scaleOutCooldown:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:scaleInCooldown:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:predefinedScalingMetricSpecification:TargetTrackingConfiguration' :: TargetTrackingConfiguration
-> Maybe PredefinedScalingMetricSpecification
$sel:estimatedInstanceWarmup:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:disableScaleIn:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Bool
$sel:customizedScalingMetricSpecification:TargetTrackingConfiguration' :: TargetTrackingConfiguration
-> Maybe CustomizedScalingMetricSpecification
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
disableScaleIn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
estimatedInstanceWarmup
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
scaleInCooldown
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
scaleOutCooldown
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Double
targetValue
instance Data.ToJSON TargetTrackingConfiguration where
toJSON :: TargetTrackingConfiguration -> Value
toJSON TargetTrackingConfiguration' {Double
Maybe Bool
Maybe Int
Maybe CustomizedScalingMetricSpecification
Maybe PredefinedScalingMetricSpecification
targetValue :: Double
scaleOutCooldown :: Maybe Int
scaleInCooldown :: Maybe Int
predefinedScalingMetricSpecification :: Maybe PredefinedScalingMetricSpecification
estimatedInstanceWarmup :: Maybe Int
disableScaleIn :: Maybe Bool
customizedScalingMetricSpecification :: Maybe CustomizedScalingMetricSpecification
$sel:targetValue:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Double
$sel:scaleOutCooldown:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:scaleInCooldown:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:predefinedScalingMetricSpecification:TargetTrackingConfiguration' :: TargetTrackingConfiguration
-> Maybe PredefinedScalingMetricSpecification
$sel:estimatedInstanceWarmup:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Int
$sel:disableScaleIn:TargetTrackingConfiguration' :: TargetTrackingConfiguration -> Maybe Bool
$sel:customizedScalingMetricSpecification:TargetTrackingConfiguration' :: TargetTrackingConfiguration
-> Maybe CustomizedScalingMetricSpecification
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"CustomizedScalingMetricSpecification" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomizedScalingMetricSpecification
customizedScalingMetricSpecification,
(Key
"DisableScaleIn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
disableScaleIn,
(Key
"EstimatedInstanceWarmup" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
estimatedInstanceWarmup,
(Key
"PredefinedScalingMetricSpecification" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PredefinedScalingMetricSpecification
predefinedScalingMetricSpecification,
(Key
"ScaleInCooldown" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
scaleInCooldown,
(Key
"ScaleOutCooldown" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
scaleOutCooldown,
forall a. a -> Maybe a
Prelude.Just (Key
"TargetValue" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Double
targetValue)
]
)