{-# 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.MachineLearning.Types.Evaluation where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MachineLearning.Types.EntityStatus
import Amazonka.MachineLearning.Types.PerformanceMetrics
import qualified Amazonka.Prelude as Prelude
data Evaluation = Evaluation'
{
Evaluation -> Maybe EntityStatus
status :: Prelude.Maybe EntityStatus,
Evaluation -> Maybe PerformanceMetrics
performanceMetrics :: Prelude.Maybe PerformanceMetrics,
Evaluation -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
Evaluation -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
Evaluation -> Maybe Integer
computeTime :: Prelude.Maybe Prelude.Integer,
Evaluation -> Maybe Text
inputDataLocationS3 :: Prelude.Maybe Prelude.Text,
Evaluation -> Maybe Text
mLModelId :: Prelude.Maybe Prelude.Text,
Evaluation -> Maybe POSIX
startedAt :: Prelude.Maybe Core.POSIX,
Evaluation -> Maybe POSIX
finishedAt :: Prelude.Maybe Core.POSIX,
Evaluation -> Maybe Text
createdByIamUser :: Prelude.Maybe Prelude.Text,
Evaluation -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
Evaluation -> Maybe Text
evaluationId :: Prelude.Maybe Prelude.Text,
Evaluation -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
Evaluation -> Maybe Text
evaluationDataSourceId :: Prelude.Maybe Prelude.Text
}
deriving (Evaluation -> Evaluation -> Bool
(Evaluation -> Evaluation -> Bool)
-> (Evaluation -> Evaluation -> Bool) -> Eq Evaluation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Evaluation -> Evaluation -> Bool
$c/= :: Evaluation -> Evaluation -> Bool
== :: Evaluation -> Evaluation -> Bool
$c== :: Evaluation -> Evaluation -> Bool
Prelude.Eq, ReadPrec [Evaluation]
ReadPrec Evaluation
Int -> ReadS Evaluation
ReadS [Evaluation]
(Int -> ReadS Evaluation)
-> ReadS [Evaluation]
-> ReadPrec Evaluation
-> ReadPrec [Evaluation]
-> Read Evaluation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Evaluation]
$creadListPrec :: ReadPrec [Evaluation]
readPrec :: ReadPrec Evaluation
$creadPrec :: ReadPrec Evaluation
readList :: ReadS [Evaluation]
$creadList :: ReadS [Evaluation]
readsPrec :: Int -> ReadS Evaluation
$creadsPrec :: Int -> ReadS Evaluation
Prelude.Read, Int -> Evaluation -> ShowS
[Evaluation] -> ShowS
Evaluation -> String
(Int -> Evaluation -> ShowS)
-> (Evaluation -> String)
-> ([Evaluation] -> ShowS)
-> Show Evaluation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Evaluation] -> ShowS
$cshowList :: [Evaluation] -> ShowS
show :: Evaluation -> String
$cshow :: Evaluation -> String
showsPrec :: Int -> Evaluation -> ShowS
$cshowsPrec :: Int -> Evaluation -> ShowS
Prelude.Show, (forall x. Evaluation -> Rep Evaluation x)
-> (forall x. Rep Evaluation x -> Evaluation) -> Generic Evaluation
forall x. Rep Evaluation x -> Evaluation
forall x. Evaluation -> Rep Evaluation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Evaluation x -> Evaluation
$cfrom :: forall x. Evaluation -> Rep Evaluation x
Prelude.Generic)
newEvaluation ::
Evaluation
newEvaluation :: Evaluation
newEvaluation =
Evaluation' :: Maybe EntityStatus
-> Maybe PerformanceMetrics
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation
Evaluation'
{ $sel:status:Evaluation' :: Maybe EntityStatus
status = Maybe EntityStatus
forall a. Maybe a
Prelude.Nothing,
$sel:performanceMetrics:Evaluation' :: Maybe PerformanceMetrics
performanceMetrics = Maybe PerformanceMetrics
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedAt:Evaluation' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:Evaluation' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:computeTime:Evaluation' :: Maybe Integer
computeTime = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataLocationS3:Evaluation' :: Maybe Text
inputDataLocationS3 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:mLModelId:Evaluation' :: Maybe Text
mLModelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startedAt:Evaluation' :: Maybe POSIX
startedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:finishedAt:Evaluation' :: Maybe POSIX
finishedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:createdByIamUser:Evaluation' :: Maybe Text
createdByIamUser = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:Evaluation' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:evaluationId:Evaluation' :: Maybe Text
evaluationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:message:Evaluation' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:evaluationDataSourceId:Evaluation' :: Maybe Text
evaluationDataSourceId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
evaluation_status :: Lens.Lens' Evaluation (Prelude.Maybe EntityStatus)
evaluation_status :: (Maybe EntityStatus -> f (Maybe EntityStatus))
-> Evaluation -> f Evaluation
evaluation_status = (Evaluation -> Maybe EntityStatus)
-> (Evaluation -> Maybe EntityStatus -> Evaluation)
-> Lens
Evaluation Evaluation (Maybe EntityStatus) (Maybe EntityStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe EntityStatus
status :: Maybe EntityStatus
$sel:status:Evaluation' :: Evaluation -> Maybe EntityStatus
status} -> Maybe EntityStatus
status) (\s :: Evaluation
s@Evaluation' {} Maybe EntityStatus
a -> Evaluation
s {$sel:status:Evaluation' :: Maybe EntityStatus
status = Maybe EntityStatus
a} :: Evaluation)
evaluation_performanceMetrics :: Lens.Lens' Evaluation (Prelude.Maybe PerformanceMetrics)
evaluation_performanceMetrics :: (Maybe PerformanceMetrics -> f (Maybe PerformanceMetrics))
-> Evaluation -> f Evaluation
evaluation_performanceMetrics = (Evaluation -> Maybe PerformanceMetrics)
-> (Evaluation -> Maybe PerformanceMetrics -> Evaluation)
-> Lens
Evaluation
Evaluation
(Maybe PerformanceMetrics)
(Maybe PerformanceMetrics)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe PerformanceMetrics
performanceMetrics :: Maybe PerformanceMetrics
$sel:performanceMetrics:Evaluation' :: Evaluation -> Maybe PerformanceMetrics
performanceMetrics} -> Maybe PerformanceMetrics
performanceMetrics) (\s :: Evaluation
s@Evaluation' {} Maybe PerformanceMetrics
a -> Evaluation
s {$sel:performanceMetrics:Evaluation' :: Maybe PerformanceMetrics
performanceMetrics = Maybe PerformanceMetrics
a} :: Evaluation)
evaluation_lastUpdatedAt :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.UTCTime)
evaluation_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Evaluation -> f Evaluation
evaluation_lastUpdatedAt = (Evaluation -> Maybe POSIX)
-> (Evaluation -> Maybe POSIX -> Evaluation)
-> Lens Evaluation Evaluation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:Evaluation' :: Evaluation -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: Evaluation
s@Evaluation' {} Maybe POSIX
a -> Evaluation
s {$sel:lastUpdatedAt:Evaluation' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: Evaluation) ((Maybe POSIX -> f (Maybe POSIX)) -> Evaluation -> f Evaluation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Evaluation
-> f Evaluation
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
evaluation_createdAt :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.UTCTime)
evaluation_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Evaluation -> f Evaluation
evaluation_createdAt = (Evaluation -> Maybe POSIX)
-> (Evaluation -> Maybe POSIX -> Evaluation)
-> Lens Evaluation Evaluation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:Evaluation' :: Evaluation -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: Evaluation
s@Evaluation' {} Maybe POSIX
a -> Evaluation
s {$sel:createdAt:Evaluation' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: Evaluation) ((Maybe POSIX -> f (Maybe POSIX)) -> Evaluation -> f Evaluation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Evaluation
-> f Evaluation
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
evaluation_computeTime :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.Integer)
evaluation_computeTime :: (Maybe Integer -> f (Maybe Integer)) -> Evaluation -> f Evaluation
evaluation_computeTime = (Evaluation -> Maybe Integer)
-> (Evaluation -> Maybe Integer -> Evaluation)
-> Lens Evaluation Evaluation (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe Integer
computeTime :: Maybe Integer
$sel:computeTime:Evaluation' :: Evaluation -> Maybe Integer
computeTime} -> Maybe Integer
computeTime) (\s :: Evaluation
s@Evaluation' {} Maybe Integer
a -> Evaluation
s {$sel:computeTime:Evaluation' :: Maybe Integer
computeTime = Maybe Integer
a} :: Evaluation)
evaluation_inputDataLocationS3 :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.Text)
evaluation_inputDataLocationS3 :: (Maybe Text -> f (Maybe Text)) -> Evaluation -> f Evaluation
evaluation_inputDataLocationS3 = (Evaluation -> Maybe Text)
-> (Evaluation -> Maybe Text -> Evaluation)
-> Lens Evaluation Evaluation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe Text
inputDataLocationS3 :: Maybe Text
$sel:inputDataLocationS3:Evaluation' :: Evaluation -> Maybe Text
inputDataLocationS3} -> Maybe Text
inputDataLocationS3) (\s :: Evaluation
s@Evaluation' {} Maybe Text
a -> Evaluation
s {$sel:inputDataLocationS3:Evaluation' :: Maybe Text
inputDataLocationS3 = Maybe Text
a} :: Evaluation)
evaluation_mLModelId :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.Text)
evaluation_mLModelId :: (Maybe Text -> f (Maybe Text)) -> Evaluation -> f Evaluation
evaluation_mLModelId = (Evaluation -> Maybe Text)
-> (Evaluation -> Maybe Text -> Evaluation)
-> Lens Evaluation Evaluation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe Text
mLModelId :: Maybe Text
$sel:mLModelId:Evaluation' :: Evaluation -> Maybe Text
mLModelId} -> Maybe Text
mLModelId) (\s :: Evaluation
s@Evaluation' {} Maybe Text
a -> Evaluation
s {$sel:mLModelId:Evaluation' :: Maybe Text
mLModelId = Maybe Text
a} :: Evaluation)
evaluation_startedAt :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.UTCTime)
evaluation_startedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Evaluation -> f Evaluation
evaluation_startedAt = (Evaluation -> Maybe POSIX)
-> (Evaluation -> Maybe POSIX -> Evaluation)
-> Lens Evaluation Evaluation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe POSIX
startedAt :: Maybe POSIX
$sel:startedAt:Evaluation' :: Evaluation -> Maybe POSIX
startedAt} -> Maybe POSIX
startedAt) (\s :: Evaluation
s@Evaluation' {} Maybe POSIX
a -> Evaluation
s {$sel:startedAt:Evaluation' :: Maybe POSIX
startedAt = Maybe POSIX
a} :: Evaluation) ((Maybe POSIX -> f (Maybe POSIX)) -> Evaluation -> f Evaluation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Evaluation
-> f Evaluation
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
evaluation_finishedAt :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.UTCTime)
evaluation_finishedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Evaluation -> f Evaluation
evaluation_finishedAt = (Evaluation -> Maybe POSIX)
-> (Evaluation -> Maybe POSIX -> Evaluation)
-> Lens Evaluation Evaluation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe POSIX
finishedAt :: Maybe POSIX
$sel:finishedAt:Evaluation' :: Evaluation -> Maybe POSIX
finishedAt} -> Maybe POSIX
finishedAt) (\s :: Evaluation
s@Evaluation' {} Maybe POSIX
a -> Evaluation
s {$sel:finishedAt:Evaluation' :: Maybe POSIX
finishedAt = Maybe POSIX
a} :: Evaluation) ((Maybe POSIX -> f (Maybe POSIX)) -> Evaluation -> f Evaluation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Evaluation
-> f Evaluation
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
evaluation_createdByIamUser :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.Text)
evaluation_createdByIamUser :: (Maybe Text -> f (Maybe Text)) -> Evaluation -> f Evaluation
evaluation_createdByIamUser = (Evaluation -> Maybe Text)
-> (Evaluation -> Maybe Text -> Evaluation)
-> Lens Evaluation Evaluation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe Text
createdByIamUser :: Maybe Text
$sel:createdByIamUser:Evaluation' :: Evaluation -> Maybe Text
createdByIamUser} -> Maybe Text
createdByIamUser) (\s :: Evaluation
s@Evaluation' {} Maybe Text
a -> Evaluation
s {$sel:createdByIamUser:Evaluation' :: Maybe Text
createdByIamUser = Maybe Text
a} :: Evaluation)
evaluation_name :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.Text)
evaluation_name :: (Maybe Text -> f (Maybe Text)) -> Evaluation -> f Evaluation
evaluation_name = (Evaluation -> Maybe Text)
-> (Evaluation -> Maybe Text -> Evaluation)
-> Lens Evaluation Evaluation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe Text
name :: Maybe Text
$sel:name:Evaluation' :: Evaluation -> Maybe Text
name} -> Maybe Text
name) (\s :: Evaluation
s@Evaluation' {} Maybe Text
a -> Evaluation
s {$sel:name:Evaluation' :: Maybe Text
name = Maybe Text
a} :: Evaluation)
evaluation_evaluationId :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.Text)
evaluation_evaluationId :: (Maybe Text -> f (Maybe Text)) -> Evaluation -> f Evaluation
evaluation_evaluationId = (Evaluation -> Maybe Text)
-> (Evaluation -> Maybe Text -> Evaluation)
-> Lens Evaluation Evaluation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe Text
evaluationId :: Maybe Text
$sel:evaluationId:Evaluation' :: Evaluation -> Maybe Text
evaluationId} -> Maybe Text
evaluationId) (\s :: Evaluation
s@Evaluation' {} Maybe Text
a -> Evaluation
s {$sel:evaluationId:Evaluation' :: Maybe Text
evaluationId = Maybe Text
a} :: Evaluation)
evaluation_message :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.Text)
evaluation_message :: (Maybe Text -> f (Maybe Text)) -> Evaluation -> f Evaluation
evaluation_message = (Evaluation -> Maybe Text)
-> (Evaluation -> Maybe Text -> Evaluation)
-> Lens Evaluation Evaluation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe Text
message :: Maybe Text
$sel:message:Evaluation' :: Evaluation -> Maybe Text
message} -> Maybe Text
message) (\s :: Evaluation
s@Evaluation' {} Maybe Text
a -> Evaluation
s {$sel:message:Evaluation' :: Maybe Text
message = Maybe Text
a} :: Evaluation)
evaluation_evaluationDataSourceId :: Lens.Lens' Evaluation (Prelude.Maybe Prelude.Text)
evaluation_evaluationDataSourceId :: (Maybe Text -> f (Maybe Text)) -> Evaluation -> f Evaluation
evaluation_evaluationDataSourceId = (Evaluation -> Maybe Text)
-> (Evaluation -> Maybe Text -> Evaluation)
-> Lens Evaluation Evaluation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Evaluation' {Maybe Text
evaluationDataSourceId :: Maybe Text
$sel:evaluationDataSourceId:Evaluation' :: Evaluation -> Maybe Text
evaluationDataSourceId} -> Maybe Text
evaluationDataSourceId) (\s :: Evaluation
s@Evaluation' {} Maybe Text
a -> Evaluation
s {$sel:evaluationDataSourceId:Evaluation' :: Maybe Text
evaluationDataSourceId = Maybe Text
a} :: Evaluation)
instance Core.FromJSON Evaluation where
parseJSON :: Value -> Parser Evaluation
parseJSON =
String
-> (Object -> Parser Evaluation) -> Value -> Parser Evaluation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Evaluation"
( \Object
x ->
Maybe EntityStatus
-> Maybe PerformanceMetrics
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation
Evaluation'
(Maybe EntityStatus
-> Maybe PerformanceMetrics
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe EntityStatus)
-> Parser
(Maybe PerformanceMetrics
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe EntityStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe PerformanceMetrics
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe PerformanceMetrics)
-> Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PerformanceMetrics)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PerformanceMetrics")
Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe POSIX)
-> Parser
(Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
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
"LastUpdatedAt")
Parser
(Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
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
"CreatedAt")
Parser
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe Integer)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ComputeTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
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
"InputDataLocationS3")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
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
"MLModelId")
Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe POSIX)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
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
"StartedAt")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
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
"FinishedAt")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Evaluation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> Evaluation)
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
"CreatedByIamUser")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> Evaluation)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> Evaluation)
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
"Name")
Parser (Maybe Text -> Maybe Text -> Maybe Text -> Evaluation)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Evaluation)
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
"EvaluationId")
Parser (Maybe Text -> Maybe Text -> Evaluation)
-> Parser (Maybe Text) -> Parser (Maybe Text -> Evaluation)
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
"Message")
Parser (Maybe Text -> Evaluation)
-> Parser (Maybe Text) -> Parser Evaluation
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
"EvaluationDataSourceId")
)
instance Prelude.Hashable Evaluation
instance Prelude.NFData Evaluation