{-# 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.DevOpsGuru.Types.ProactiveAnomaly where
import qualified Amazonka.Core as Core
import Amazonka.DevOpsGuru.Types.AnomalyReportedTimeRange
import Amazonka.DevOpsGuru.Types.AnomalySeverity
import Amazonka.DevOpsGuru.Types.AnomalySourceDetails
import Amazonka.DevOpsGuru.Types.AnomalyStatus
import Amazonka.DevOpsGuru.Types.AnomalyTimeRange
import Amazonka.DevOpsGuru.Types.PredictionTimeRange
import Amazonka.DevOpsGuru.Types.ResourceCollection
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ProactiveAnomaly = ProactiveAnomaly'
{
ProactiveAnomaly -> Maybe AnomalyReportedTimeRange
anomalyReportedTimeRange :: Prelude.Maybe AnomalyReportedTimeRange,
ProactiveAnomaly -> Maybe AnomalyStatus
status :: Prelude.Maybe AnomalyStatus,
ProactiveAnomaly -> Maybe ResourceCollection
resourceCollection :: Prelude.Maybe ResourceCollection,
ProactiveAnomaly -> Maybe AnomalySeverity
severity :: Prelude.Maybe AnomalySeverity,
ProactiveAnomaly -> Maybe POSIX
updateTime :: Prelude.Maybe Core.POSIX,
ProactiveAnomaly -> Maybe AnomalySourceDetails
sourceDetails :: Prelude.Maybe AnomalySourceDetails,
ProactiveAnomaly -> Maybe PredictionTimeRange
predictionTimeRange :: Prelude.Maybe PredictionTimeRange,
ProactiveAnomaly -> Maybe Double
limit :: Prelude.Maybe Prelude.Double,
ProactiveAnomaly -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
ProactiveAnomaly -> Maybe Text
associatedInsightId :: Prelude.Maybe Prelude.Text,
ProactiveAnomaly -> Maybe AnomalyTimeRange
anomalyTimeRange :: Prelude.Maybe AnomalyTimeRange
}
deriving (ProactiveAnomaly -> ProactiveAnomaly -> Bool
(ProactiveAnomaly -> ProactiveAnomaly -> Bool)
-> (ProactiveAnomaly -> ProactiveAnomaly -> Bool)
-> Eq ProactiveAnomaly
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProactiveAnomaly -> ProactiveAnomaly -> Bool
$c/= :: ProactiveAnomaly -> ProactiveAnomaly -> Bool
== :: ProactiveAnomaly -> ProactiveAnomaly -> Bool
$c== :: ProactiveAnomaly -> ProactiveAnomaly -> Bool
Prelude.Eq, ReadPrec [ProactiveAnomaly]
ReadPrec ProactiveAnomaly
Int -> ReadS ProactiveAnomaly
ReadS [ProactiveAnomaly]
(Int -> ReadS ProactiveAnomaly)
-> ReadS [ProactiveAnomaly]
-> ReadPrec ProactiveAnomaly
-> ReadPrec [ProactiveAnomaly]
-> Read ProactiveAnomaly
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProactiveAnomaly]
$creadListPrec :: ReadPrec [ProactiveAnomaly]
readPrec :: ReadPrec ProactiveAnomaly
$creadPrec :: ReadPrec ProactiveAnomaly
readList :: ReadS [ProactiveAnomaly]
$creadList :: ReadS [ProactiveAnomaly]
readsPrec :: Int -> ReadS ProactiveAnomaly
$creadsPrec :: Int -> ReadS ProactiveAnomaly
Prelude.Read, Int -> ProactiveAnomaly -> ShowS
[ProactiveAnomaly] -> ShowS
ProactiveAnomaly -> String
(Int -> ProactiveAnomaly -> ShowS)
-> (ProactiveAnomaly -> String)
-> ([ProactiveAnomaly] -> ShowS)
-> Show ProactiveAnomaly
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProactiveAnomaly] -> ShowS
$cshowList :: [ProactiveAnomaly] -> ShowS
show :: ProactiveAnomaly -> String
$cshow :: ProactiveAnomaly -> String
showsPrec :: Int -> ProactiveAnomaly -> ShowS
$cshowsPrec :: Int -> ProactiveAnomaly -> ShowS
Prelude.Show, (forall x. ProactiveAnomaly -> Rep ProactiveAnomaly x)
-> (forall x. Rep ProactiveAnomaly x -> ProactiveAnomaly)
-> Generic ProactiveAnomaly
forall x. Rep ProactiveAnomaly x -> ProactiveAnomaly
forall x. ProactiveAnomaly -> Rep ProactiveAnomaly x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProactiveAnomaly x -> ProactiveAnomaly
$cfrom :: forall x. ProactiveAnomaly -> Rep ProactiveAnomaly x
Prelude.Generic)
newProactiveAnomaly ::
ProactiveAnomaly
newProactiveAnomaly :: ProactiveAnomaly
newProactiveAnomaly =
ProactiveAnomaly' :: Maybe AnomalyReportedTimeRange
-> Maybe AnomalyStatus
-> Maybe ResourceCollection
-> Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly
ProactiveAnomaly'
{ $sel:anomalyReportedTimeRange:ProactiveAnomaly' :: Maybe AnomalyReportedTimeRange
anomalyReportedTimeRange =
Maybe AnomalyReportedTimeRange
forall a. Maybe a
Prelude.Nothing,
$sel:status:ProactiveAnomaly' :: Maybe AnomalyStatus
status = Maybe AnomalyStatus
forall a. Maybe a
Prelude.Nothing,
$sel:resourceCollection:ProactiveAnomaly' :: Maybe ResourceCollection
resourceCollection = Maybe ResourceCollection
forall a. Maybe a
Prelude.Nothing,
$sel:severity:ProactiveAnomaly' :: Maybe AnomalySeverity
severity = Maybe AnomalySeverity
forall a. Maybe a
Prelude.Nothing,
$sel:updateTime:ProactiveAnomaly' :: Maybe POSIX
updateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:sourceDetails:ProactiveAnomaly' :: Maybe AnomalySourceDetails
sourceDetails = Maybe AnomalySourceDetails
forall a. Maybe a
Prelude.Nothing,
$sel:predictionTimeRange:ProactiveAnomaly' :: Maybe PredictionTimeRange
predictionTimeRange = Maybe PredictionTimeRange
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ProactiveAnomaly' :: Maybe Double
limit = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:id:ProactiveAnomaly' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:associatedInsightId:ProactiveAnomaly' :: Maybe Text
associatedInsightId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:anomalyTimeRange:ProactiveAnomaly' :: Maybe AnomalyTimeRange
anomalyTimeRange = Maybe AnomalyTimeRange
forall a. Maybe a
Prelude.Nothing
}
proactiveAnomaly_anomalyReportedTimeRange :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe AnomalyReportedTimeRange)
proactiveAnomaly_anomalyReportedTimeRange :: (Maybe AnomalyReportedTimeRange
-> f (Maybe AnomalyReportedTimeRange))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_anomalyReportedTimeRange = (ProactiveAnomaly -> Maybe AnomalyReportedTimeRange)
-> (ProactiveAnomaly
-> Maybe AnomalyReportedTimeRange -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly
ProactiveAnomaly
(Maybe AnomalyReportedTimeRange)
(Maybe AnomalyReportedTimeRange)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe AnomalyReportedTimeRange
anomalyReportedTimeRange :: Maybe AnomalyReportedTimeRange
$sel:anomalyReportedTimeRange:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe AnomalyReportedTimeRange
anomalyReportedTimeRange} -> Maybe AnomalyReportedTimeRange
anomalyReportedTimeRange) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe AnomalyReportedTimeRange
a -> ProactiveAnomaly
s {$sel:anomalyReportedTimeRange:ProactiveAnomaly' :: Maybe AnomalyReportedTimeRange
anomalyReportedTimeRange = Maybe AnomalyReportedTimeRange
a} :: ProactiveAnomaly)
proactiveAnomaly_status :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe AnomalyStatus)
proactiveAnomaly_status :: (Maybe AnomalyStatus -> f (Maybe AnomalyStatus))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_status = (ProactiveAnomaly -> Maybe AnomalyStatus)
-> (ProactiveAnomaly -> Maybe AnomalyStatus -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly
ProactiveAnomaly
(Maybe AnomalyStatus)
(Maybe AnomalyStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe AnomalyStatus
status :: Maybe AnomalyStatus
$sel:status:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe AnomalyStatus
status} -> Maybe AnomalyStatus
status) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe AnomalyStatus
a -> ProactiveAnomaly
s {$sel:status:ProactiveAnomaly' :: Maybe AnomalyStatus
status = Maybe AnomalyStatus
a} :: ProactiveAnomaly)
proactiveAnomaly_resourceCollection :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe ResourceCollection)
proactiveAnomaly_resourceCollection :: (Maybe ResourceCollection -> f (Maybe ResourceCollection))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_resourceCollection = (ProactiveAnomaly -> Maybe ResourceCollection)
-> (ProactiveAnomaly
-> Maybe ResourceCollection -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly
ProactiveAnomaly
(Maybe ResourceCollection)
(Maybe ResourceCollection)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe ResourceCollection
resourceCollection :: Maybe ResourceCollection
$sel:resourceCollection:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe ResourceCollection
resourceCollection} -> Maybe ResourceCollection
resourceCollection) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe ResourceCollection
a -> ProactiveAnomaly
s {$sel:resourceCollection:ProactiveAnomaly' :: Maybe ResourceCollection
resourceCollection = Maybe ResourceCollection
a} :: ProactiveAnomaly)
proactiveAnomaly_severity :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe AnomalySeverity)
proactiveAnomaly_severity :: (Maybe AnomalySeverity -> f (Maybe AnomalySeverity))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_severity = (ProactiveAnomaly -> Maybe AnomalySeverity)
-> (ProactiveAnomaly -> Maybe AnomalySeverity -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly
ProactiveAnomaly
(Maybe AnomalySeverity)
(Maybe AnomalySeverity)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe AnomalySeverity
severity :: Maybe AnomalySeverity
$sel:severity:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe AnomalySeverity
severity} -> Maybe AnomalySeverity
severity) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe AnomalySeverity
a -> ProactiveAnomaly
s {$sel:severity:ProactiveAnomaly' :: Maybe AnomalySeverity
severity = Maybe AnomalySeverity
a} :: ProactiveAnomaly)
proactiveAnomaly_updateTime :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe Prelude.UTCTime)
proactiveAnomaly_updateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_updateTime = (ProactiveAnomaly -> Maybe POSIX)
-> (ProactiveAnomaly -> Maybe POSIX -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly ProactiveAnomaly (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe POSIX
updateTime :: Maybe POSIX
$sel:updateTime:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe POSIX
updateTime} -> Maybe POSIX
updateTime) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe POSIX
a -> ProactiveAnomaly
s {$sel:updateTime:ProactiveAnomaly' :: Maybe POSIX
updateTime = Maybe POSIX
a} :: ProactiveAnomaly) ((Maybe POSIX -> f (Maybe POSIX))
-> ProactiveAnomaly -> f ProactiveAnomaly)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ProactiveAnomaly
-> f ProactiveAnomaly
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
proactiveAnomaly_sourceDetails :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe AnomalySourceDetails)
proactiveAnomaly_sourceDetails :: (Maybe AnomalySourceDetails -> f (Maybe AnomalySourceDetails))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_sourceDetails = (ProactiveAnomaly -> Maybe AnomalySourceDetails)
-> (ProactiveAnomaly
-> Maybe AnomalySourceDetails -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly
ProactiveAnomaly
(Maybe AnomalySourceDetails)
(Maybe AnomalySourceDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe AnomalySourceDetails
sourceDetails :: Maybe AnomalySourceDetails
$sel:sourceDetails:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe AnomalySourceDetails
sourceDetails} -> Maybe AnomalySourceDetails
sourceDetails) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe AnomalySourceDetails
a -> ProactiveAnomaly
s {$sel:sourceDetails:ProactiveAnomaly' :: Maybe AnomalySourceDetails
sourceDetails = Maybe AnomalySourceDetails
a} :: ProactiveAnomaly)
proactiveAnomaly_predictionTimeRange :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe PredictionTimeRange)
proactiveAnomaly_predictionTimeRange :: (Maybe PredictionTimeRange -> f (Maybe PredictionTimeRange))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_predictionTimeRange = (ProactiveAnomaly -> Maybe PredictionTimeRange)
-> (ProactiveAnomaly
-> Maybe PredictionTimeRange -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly
ProactiveAnomaly
(Maybe PredictionTimeRange)
(Maybe PredictionTimeRange)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe PredictionTimeRange
predictionTimeRange :: Maybe PredictionTimeRange
$sel:predictionTimeRange:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe PredictionTimeRange
predictionTimeRange} -> Maybe PredictionTimeRange
predictionTimeRange) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe PredictionTimeRange
a -> ProactiveAnomaly
s {$sel:predictionTimeRange:ProactiveAnomaly' :: Maybe PredictionTimeRange
predictionTimeRange = Maybe PredictionTimeRange
a} :: ProactiveAnomaly)
proactiveAnomaly_limit :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe Prelude.Double)
proactiveAnomaly_limit :: (Maybe Double -> f (Maybe Double))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_limit = (ProactiveAnomaly -> Maybe Double)
-> (ProactiveAnomaly -> Maybe Double -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly ProactiveAnomaly (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe Double
limit :: Maybe Double
$sel:limit:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe Double
limit} -> Maybe Double
limit) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe Double
a -> ProactiveAnomaly
s {$sel:limit:ProactiveAnomaly' :: Maybe Double
limit = Maybe Double
a} :: ProactiveAnomaly)
proactiveAnomaly_id :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe Prelude.Text)
proactiveAnomaly_id :: (Maybe Text -> f (Maybe Text))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_id = (ProactiveAnomaly -> Maybe Text)
-> (ProactiveAnomaly -> Maybe Text -> ProactiveAnomaly)
-> Lens ProactiveAnomaly ProactiveAnomaly (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe Text
id :: Maybe Text
$sel:id:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe Text
id} -> Maybe Text
id) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe Text
a -> ProactiveAnomaly
s {$sel:id:ProactiveAnomaly' :: Maybe Text
id = Maybe Text
a} :: ProactiveAnomaly)
proactiveAnomaly_associatedInsightId :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe Prelude.Text)
proactiveAnomaly_associatedInsightId :: (Maybe Text -> f (Maybe Text))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_associatedInsightId = (ProactiveAnomaly -> Maybe Text)
-> (ProactiveAnomaly -> Maybe Text -> ProactiveAnomaly)
-> Lens ProactiveAnomaly ProactiveAnomaly (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe Text
associatedInsightId :: Maybe Text
$sel:associatedInsightId:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe Text
associatedInsightId} -> Maybe Text
associatedInsightId) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe Text
a -> ProactiveAnomaly
s {$sel:associatedInsightId:ProactiveAnomaly' :: Maybe Text
associatedInsightId = Maybe Text
a} :: ProactiveAnomaly)
proactiveAnomaly_anomalyTimeRange :: Lens.Lens' ProactiveAnomaly (Prelude.Maybe AnomalyTimeRange)
proactiveAnomaly_anomalyTimeRange :: (Maybe AnomalyTimeRange -> f (Maybe AnomalyTimeRange))
-> ProactiveAnomaly -> f ProactiveAnomaly
proactiveAnomaly_anomalyTimeRange = (ProactiveAnomaly -> Maybe AnomalyTimeRange)
-> (ProactiveAnomaly -> Maybe AnomalyTimeRange -> ProactiveAnomaly)
-> Lens
ProactiveAnomaly
ProactiveAnomaly
(Maybe AnomalyTimeRange)
(Maybe AnomalyTimeRange)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProactiveAnomaly' {Maybe AnomalyTimeRange
anomalyTimeRange :: Maybe AnomalyTimeRange
$sel:anomalyTimeRange:ProactiveAnomaly' :: ProactiveAnomaly -> Maybe AnomalyTimeRange
anomalyTimeRange} -> Maybe AnomalyTimeRange
anomalyTimeRange) (\s :: ProactiveAnomaly
s@ProactiveAnomaly' {} Maybe AnomalyTimeRange
a -> ProactiveAnomaly
s {$sel:anomalyTimeRange:ProactiveAnomaly' :: Maybe AnomalyTimeRange
anomalyTimeRange = Maybe AnomalyTimeRange
a} :: ProactiveAnomaly)
instance Core.FromJSON ProactiveAnomaly where
parseJSON :: Value -> Parser ProactiveAnomaly
parseJSON =
String
-> (Object -> Parser ProactiveAnomaly)
-> Value
-> Parser ProactiveAnomaly
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ProactiveAnomaly"
( \Object
x ->
Maybe AnomalyReportedTimeRange
-> Maybe AnomalyStatus
-> Maybe ResourceCollection
-> Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly
ProactiveAnomaly'
(Maybe AnomalyReportedTimeRange
-> Maybe AnomalyStatus
-> Maybe ResourceCollection
-> Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
-> Parser (Maybe AnomalyReportedTimeRange)
-> Parser
(Maybe AnomalyStatus
-> Maybe ResourceCollection
-> Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe AnomalyReportedTimeRange)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AnomalyReportedTimeRange")
Parser
(Maybe AnomalyStatus
-> Maybe ResourceCollection
-> Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
-> Parser (Maybe AnomalyStatus)
-> Parser
(Maybe ResourceCollection
-> Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AnomalyStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe ResourceCollection
-> Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
-> Parser (Maybe ResourceCollection)
-> Parser
(Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ResourceCollection)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ResourceCollection")
Parser
(Maybe AnomalySeverity
-> Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
-> Parser (Maybe AnomalySeverity)
-> Parser
(Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AnomalySeverity)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Severity")
Parser
(Maybe POSIX
-> Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
-> Parser (Maybe POSIX)
-> Parser
(Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UpdateTime")
Parser
(Maybe AnomalySourceDetails
-> Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
-> Parser (Maybe AnomalySourceDetails)
-> Parser
(Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AnomalySourceDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceDetails")
Parser
(Maybe PredictionTimeRange
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
-> Parser (Maybe PredictionTimeRange)
-> Parser
(Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PredictionTimeRange)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PredictionTimeRange")
Parser
(Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe AnomalyTimeRange
-> ProactiveAnomaly)
-> Parser (Maybe Double)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe AnomalyTimeRange -> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Limit")
Parser
(Maybe Text
-> Maybe Text -> Maybe AnomalyTimeRange -> ProactiveAnomaly)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe AnomalyTimeRange -> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Id")
Parser (Maybe Text -> Maybe AnomalyTimeRange -> ProactiveAnomaly)
-> Parser (Maybe Text)
-> Parser (Maybe AnomalyTimeRange -> ProactiveAnomaly)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AssociatedInsightId")
Parser (Maybe AnomalyTimeRange -> ProactiveAnomaly)
-> Parser (Maybe AnomalyTimeRange) -> Parser ProactiveAnomaly
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AnomalyTimeRange)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AnomalyTimeRange")
)
instance Prelude.Hashable ProactiveAnomaly
instance Prelude.NFData ProactiveAnomaly