{-# 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.LookoutMetrics.Types.AnomalyDetectorConfigSummary -- 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.LookoutMetrics.Types.AnomalyDetectorConfigSummary where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.LookoutMetrics.Types.Frequency import qualified Amazonka.Prelude as Prelude -- | Contains information about a detector\'s configuration. -- -- /See:/ 'newAnomalyDetectorConfigSummary' smart constructor. data AnomalyDetectorConfigSummary = AnomalyDetectorConfigSummary' { -- | The interval at which the detector analyzes its source data. anomalyDetectorFrequency :: Prelude.Maybe Frequency } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AnomalyDetectorConfigSummary' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'anomalyDetectorFrequency', 'anomalyDetectorConfigSummary_anomalyDetectorFrequency' - The interval at which the detector analyzes its source data. newAnomalyDetectorConfigSummary :: AnomalyDetectorConfigSummary newAnomalyDetectorConfigSummary = AnomalyDetectorConfigSummary' { anomalyDetectorFrequency = Prelude.Nothing } -- | The interval at which the detector analyzes its source data. anomalyDetectorConfigSummary_anomalyDetectorFrequency :: Lens.Lens' AnomalyDetectorConfigSummary (Prelude.Maybe Frequency) anomalyDetectorConfigSummary_anomalyDetectorFrequency = Lens.lens (\AnomalyDetectorConfigSummary' {anomalyDetectorFrequency} -> anomalyDetectorFrequency) (\s@AnomalyDetectorConfigSummary' {} a -> s {anomalyDetectorFrequency = a} :: AnomalyDetectorConfigSummary) instance Data.FromJSON AnomalyDetectorConfigSummary where parseJSON = Data.withObject "AnomalyDetectorConfigSummary" ( \x -> AnomalyDetectorConfigSummary' Prelude.<$> (x Data..:? "AnomalyDetectorFrequency") ) instance Prelude.Hashable AnomalyDetectorConfigSummary where hashWithSalt _salt AnomalyDetectorConfigSummary' {..} = _salt `Prelude.hashWithSalt` anomalyDetectorFrequency instance Prelude.NFData AnomalyDetectorConfigSummary where rnf AnomalyDetectorConfigSummary' {..} = Prelude.rnf anomalyDetectorFrequency