{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.Types.MonitoringSchedule
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.MonitoringSchedule where

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
import Amazonka.SageMaker.Types.MonitoringExecutionSummary
import Amazonka.SageMaker.Types.MonitoringScheduleConfig
import Amazonka.SageMaker.Types.MonitoringType
import Amazonka.SageMaker.Types.ScheduleStatus
import Amazonka.SageMaker.Types.Tag

-- | A schedule for a model monitoring job. For information about model
-- monitor, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor.html Amazon SageMaker Model Monitor>.
--
-- /See:/ 'newMonitoringSchedule' smart constructor.
data MonitoringSchedule = MonitoringSchedule'
  { -- | The time that the monitoring schedule was created.
    MonitoringSchedule -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The endpoint that hosts the model being monitored.
    MonitoringSchedule -> Maybe Text
endpointName :: Prelude.Maybe Prelude.Text,
    -- | If the monitoring schedule failed, the reason it failed.
    MonitoringSchedule -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The last time the monitoring schedule was changed.
    MonitoringSchedule -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    MonitoringSchedule -> Maybe MonitoringExecutionSummary
lastMonitoringExecutionSummary :: Prelude.Maybe MonitoringExecutionSummary,
    -- | The Amazon Resource Name (ARN) of the monitoring schedule.
    MonitoringSchedule -> Maybe Text
monitoringScheduleArn :: Prelude.Maybe Prelude.Text,
    MonitoringSchedule -> Maybe MonitoringScheduleConfig
monitoringScheduleConfig :: Prelude.Maybe MonitoringScheduleConfig,
    -- | The name of the monitoring schedule.
    MonitoringSchedule -> Maybe Text
monitoringScheduleName :: Prelude.Maybe Prelude.Text,
    -- | The status of the monitoring schedule. This can be one of the following
    -- values.
    --
    -- -   @PENDING@ - The schedule is pending being created.
    --
    -- -   @FAILED@ - The schedule failed.
    --
    -- -   @SCHEDULED@ - The schedule was successfully created.
    --
    -- -   @STOPPED@ - The schedule was stopped.
    MonitoringSchedule -> Maybe ScheduleStatus
monitoringScheduleStatus :: Prelude.Maybe ScheduleStatus,
    -- | The type of the monitoring job definition to schedule.
    MonitoringSchedule -> Maybe MonitoringType
monitoringType :: Prelude.Maybe MonitoringType,
    -- | A list of the tags associated with the monitoring schedlue. For more
    -- information, see
    -- <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html Tagging Amazon Web Services resources>
    -- in the /Amazon Web Services General Reference Guide/.
    MonitoringSchedule -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
  }
  deriving (MonitoringSchedule -> MonitoringSchedule -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MonitoringSchedule -> MonitoringSchedule -> Bool
$c/= :: MonitoringSchedule -> MonitoringSchedule -> Bool
== :: MonitoringSchedule -> MonitoringSchedule -> Bool
$c== :: MonitoringSchedule -> MonitoringSchedule -> Bool
Prelude.Eq, ReadPrec [MonitoringSchedule]
ReadPrec MonitoringSchedule
Int -> ReadS MonitoringSchedule
ReadS [MonitoringSchedule]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MonitoringSchedule]
$creadListPrec :: ReadPrec [MonitoringSchedule]
readPrec :: ReadPrec MonitoringSchedule
$creadPrec :: ReadPrec MonitoringSchedule
readList :: ReadS [MonitoringSchedule]
$creadList :: ReadS [MonitoringSchedule]
readsPrec :: Int -> ReadS MonitoringSchedule
$creadsPrec :: Int -> ReadS MonitoringSchedule
Prelude.Read, Int -> MonitoringSchedule -> ShowS
[MonitoringSchedule] -> ShowS
MonitoringSchedule -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MonitoringSchedule] -> ShowS
$cshowList :: [MonitoringSchedule] -> ShowS
show :: MonitoringSchedule -> String
$cshow :: MonitoringSchedule -> String
showsPrec :: Int -> MonitoringSchedule -> ShowS
$cshowsPrec :: Int -> MonitoringSchedule -> ShowS
Prelude.Show, forall x. Rep MonitoringSchedule x -> MonitoringSchedule
forall x. MonitoringSchedule -> Rep MonitoringSchedule x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MonitoringSchedule x -> MonitoringSchedule
$cfrom :: forall x. MonitoringSchedule -> Rep MonitoringSchedule x
Prelude.Generic)

-- |
-- Create a value of 'MonitoringSchedule' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'creationTime', 'monitoringSchedule_creationTime' - The time that the monitoring schedule was created.
--
-- 'endpointName', 'monitoringSchedule_endpointName' - The endpoint that hosts the model being monitored.
--
-- 'failureReason', 'monitoringSchedule_failureReason' - If the monitoring schedule failed, the reason it failed.
--
-- 'lastModifiedTime', 'monitoringSchedule_lastModifiedTime' - The last time the monitoring schedule was changed.
--
-- 'lastMonitoringExecutionSummary', 'monitoringSchedule_lastMonitoringExecutionSummary' - Undocumented member.
--
-- 'monitoringScheduleArn', 'monitoringSchedule_monitoringScheduleArn' - The Amazon Resource Name (ARN) of the monitoring schedule.
--
-- 'monitoringScheduleConfig', 'monitoringSchedule_monitoringScheduleConfig' - Undocumented member.
--
-- 'monitoringScheduleName', 'monitoringSchedule_monitoringScheduleName' - The name of the monitoring schedule.
--
-- 'monitoringScheduleStatus', 'monitoringSchedule_monitoringScheduleStatus' - The status of the monitoring schedule. This can be one of the following
-- values.
--
-- -   @PENDING@ - The schedule is pending being created.
--
-- -   @FAILED@ - The schedule failed.
--
-- -   @SCHEDULED@ - The schedule was successfully created.
--
-- -   @STOPPED@ - The schedule was stopped.
--
-- 'monitoringType', 'monitoringSchedule_monitoringType' - The type of the monitoring job definition to schedule.
--
-- 'tags', 'monitoringSchedule_tags' - A list of the tags associated with the monitoring schedlue. For more
-- information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html Tagging Amazon Web Services resources>
-- in the /Amazon Web Services General Reference Guide/.
newMonitoringSchedule ::
  MonitoringSchedule
newMonitoringSchedule :: MonitoringSchedule
newMonitoringSchedule =
  MonitoringSchedule'
    { $sel:creationTime:MonitoringSchedule' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:endpointName:MonitoringSchedule' :: Maybe Text
endpointName = forall a. Maybe a
Prelude.Nothing,
      $sel:failureReason:MonitoringSchedule' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:MonitoringSchedule' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:lastMonitoringExecutionSummary:MonitoringSchedule' :: Maybe MonitoringExecutionSummary
lastMonitoringExecutionSummary = forall a. Maybe a
Prelude.Nothing,
      $sel:monitoringScheduleArn:MonitoringSchedule' :: Maybe Text
monitoringScheduleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:monitoringScheduleConfig:MonitoringSchedule' :: Maybe MonitoringScheduleConfig
monitoringScheduleConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:monitoringScheduleName:MonitoringSchedule' :: Maybe Text
monitoringScheduleName = forall a. Maybe a
Prelude.Nothing,
      $sel:monitoringScheduleStatus:MonitoringSchedule' :: Maybe ScheduleStatus
monitoringScheduleStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:monitoringType:MonitoringSchedule' :: Maybe MonitoringType
monitoringType = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:MonitoringSchedule' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing
    }

-- | The time that the monitoring schedule was created.
monitoringSchedule_creationTime :: Lens.Lens' MonitoringSchedule (Prelude.Maybe Prelude.UTCTime)
monitoringSchedule_creationTime :: Lens' MonitoringSchedule (Maybe UTCTime)
monitoringSchedule_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:MonitoringSchedule' :: MonitoringSchedule -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe POSIX
a -> MonitoringSchedule
s {$sel:creationTime:MonitoringSchedule' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: MonitoringSchedule) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The endpoint that hosts the model being monitored.
monitoringSchedule_endpointName :: Lens.Lens' MonitoringSchedule (Prelude.Maybe Prelude.Text)
monitoringSchedule_endpointName :: Lens' MonitoringSchedule (Maybe Text)
monitoringSchedule_endpointName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe Text
endpointName :: Maybe Text
$sel:endpointName:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
endpointName} -> Maybe Text
endpointName) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe Text
a -> MonitoringSchedule
s {$sel:endpointName:MonitoringSchedule' :: Maybe Text
endpointName = Maybe Text
a} :: MonitoringSchedule)

-- | If the monitoring schedule failed, the reason it failed.
monitoringSchedule_failureReason :: Lens.Lens' MonitoringSchedule (Prelude.Maybe Prelude.Text)
monitoringSchedule_failureReason :: Lens' MonitoringSchedule (Maybe Text)
monitoringSchedule_failureReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe Text
a -> MonitoringSchedule
s {$sel:failureReason:MonitoringSchedule' :: Maybe Text
failureReason = Maybe Text
a} :: MonitoringSchedule)

-- | The last time the monitoring schedule was changed.
monitoringSchedule_lastModifiedTime :: Lens.Lens' MonitoringSchedule (Prelude.Maybe Prelude.UTCTime)
monitoringSchedule_lastModifiedTime :: Lens' MonitoringSchedule (Maybe UTCTime)
monitoringSchedule_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:MonitoringSchedule' :: MonitoringSchedule -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe POSIX
a -> MonitoringSchedule
s {$sel:lastModifiedTime:MonitoringSchedule' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: MonitoringSchedule) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Undocumented member.
monitoringSchedule_lastMonitoringExecutionSummary :: Lens.Lens' MonitoringSchedule (Prelude.Maybe MonitoringExecutionSummary)
monitoringSchedule_lastMonitoringExecutionSummary :: Lens' MonitoringSchedule (Maybe MonitoringExecutionSummary)
monitoringSchedule_lastMonitoringExecutionSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe MonitoringExecutionSummary
lastMonitoringExecutionSummary :: Maybe MonitoringExecutionSummary
$sel:lastMonitoringExecutionSummary:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringExecutionSummary
lastMonitoringExecutionSummary} -> Maybe MonitoringExecutionSummary
lastMonitoringExecutionSummary) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe MonitoringExecutionSummary
a -> MonitoringSchedule
s {$sel:lastMonitoringExecutionSummary:MonitoringSchedule' :: Maybe MonitoringExecutionSummary
lastMonitoringExecutionSummary = Maybe MonitoringExecutionSummary
a} :: MonitoringSchedule)

-- | The Amazon Resource Name (ARN) of the monitoring schedule.
monitoringSchedule_monitoringScheduleArn :: Lens.Lens' MonitoringSchedule (Prelude.Maybe Prelude.Text)
monitoringSchedule_monitoringScheduleArn :: Lens' MonitoringSchedule (Maybe Text)
monitoringSchedule_monitoringScheduleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe Text
monitoringScheduleArn :: Maybe Text
$sel:monitoringScheduleArn:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
monitoringScheduleArn} -> Maybe Text
monitoringScheduleArn) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe Text
a -> MonitoringSchedule
s {$sel:monitoringScheduleArn:MonitoringSchedule' :: Maybe Text
monitoringScheduleArn = Maybe Text
a} :: MonitoringSchedule)

-- | Undocumented member.
monitoringSchedule_monitoringScheduleConfig :: Lens.Lens' MonitoringSchedule (Prelude.Maybe MonitoringScheduleConfig)
monitoringSchedule_monitoringScheduleConfig :: Lens' MonitoringSchedule (Maybe MonitoringScheduleConfig)
monitoringSchedule_monitoringScheduleConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe MonitoringScheduleConfig
monitoringScheduleConfig :: Maybe MonitoringScheduleConfig
$sel:monitoringScheduleConfig:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringScheduleConfig
monitoringScheduleConfig} -> Maybe MonitoringScheduleConfig
monitoringScheduleConfig) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe MonitoringScheduleConfig
a -> MonitoringSchedule
s {$sel:monitoringScheduleConfig:MonitoringSchedule' :: Maybe MonitoringScheduleConfig
monitoringScheduleConfig = Maybe MonitoringScheduleConfig
a} :: MonitoringSchedule)

-- | The name of the monitoring schedule.
monitoringSchedule_monitoringScheduleName :: Lens.Lens' MonitoringSchedule (Prelude.Maybe Prelude.Text)
monitoringSchedule_monitoringScheduleName :: Lens' MonitoringSchedule (Maybe Text)
monitoringSchedule_monitoringScheduleName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe Text
monitoringScheduleName :: Maybe Text
$sel:monitoringScheduleName:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
monitoringScheduleName} -> Maybe Text
monitoringScheduleName) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe Text
a -> MonitoringSchedule
s {$sel:monitoringScheduleName:MonitoringSchedule' :: Maybe Text
monitoringScheduleName = Maybe Text
a} :: MonitoringSchedule)

-- | The status of the monitoring schedule. This can be one of the following
-- values.
--
-- -   @PENDING@ - The schedule is pending being created.
--
-- -   @FAILED@ - The schedule failed.
--
-- -   @SCHEDULED@ - The schedule was successfully created.
--
-- -   @STOPPED@ - The schedule was stopped.
monitoringSchedule_monitoringScheduleStatus :: Lens.Lens' MonitoringSchedule (Prelude.Maybe ScheduleStatus)
monitoringSchedule_monitoringScheduleStatus :: Lens' MonitoringSchedule (Maybe ScheduleStatus)
monitoringSchedule_monitoringScheduleStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe ScheduleStatus
monitoringScheduleStatus :: Maybe ScheduleStatus
$sel:monitoringScheduleStatus:MonitoringSchedule' :: MonitoringSchedule -> Maybe ScheduleStatus
monitoringScheduleStatus} -> Maybe ScheduleStatus
monitoringScheduleStatus) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe ScheduleStatus
a -> MonitoringSchedule
s {$sel:monitoringScheduleStatus:MonitoringSchedule' :: Maybe ScheduleStatus
monitoringScheduleStatus = Maybe ScheduleStatus
a} :: MonitoringSchedule)

-- | The type of the monitoring job definition to schedule.
monitoringSchedule_monitoringType :: Lens.Lens' MonitoringSchedule (Prelude.Maybe MonitoringType)
monitoringSchedule_monitoringType :: Lens' MonitoringSchedule (Maybe MonitoringType)
monitoringSchedule_monitoringType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe MonitoringType
monitoringType :: Maybe MonitoringType
$sel:monitoringType:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringType
monitoringType} -> Maybe MonitoringType
monitoringType) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe MonitoringType
a -> MonitoringSchedule
s {$sel:monitoringType:MonitoringSchedule' :: Maybe MonitoringType
monitoringType = Maybe MonitoringType
a} :: MonitoringSchedule)

-- | A list of the tags associated with the monitoring schedlue. For more
-- information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html Tagging Amazon Web Services resources>
-- in the /Amazon Web Services General Reference Guide/.
monitoringSchedule_tags :: Lens.Lens' MonitoringSchedule (Prelude.Maybe [Tag])
monitoringSchedule_tags :: Lens' MonitoringSchedule (Maybe [Tag])
monitoringSchedule_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringSchedule' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:MonitoringSchedule' :: MonitoringSchedule -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: MonitoringSchedule
s@MonitoringSchedule' {} Maybe [Tag]
a -> MonitoringSchedule
s {$sel:tags:MonitoringSchedule' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: MonitoringSchedule) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Data.FromJSON MonitoringSchedule where
  parseJSON :: Value -> Parser MonitoringSchedule
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"MonitoringSchedule"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MonitoringExecutionSummary
-> Maybe Text
-> Maybe MonitoringScheduleConfig
-> Maybe Text
-> Maybe ScheduleStatus
-> Maybe MonitoringType
-> Maybe [Tag]
-> MonitoringSchedule
MonitoringSchedule'
            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
"CreationTime")
            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
"EndpointName")
            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
"FailureReason")
            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
"LastModifiedTime")
            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
"LastMonitoringExecutionSummary")
            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
"MonitoringScheduleArn")
            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
"MonitoringScheduleConfig")
            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
"MonitoringScheduleName")
            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
"MonitoringScheduleStatus")
            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
"MonitoringType")
            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
"Tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable MonitoringSchedule where
  hashWithSalt :: Int -> MonitoringSchedule -> Int
hashWithSalt Int
_salt MonitoringSchedule' {Maybe [Tag]
Maybe Text
Maybe POSIX
Maybe MonitoringType
Maybe MonitoringExecutionSummary
Maybe ScheduleStatus
Maybe MonitoringScheduleConfig
tags :: Maybe [Tag]
monitoringType :: Maybe MonitoringType
monitoringScheduleStatus :: Maybe ScheduleStatus
monitoringScheduleName :: Maybe Text
monitoringScheduleConfig :: Maybe MonitoringScheduleConfig
monitoringScheduleArn :: Maybe Text
lastMonitoringExecutionSummary :: Maybe MonitoringExecutionSummary
lastModifiedTime :: Maybe POSIX
failureReason :: Maybe Text
endpointName :: Maybe Text
creationTime :: Maybe POSIX
$sel:tags:MonitoringSchedule' :: MonitoringSchedule -> Maybe [Tag]
$sel:monitoringType:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringType
$sel:monitoringScheduleStatus:MonitoringSchedule' :: MonitoringSchedule -> Maybe ScheduleStatus
$sel:monitoringScheduleName:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
$sel:monitoringScheduleConfig:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringScheduleConfig
$sel:monitoringScheduleArn:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
$sel:lastMonitoringExecutionSummary:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringExecutionSummary
$sel:lastModifiedTime:MonitoringSchedule' :: MonitoringSchedule -> Maybe POSIX
$sel:failureReason:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
$sel:endpointName:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
$sel:creationTime:MonitoringSchedule' :: MonitoringSchedule -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endpointName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureReason
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MonitoringExecutionSummary
lastMonitoringExecutionSummary
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
monitoringScheduleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MonitoringScheduleConfig
monitoringScheduleConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
monitoringScheduleName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ScheduleStatus
monitoringScheduleStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MonitoringType
monitoringType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags

instance Prelude.NFData MonitoringSchedule where
  rnf :: MonitoringSchedule -> ()
rnf MonitoringSchedule' {Maybe [Tag]
Maybe Text
Maybe POSIX
Maybe MonitoringType
Maybe MonitoringExecutionSummary
Maybe ScheduleStatus
Maybe MonitoringScheduleConfig
tags :: Maybe [Tag]
monitoringType :: Maybe MonitoringType
monitoringScheduleStatus :: Maybe ScheduleStatus
monitoringScheduleName :: Maybe Text
monitoringScheduleConfig :: Maybe MonitoringScheduleConfig
monitoringScheduleArn :: Maybe Text
lastMonitoringExecutionSummary :: Maybe MonitoringExecutionSummary
lastModifiedTime :: Maybe POSIX
failureReason :: Maybe Text
endpointName :: Maybe Text
creationTime :: Maybe POSIX
$sel:tags:MonitoringSchedule' :: MonitoringSchedule -> Maybe [Tag]
$sel:monitoringType:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringType
$sel:monitoringScheduleStatus:MonitoringSchedule' :: MonitoringSchedule -> Maybe ScheduleStatus
$sel:monitoringScheduleName:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
$sel:monitoringScheduleConfig:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringScheduleConfig
$sel:monitoringScheduleArn:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
$sel:lastMonitoringExecutionSummary:MonitoringSchedule' :: MonitoringSchedule -> Maybe MonitoringExecutionSummary
$sel:lastModifiedTime:MonitoringSchedule' :: MonitoringSchedule -> Maybe POSIX
$sel:failureReason:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
$sel:endpointName:MonitoringSchedule' :: MonitoringSchedule -> Maybe Text
$sel:creationTime:MonitoringSchedule' :: MonitoringSchedule -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endpointName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureReason
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MonitoringExecutionSummary
lastMonitoringExecutionSummary
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
monitoringScheduleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MonitoringScheduleConfig
monitoringScheduleConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
monitoringScheduleName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ScheduleStatus
monitoringScheduleStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MonitoringType
monitoringType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags