{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CloudWatch.PutMetricAlarm
(
PutMetricAlarm (..),
newPutMetricAlarm,
putMetricAlarm_metrics,
putMetricAlarm_treatMissingData,
putMetricAlarm_period,
putMetricAlarm_alarmDescription,
putMetricAlarm_metricName,
putMetricAlarm_namespace,
putMetricAlarm_thresholdMetricId,
putMetricAlarm_oKActions,
putMetricAlarm_evaluateLowSampleCountPercentile,
putMetricAlarm_datapointsToAlarm,
putMetricAlarm_threshold,
putMetricAlarm_actionsEnabled,
putMetricAlarm_insufficientDataActions,
putMetricAlarm_dimensions,
putMetricAlarm_alarmActions,
putMetricAlarm_unit,
putMetricAlarm_statistic,
putMetricAlarm_tags,
putMetricAlarm_extendedStatistic,
putMetricAlarm_alarmName,
putMetricAlarm_evaluationPeriods,
putMetricAlarm_comparisonOperator,
PutMetricAlarmResponse (..),
newPutMetricAlarmResponse,
)
where
import Amazonka.CloudWatch.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data PutMetricAlarm = PutMetricAlarm'
{
PutMetricAlarm -> Maybe [MetricDataQuery]
metrics :: Prelude.Maybe [MetricDataQuery],
PutMetricAlarm -> Maybe Text
treatMissingData :: Prelude.Maybe Prelude.Text,
PutMetricAlarm -> Maybe Natural
period :: Prelude.Maybe Prelude.Natural,
PutMetricAlarm -> Maybe Text
alarmDescription :: Prelude.Maybe Prelude.Text,
PutMetricAlarm -> Maybe Text
metricName :: Prelude.Maybe Prelude.Text,
PutMetricAlarm -> Maybe Text
namespace :: Prelude.Maybe Prelude.Text,
PutMetricAlarm -> Maybe Text
thresholdMetricId :: Prelude.Maybe Prelude.Text,
PutMetricAlarm -> Maybe [Text]
oKActions :: Prelude.Maybe [Prelude.Text],
PutMetricAlarm -> Maybe Text
evaluateLowSampleCountPercentile :: Prelude.Maybe Prelude.Text,
PutMetricAlarm -> Maybe Natural
datapointsToAlarm :: Prelude.Maybe Prelude.Natural,
PutMetricAlarm -> Maybe Double
threshold :: Prelude.Maybe Prelude.Double,
PutMetricAlarm -> Maybe Bool
actionsEnabled :: Prelude.Maybe Prelude.Bool,
PutMetricAlarm -> Maybe [Text]
insufficientDataActions :: Prelude.Maybe [Prelude.Text],
PutMetricAlarm -> Maybe [Dimension]
dimensions :: Prelude.Maybe [Dimension],
PutMetricAlarm -> Maybe [Text]
alarmActions :: Prelude.Maybe [Prelude.Text],
PutMetricAlarm -> Maybe StandardUnit
unit :: Prelude.Maybe StandardUnit,
PutMetricAlarm -> Maybe Statistic
statistic :: Prelude.Maybe Statistic,
PutMetricAlarm -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
PutMetricAlarm -> Maybe Text
extendedStatistic :: Prelude.Maybe Prelude.Text,
PutMetricAlarm -> Text
alarmName :: Prelude.Text,
PutMetricAlarm -> Natural
evaluationPeriods :: Prelude.Natural,
PutMetricAlarm -> ComparisonOperator
comparisonOperator :: ComparisonOperator
}
deriving (PutMetricAlarm -> PutMetricAlarm -> Bool
(PutMetricAlarm -> PutMetricAlarm -> Bool)
-> (PutMetricAlarm -> PutMetricAlarm -> Bool) -> Eq PutMetricAlarm
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutMetricAlarm -> PutMetricAlarm -> Bool
$c/= :: PutMetricAlarm -> PutMetricAlarm -> Bool
== :: PutMetricAlarm -> PutMetricAlarm -> Bool
$c== :: PutMetricAlarm -> PutMetricAlarm -> Bool
Prelude.Eq, ReadPrec [PutMetricAlarm]
ReadPrec PutMetricAlarm
Int -> ReadS PutMetricAlarm
ReadS [PutMetricAlarm]
(Int -> ReadS PutMetricAlarm)
-> ReadS [PutMetricAlarm]
-> ReadPrec PutMetricAlarm
-> ReadPrec [PutMetricAlarm]
-> Read PutMetricAlarm
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutMetricAlarm]
$creadListPrec :: ReadPrec [PutMetricAlarm]
readPrec :: ReadPrec PutMetricAlarm
$creadPrec :: ReadPrec PutMetricAlarm
readList :: ReadS [PutMetricAlarm]
$creadList :: ReadS [PutMetricAlarm]
readsPrec :: Int -> ReadS PutMetricAlarm
$creadsPrec :: Int -> ReadS PutMetricAlarm
Prelude.Read, Int -> PutMetricAlarm -> ShowS
[PutMetricAlarm] -> ShowS
PutMetricAlarm -> String
(Int -> PutMetricAlarm -> ShowS)
-> (PutMetricAlarm -> String)
-> ([PutMetricAlarm] -> ShowS)
-> Show PutMetricAlarm
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutMetricAlarm] -> ShowS
$cshowList :: [PutMetricAlarm] -> ShowS
show :: PutMetricAlarm -> String
$cshow :: PutMetricAlarm -> String
showsPrec :: Int -> PutMetricAlarm -> ShowS
$cshowsPrec :: Int -> PutMetricAlarm -> ShowS
Prelude.Show, (forall x. PutMetricAlarm -> Rep PutMetricAlarm x)
-> (forall x. Rep PutMetricAlarm x -> PutMetricAlarm)
-> Generic PutMetricAlarm
forall x. Rep PutMetricAlarm x -> PutMetricAlarm
forall x. PutMetricAlarm -> Rep PutMetricAlarm x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutMetricAlarm x -> PutMetricAlarm
$cfrom :: forall x. PutMetricAlarm -> Rep PutMetricAlarm x
Prelude.Generic)
newPutMetricAlarm ::
Prelude.Text ->
Prelude.Natural ->
ComparisonOperator ->
PutMetricAlarm
newPutMetricAlarm :: Text -> Natural -> ComparisonOperator -> PutMetricAlarm
newPutMetricAlarm
Text
pAlarmName_
Natural
pEvaluationPeriods_
ComparisonOperator
pComparisonOperator_ =
PutMetricAlarm' :: Maybe [MetricDataQuery]
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Natural
-> Maybe Double
-> Maybe Bool
-> Maybe [Text]
-> Maybe [Dimension]
-> Maybe [Text]
-> Maybe StandardUnit
-> Maybe Statistic
-> Maybe [Tag]
-> Maybe Text
-> Text
-> Natural
-> ComparisonOperator
-> PutMetricAlarm
PutMetricAlarm'
{ $sel:metrics:PutMetricAlarm' :: Maybe [MetricDataQuery]
metrics = Maybe [MetricDataQuery]
forall a. Maybe a
Prelude.Nothing,
$sel:treatMissingData:PutMetricAlarm' :: Maybe Text
treatMissingData = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:period:PutMetricAlarm' :: Maybe Natural
period = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:alarmDescription:PutMetricAlarm' :: Maybe Text
alarmDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:metricName:PutMetricAlarm' :: Maybe Text
metricName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:namespace:PutMetricAlarm' :: Maybe Text
namespace = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:thresholdMetricId:PutMetricAlarm' :: Maybe Text
thresholdMetricId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:oKActions:PutMetricAlarm' :: Maybe [Text]
oKActions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:evaluateLowSampleCountPercentile:PutMetricAlarm' :: Maybe Text
evaluateLowSampleCountPercentile = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:datapointsToAlarm:PutMetricAlarm' :: Maybe Natural
datapointsToAlarm = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:threshold:PutMetricAlarm' :: Maybe Double
threshold = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:actionsEnabled:PutMetricAlarm' :: Maybe Bool
actionsEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:insufficientDataActions:PutMetricAlarm' :: Maybe [Text]
insufficientDataActions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:dimensions:PutMetricAlarm' :: Maybe [Dimension]
dimensions = Maybe [Dimension]
forall a. Maybe a
Prelude.Nothing,
$sel:alarmActions:PutMetricAlarm' :: Maybe [Text]
alarmActions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:unit:PutMetricAlarm' :: Maybe StandardUnit
unit = Maybe StandardUnit
forall a. Maybe a
Prelude.Nothing,
$sel:statistic:PutMetricAlarm' :: Maybe Statistic
statistic = Maybe Statistic
forall a. Maybe a
Prelude.Nothing,
$sel:tags:PutMetricAlarm' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:extendedStatistic:PutMetricAlarm' :: Maybe Text
extendedStatistic = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:alarmName:PutMetricAlarm' :: Text
alarmName = Text
pAlarmName_,
$sel:evaluationPeriods:PutMetricAlarm' :: Natural
evaluationPeriods = Natural
pEvaluationPeriods_,
$sel:comparisonOperator:PutMetricAlarm' :: ComparisonOperator
comparisonOperator = ComparisonOperator
pComparisonOperator_
}
putMetricAlarm_metrics :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [MetricDataQuery])
putMetricAlarm_metrics :: (Maybe [MetricDataQuery] -> f (Maybe [MetricDataQuery]))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_metrics = (PutMetricAlarm -> Maybe [MetricDataQuery])
-> (PutMetricAlarm -> Maybe [MetricDataQuery] -> PutMetricAlarm)
-> Lens
PutMetricAlarm
PutMetricAlarm
(Maybe [MetricDataQuery])
(Maybe [MetricDataQuery])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe [MetricDataQuery]
metrics :: Maybe [MetricDataQuery]
$sel:metrics:PutMetricAlarm' :: PutMetricAlarm -> Maybe [MetricDataQuery]
metrics} -> Maybe [MetricDataQuery]
metrics) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe [MetricDataQuery]
a -> PutMetricAlarm
s {$sel:metrics:PutMetricAlarm' :: Maybe [MetricDataQuery]
metrics = Maybe [MetricDataQuery]
a} :: PutMetricAlarm) ((Maybe [MetricDataQuery] -> f (Maybe [MetricDataQuery]))
-> PutMetricAlarm -> f PutMetricAlarm)
-> ((Maybe [MetricDataQuery] -> f (Maybe [MetricDataQuery]))
-> Maybe [MetricDataQuery] -> f (Maybe [MetricDataQuery]))
-> (Maybe [MetricDataQuery] -> f (Maybe [MetricDataQuery]))
-> PutMetricAlarm
-> f PutMetricAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[MetricDataQuery]
[MetricDataQuery]
[MetricDataQuery]
[MetricDataQuery]
-> Iso
(Maybe [MetricDataQuery])
(Maybe [MetricDataQuery])
(Maybe [MetricDataQuery])
(Maybe [MetricDataQuery])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[MetricDataQuery]
[MetricDataQuery]
[MetricDataQuery]
[MetricDataQuery]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putMetricAlarm_treatMissingData :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)
putMetricAlarm_treatMissingData :: (Maybe Text -> f (Maybe Text))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_treatMissingData = (PutMetricAlarm -> Maybe Text)
-> (PutMetricAlarm -> Maybe Text -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Text
treatMissingData :: Maybe Text
$sel:treatMissingData:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
treatMissingData} -> Maybe Text
treatMissingData) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Text
a -> PutMetricAlarm
s {$sel:treatMissingData:PutMetricAlarm' :: Maybe Text
treatMissingData = Maybe Text
a} :: PutMetricAlarm)
putMetricAlarm_period :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Natural)
putMetricAlarm_period :: (Maybe Natural -> f (Maybe Natural))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_period = (PutMetricAlarm -> Maybe Natural)
-> (PutMetricAlarm -> Maybe Natural -> PutMetricAlarm)
-> Lens
PutMetricAlarm PutMetricAlarm (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Natural
period :: Maybe Natural
$sel:period:PutMetricAlarm' :: PutMetricAlarm -> Maybe Natural
period} -> Maybe Natural
period) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Natural
a -> PutMetricAlarm
s {$sel:period:PutMetricAlarm' :: Maybe Natural
period = Maybe Natural
a} :: PutMetricAlarm)
putMetricAlarm_alarmDescription :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)
putMetricAlarm_alarmDescription :: (Maybe Text -> f (Maybe Text))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_alarmDescription = (PutMetricAlarm -> Maybe Text)
-> (PutMetricAlarm -> Maybe Text -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Text
alarmDescription :: Maybe Text
$sel:alarmDescription:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
alarmDescription} -> Maybe Text
alarmDescription) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Text
a -> PutMetricAlarm
s {$sel:alarmDescription:PutMetricAlarm' :: Maybe Text
alarmDescription = Maybe Text
a} :: PutMetricAlarm)
putMetricAlarm_metricName :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)
putMetricAlarm_metricName :: (Maybe Text -> f (Maybe Text))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_metricName = (PutMetricAlarm -> Maybe Text)
-> (PutMetricAlarm -> Maybe Text -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Text
metricName :: Maybe Text
$sel:metricName:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
metricName} -> Maybe Text
metricName) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Text
a -> PutMetricAlarm
s {$sel:metricName:PutMetricAlarm' :: Maybe Text
metricName = Maybe Text
a} :: PutMetricAlarm)
putMetricAlarm_namespace :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)
putMetricAlarm_namespace :: (Maybe Text -> f (Maybe Text))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_namespace = (PutMetricAlarm -> Maybe Text)
-> (PutMetricAlarm -> Maybe Text -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Text
namespace :: Maybe Text
$sel:namespace:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
namespace} -> Maybe Text
namespace) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Text
a -> PutMetricAlarm
s {$sel:namespace:PutMetricAlarm' :: Maybe Text
namespace = Maybe Text
a} :: PutMetricAlarm)
putMetricAlarm_thresholdMetricId :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)
putMetricAlarm_thresholdMetricId :: (Maybe Text -> f (Maybe Text))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_thresholdMetricId = (PutMetricAlarm -> Maybe Text)
-> (PutMetricAlarm -> Maybe Text -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Text
thresholdMetricId :: Maybe Text
$sel:thresholdMetricId:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
thresholdMetricId} -> Maybe Text
thresholdMetricId) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Text
a -> PutMetricAlarm
s {$sel:thresholdMetricId:PutMetricAlarm' :: Maybe Text
thresholdMetricId = Maybe Text
a} :: PutMetricAlarm)
putMetricAlarm_oKActions :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Prelude.Text])
putMetricAlarm_oKActions :: (Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_oKActions = (PutMetricAlarm -> Maybe [Text])
-> (PutMetricAlarm -> Maybe [Text] -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe [Text]
oKActions :: Maybe [Text]
$sel:oKActions:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Text]
oKActions} -> Maybe [Text]
oKActions) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe [Text]
a -> PutMetricAlarm
s {$sel:oKActions:PutMetricAlarm' :: Maybe [Text]
oKActions = Maybe [Text]
a} :: PutMetricAlarm) ((Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm -> f PutMetricAlarm)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm
-> f PutMetricAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putMetricAlarm_evaluateLowSampleCountPercentile :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)
putMetricAlarm_evaluateLowSampleCountPercentile :: (Maybe Text -> f (Maybe Text))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_evaluateLowSampleCountPercentile = (PutMetricAlarm -> Maybe Text)
-> (PutMetricAlarm -> Maybe Text -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Text
evaluateLowSampleCountPercentile :: Maybe Text
$sel:evaluateLowSampleCountPercentile:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
evaluateLowSampleCountPercentile} -> Maybe Text
evaluateLowSampleCountPercentile) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Text
a -> PutMetricAlarm
s {$sel:evaluateLowSampleCountPercentile:PutMetricAlarm' :: Maybe Text
evaluateLowSampleCountPercentile = Maybe Text
a} :: PutMetricAlarm)
putMetricAlarm_datapointsToAlarm :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Natural)
putMetricAlarm_datapointsToAlarm :: (Maybe Natural -> f (Maybe Natural))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_datapointsToAlarm = (PutMetricAlarm -> Maybe Natural)
-> (PutMetricAlarm -> Maybe Natural -> PutMetricAlarm)
-> Lens
PutMetricAlarm PutMetricAlarm (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Natural
datapointsToAlarm :: Maybe Natural
$sel:datapointsToAlarm:PutMetricAlarm' :: PutMetricAlarm -> Maybe Natural
datapointsToAlarm} -> Maybe Natural
datapointsToAlarm) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Natural
a -> PutMetricAlarm
s {$sel:datapointsToAlarm:PutMetricAlarm' :: Maybe Natural
datapointsToAlarm = Maybe Natural
a} :: PutMetricAlarm)
putMetricAlarm_threshold :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Double)
putMetricAlarm_threshold :: (Maybe Double -> f (Maybe Double))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_threshold = (PutMetricAlarm -> Maybe Double)
-> (PutMetricAlarm -> Maybe Double -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Double
threshold :: Maybe Double
$sel:threshold:PutMetricAlarm' :: PutMetricAlarm -> Maybe Double
threshold} -> Maybe Double
threshold) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Double
a -> PutMetricAlarm
s {$sel:threshold:PutMetricAlarm' :: Maybe Double
threshold = Maybe Double
a} :: PutMetricAlarm)
putMetricAlarm_actionsEnabled :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Bool)
putMetricAlarm_actionsEnabled :: (Maybe Bool -> f (Maybe Bool))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_actionsEnabled = (PutMetricAlarm -> Maybe Bool)
-> (PutMetricAlarm -> Maybe Bool -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Bool
actionsEnabled :: Maybe Bool
$sel:actionsEnabled:PutMetricAlarm' :: PutMetricAlarm -> Maybe Bool
actionsEnabled} -> Maybe Bool
actionsEnabled) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Bool
a -> PutMetricAlarm
s {$sel:actionsEnabled:PutMetricAlarm' :: Maybe Bool
actionsEnabled = Maybe Bool
a} :: PutMetricAlarm)
putMetricAlarm_insufficientDataActions :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Prelude.Text])
putMetricAlarm_insufficientDataActions :: (Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_insufficientDataActions = (PutMetricAlarm -> Maybe [Text])
-> (PutMetricAlarm -> Maybe [Text] -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe [Text]
insufficientDataActions :: Maybe [Text]
$sel:insufficientDataActions:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Text]
insufficientDataActions} -> Maybe [Text]
insufficientDataActions) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe [Text]
a -> PutMetricAlarm
s {$sel:insufficientDataActions:PutMetricAlarm' :: Maybe [Text]
insufficientDataActions = Maybe [Text]
a} :: PutMetricAlarm) ((Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm -> f PutMetricAlarm)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm
-> f PutMetricAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putMetricAlarm_dimensions :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Dimension])
putMetricAlarm_dimensions :: (Maybe [Dimension] -> f (Maybe [Dimension]))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_dimensions = (PutMetricAlarm -> Maybe [Dimension])
-> (PutMetricAlarm -> Maybe [Dimension] -> PutMetricAlarm)
-> Lens
PutMetricAlarm
PutMetricAlarm
(Maybe [Dimension])
(Maybe [Dimension])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe [Dimension]
dimensions :: Maybe [Dimension]
$sel:dimensions:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Dimension]
dimensions} -> Maybe [Dimension]
dimensions) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe [Dimension]
a -> PutMetricAlarm
s {$sel:dimensions:PutMetricAlarm' :: Maybe [Dimension]
dimensions = Maybe [Dimension]
a} :: PutMetricAlarm) ((Maybe [Dimension] -> f (Maybe [Dimension]))
-> PutMetricAlarm -> f PutMetricAlarm)
-> ((Maybe [Dimension] -> f (Maybe [Dimension]))
-> Maybe [Dimension] -> f (Maybe [Dimension]))
-> (Maybe [Dimension] -> f (Maybe [Dimension]))
-> PutMetricAlarm
-> f PutMetricAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Dimension] [Dimension] [Dimension] [Dimension]
-> Iso
(Maybe [Dimension])
(Maybe [Dimension])
(Maybe [Dimension])
(Maybe [Dimension])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Dimension] [Dimension] [Dimension] [Dimension]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putMetricAlarm_alarmActions :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Prelude.Text])
putMetricAlarm_alarmActions :: (Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_alarmActions = (PutMetricAlarm -> Maybe [Text])
-> (PutMetricAlarm -> Maybe [Text] -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe [Text]
alarmActions :: Maybe [Text]
$sel:alarmActions:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Text]
alarmActions} -> Maybe [Text]
alarmActions) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe [Text]
a -> PutMetricAlarm
s {$sel:alarmActions:PutMetricAlarm' :: Maybe [Text]
alarmActions = Maybe [Text]
a} :: PutMetricAlarm) ((Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm -> f PutMetricAlarm)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> PutMetricAlarm
-> f PutMetricAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putMetricAlarm_unit :: Lens.Lens' PutMetricAlarm (Prelude.Maybe StandardUnit)
putMetricAlarm_unit :: (Maybe StandardUnit -> f (Maybe StandardUnit))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_unit = (PutMetricAlarm -> Maybe StandardUnit)
-> (PutMetricAlarm -> Maybe StandardUnit -> PutMetricAlarm)
-> Lens
PutMetricAlarm
PutMetricAlarm
(Maybe StandardUnit)
(Maybe StandardUnit)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe StandardUnit
unit :: Maybe StandardUnit
$sel:unit:PutMetricAlarm' :: PutMetricAlarm -> Maybe StandardUnit
unit} -> Maybe StandardUnit
unit) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe StandardUnit
a -> PutMetricAlarm
s {$sel:unit:PutMetricAlarm' :: Maybe StandardUnit
unit = Maybe StandardUnit
a} :: PutMetricAlarm)
putMetricAlarm_statistic :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Statistic)
putMetricAlarm_statistic :: (Maybe Statistic -> f (Maybe Statistic))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_statistic = (PutMetricAlarm -> Maybe Statistic)
-> (PutMetricAlarm -> Maybe Statistic -> PutMetricAlarm)
-> Lens
PutMetricAlarm PutMetricAlarm (Maybe Statistic) (Maybe Statistic)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Statistic
statistic :: Maybe Statistic
$sel:statistic:PutMetricAlarm' :: PutMetricAlarm -> Maybe Statistic
statistic} -> Maybe Statistic
statistic) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Statistic
a -> PutMetricAlarm
s {$sel:statistic:PutMetricAlarm' :: Maybe Statistic
statistic = Maybe Statistic
a} :: PutMetricAlarm)
putMetricAlarm_tags :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Tag])
putMetricAlarm_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_tags = (PutMetricAlarm -> Maybe [Tag])
-> (PutMetricAlarm -> Maybe [Tag] -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe [Tag]
a -> PutMetricAlarm
s {$sel:tags:PutMetricAlarm' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: PutMetricAlarm) ((Maybe [Tag] -> f (Maybe [Tag]))
-> PutMetricAlarm -> f PutMetricAlarm)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> PutMetricAlarm
-> f PutMetricAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putMetricAlarm_extendedStatistic :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)
putMetricAlarm_extendedStatistic :: (Maybe Text -> f (Maybe Text))
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_extendedStatistic = (PutMetricAlarm -> Maybe Text)
-> (PutMetricAlarm -> Maybe Text -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Maybe Text
extendedStatistic :: Maybe Text
$sel:extendedStatistic:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
extendedStatistic} -> Maybe Text
extendedStatistic) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Maybe Text
a -> PutMetricAlarm
s {$sel:extendedStatistic:PutMetricAlarm' :: Maybe Text
extendedStatistic = Maybe Text
a} :: PutMetricAlarm)
putMetricAlarm_alarmName :: Lens.Lens' PutMetricAlarm Prelude.Text
putMetricAlarm_alarmName :: (Text -> f Text) -> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_alarmName = (PutMetricAlarm -> Text)
-> (PutMetricAlarm -> Text -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Text
alarmName :: Text
$sel:alarmName:PutMetricAlarm' :: PutMetricAlarm -> Text
alarmName} -> Text
alarmName) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Text
a -> PutMetricAlarm
s {$sel:alarmName:PutMetricAlarm' :: Text
alarmName = Text
a} :: PutMetricAlarm)
putMetricAlarm_evaluationPeriods :: Lens.Lens' PutMetricAlarm Prelude.Natural
putMetricAlarm_evaluationPeriods :: (Natural -> f Natural) -> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_evaluationPeriods = (PutMetricAlarm -> Natural)
-> (PutMetricAlarm -> Natural -> PutMetricAlarm)
-> Lens PutMetricAlarm PutMetricAlarm Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {Natural
evaluationPeriods :: Natural
$sel:evaluationPeriods:PutMetricAlarm' :: PutMetricAlarm -> Natural
evaluationPeriods} -> Natural
evaluationPeriods) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} Natural
a -> PutMetricAlarm
s {$sel:evaluationPeriods:PutMetricAlarm' :: Natural
evaluationPeriods = Natural
a} :: PutMetricAlarm)
putMetricAlarm_comparisonOperator :: Lens.Lens' PutMetricAlarm ComparisonOperator
putMetricAlarm_comparisonOperator :: (ComparisonOperator -> f ComparisonOperator)
-> PutMetricAlarm -> f PutMetricAlarm
putMetricAlarm_comparisonOperator = (PutMetricAlarm -> ComparisonOperator)
-> (PutMetricAlarm -> ComparisonOperator -> PutMetricAlarm)
-> Lens
PutMetricAlarm PutMetricAlarm ComparisonOperator ComparisonOperator
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMetricAlarm' {ComparisonOperator
comparisonOperator :: ComparisonOperator
$sel:comparisonOperator:PutMetricAlarm' :: PutMetricAlarm -> ComparisonOperator
comparisonOperator} -> ComparisonOperator
comparisonOperator) (\s :: PutMetricAlarm
s@PutMetricAlarm' {} ComparisonOperator
a -> PutMetricAlarm
s {$sel:comparisonOperator:PutMetricAlarm' :: ComparisonOperator
comparisonOperator = ComparisonOperator
a} :: PutMetricAlarm)
instance Core.AWSRequest PutMetricAlarm where
type
AWSResponse PutMetricAlarm =
PutMetricAlarmResponse
request :: PutMetricAlarm -> Request PutMetricAlarm
request = Service -> PutMetricAlarm -> Request PutMetricAlarm
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy PutMetricAlarm
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutMetricAlarm)))
response =
AWSResponse PutMetricAlarm
-> Logger
-> Service
-> Proxy PutMetricAlarm
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutMetricAlarm)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse PutMetricAlarm
PutMetricAlarmResponse
PutMetricAlarmResponse'
instance Prelude.Hashable PutMetricAlarm
instance Prelude.NFData PutMetricAlarm
instance Core.ToHeaders PutMetricAlarm where
toHeaders :: PutMetricAlarm -> [Header]
toHeaders = [Header] -> PutMetricAlarm -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath PutMetricAlarm where
toPath :: PutMetricAlarm -> ByteString
toPath = ByteString -> PutMetricAlarm -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PutMetricAlarm where
toQuery :: PutMetricAlarm -> QueryString
toQuery PutMetricAlarm' {Natural
Maybe Bool
Maybe Double
Maybe Natural
Maybe [Text]
Maybe [Dimension]
Maybe [MetricDataQuery]
Maybe [Tag]
Maybe Text
Maybe StandardUnit
Maybe Statistic
Text
ComparisonOperator
comparisonOperator :: ComparisonOperator
evaluationPeriods :: Natural
alarmName :: Text
extendedStatistic :: Maybe Text
tags :: Maybe [Tag]
statistic :: Maybe Statistic
unit :: Maybe StandardUnit
alarmActions :: Maybe [Text]
dimensions :: Maybe [Dimension]
insufficientDataActions :: Maybe [Text]
actionsEnabled :: Maybe Bool
threshold :: Maybe Double
datapointsToAlarm :: Maybe Natural
evaluateLowSampleCountPercentile :: Maybe Text
oKActions :: Maybe [Text]
thresholdMetricId :: Maybe Text
namespace :: Maybe Text
metricName :: Maybe Text
alarmDescription :: Maybe Text
period :: Maybe Natural
treatMissingData :: Maybe Text
metrics :: Maybe [MetricDataQuery]
$sel:comparisonOperator:PutMetricAlarm' :: PutMetricAlarm -> ComparisonOperator
$sel:evaluationPeriods:PutMetricAlarm' :: PutMetricAlarm -> Natural
$sel:alarmName:PutMetricAlarm' :: PutMetricAlarm -> Text
$sel:extendedStatistic:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
$sel:tags:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Tag]
$sel:statistic:PutMetricAlarm' :: PutMetricAlarm -> Maybe Statistic
$sel:unit:PutMetricAlarm' :: PutMetricAlarm -> Maybe StandardUnit
$sel:alarmActions:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Text]
$sel:dimensions:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Dimension]
$sel:insufficientDataActions:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Text]
$sel:actionsEnabled:PutMetricAlarm' :: PutMetricAlarm -> Maybe Bool
$sel:threshold:PutMetricAlarm' :: PutMetricAlarm -> Maybe Double
$sel:datapointsToAlarm:PutMetricAlarm' :: PutMetricAlarm -> Maybe Natural
$sel:evaluateLowSampleCountPercentile:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
$sel:oKActions:PutMetricAlarm' :: PutMetricAlarm -> Maybe [Text]
$sel:thresholdMetricId:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
$sel:namespace:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
$sel:metricName:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
$sel:alarmDescription:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
$sel:period:PutMetricAlarm' :: PutMetricAlarm -> Maybe Natural
$sel:treatMissingData:PutMetricAlarm' :: PutMetricAlarm -> Maybe Text
$sel:metrics:PutMetricAlarm' :: PutMetricAlarm -> Maybe [MetricDataQuery]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"PutMetricAlarm" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-08-01" :: Prelude.ByteString),
ByteString
"Metrics"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [MetricDataQuery] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([MetricDataQuery] -> QueryString)
-> Maybe [MetricDataQuery] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricDataQuery]
metrics),
ByteString
"TreatMissingData" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
treatMissingData,
ByteString
"Period" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
period,
ByteString
"AlarmDescription" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
alarmDescription,
ByteString
"MetricName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
metricName,
ByteString
"Namespace" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
namespace,
ByteString
"ThresholdMetricId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
thresholdMetricId,
ByteString
"OKActions"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
oKActions),
ByteString
"EvaluateLowSampleCountPercentile"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
evaluateLowSampleCountPercentile,
ByteString
"DatapointsToAlarm" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
datapointsToAlarm,
ByteString
"Threshold" ByteString -> Maybe Double -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Double
threshold,
ByteString
"ActionsEnabled" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
actionsEnabled,
ByteString
"InsufficientDataActions"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
insufficientDataActions
),
ByteString
"Dimensions"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Dimension] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Dimension] -> QueryString)
-> Maybe [Dimension] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Dimension]
dimensions),
ByteString
"AlarmActions"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
alarmActions),
ByteString
"Unit" ByteString -> Maybe StandardUnit -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe StandardUnit
unit,
ByteString
"Statistic" ByteString -> Maybe Statistic -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Statistic
statistic,
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"ExtendedStatistic" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
extendedStatistic,
ByteString
"AlarmName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
alarmName,
ByteString
"EvaluationPeriods" ByteString -> Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Natural
evaluationPeriods,
ByteString
"ComparisonOperator" ByteString -> ComparisonOperator -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ComparisonOperator
comparisonOperator
]
data PutMetricAlarmResponse = PutMetricAlarmResponse'
{
}
deriving (PutMetricAlarmResponse -> PutMetricAlarmResponse -> Bool
(PutMetricAlarmResponse -> PutMetricAlarmResponse -> Bool)
-> (PutMetricAlarmResponse -> PutMetricAlarmResponse -> Bool)
-> Eq PutMetricAlarmResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutMetricAlarmResponse -> PutMetricAlarmResponse -> Bool
$c/= :: PutMetricAlarmResponse -> PutMetricAlarmResponse -> Bool
== :: PutMetricAlarmResponse -> PutMetricAlarmResponse -> Bool
$c== :: PutMetricAlarmResponse -> PutMetricAlarmResponse -> Bool
Prelude.Eq, ReadPrec [PutMetricAlarmResponse]
ReadPrec PutMetricAlarmResponse
Int -> ReadS PutMetricAlarmResponse
ReadS [PutMetricAlarmResponse]
(Int -> ReadS PutMetricAlarmResponse)
-> ReadS [PutMetricAlarmResponse]
-> ReadPrec PutMetricAlarmResponse
-> ReadPrec [PutMetricAlarmResponse]
-> Read PutMetricAlarmResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutMetricAlarmResponse]
$creadListPrec :: ReadPrec [PutMetricAlarmResponse]
readPrec :: ReadPrec PutMetricAlarmResponse
$creadPrec :: ReadPrec PutMetricAlarmResponse
readList :: ReadS [PutMetricAlarmResponse]
$creadList :: ReadS [PutMetricAlarmResponse]
readsPrec :: Int -> ReadS PutMetricAlarmResponse
$creadsPrec :: Int -> ReadS PutMetricAlarmResponse
Prelude.Read, Int -> PutMetricAlarmResponse -> ShowS
[PutMetricAlarmResponse] -> ShowS
PutMetricAlarmResponse -> String
(Int -> PutMetricAlarmResponse -> ShowS)
-> (PutMetricAlarmResponse -> String)
-> ([PutMetricAlarmResponse] -> ShowS)
-> Show PutMetricAlarmResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutMetricAlarmResponse] -> ShowS
$cshowList :: [PutMetricAlarmResponse] -> ShowS
show :: PutMetricAlarmResponse -> String
$cshow :: PutMetricAlarmResponse -> String
showsPrec :: Int -> PutMetricAlarmResponse -> ShowS
$cshowsPrec :: Int -> PutMetricAlarmResponse -> ShowS
Prelude.Show, (forall x. PutMetricAlarmResponse -> Rep PutMetricAlarmResponse x)
-> (forall x.
Rep PutMetricAlarmResponse x -> PutMetricAlarmResponse)
-> Generic PutMetricAlarmResponse
forall x. Rep PutMetricAlarmResponse x -> PutMetricAlarmResponse
forall x. PutMetricAlarmResponse -> Rep PutMetricAlarmResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutMetricAlarmResponse x -> PutMetricAlarmResponse
$cfrom :: forall x. PutMetricAlarmResponse -> Rep PutMetricAlarmResponse x
Prelude.Generic)
newPutMetricAlarmResponse ::
PutMetricAlarmResponse
newPutMetricAlarmResponse :: PutMetricAlarmResponse
newPutMetricAlarmResponse = PutMetricAlarmResponse
PutMetricAlarmResponse'
instance Prelude.NFData PutMetricAlarmResponse