{-# 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.DevOpsGuru.Types.PerformanceInsightsReferenceData -- 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.DevOpsGuru.Types.PerformanceInsightsReferenceData where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.DevOpsGuru.Types.PerformanceInsightsReferenceComparisonValues import qualified Amazonka.Prelude as Prelude -- | Reference data used to evaluate Performance Insights to determine if its -- performance is anomalous or not. -- -- /See:/ 'newPerformanceInsightsReferenceData' smart constructor. data PerformanceInsightsReferenceData = PerformanceInsightsReferenceData' { -- | The specific reference values used to evaluate the Performance Insights. -- For more information, see -- @ @@ @. comparisonValues :: Prelude.Maybe PerformanceInsightsReferenceComparisonValues, -- | The name of the reference data. name :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'PerformanceInsightsReferenceData' 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: -- -- 'comparisonValues', 'performanceInsightsReferenceData_comparisonValues' - The specific reference values used to evaluate the Performance Insights. -- For more information, see -- @ @@ @. -- -- 'name', 'performanceInsightsReferenceData_name' - The name of the reference data. newPerformanceInsightsReferenceData :: PerformanceInsightsReferenceData newPerformanceInsightsReferenceData = PerformanceInsightsReferenceData' { comparisonValues = Prelude.Nothing, name = Prelude.Nothing } -- | The specific reference values used to evaluate the Performance Insights. -- For more information, see -- @ @@ @. performanceInsightsReferenceData_comparisonValues :: Lens.Lens' PerformanceInsightsReferenceData (Prelude.Maybe PerformanceInsightsReferenceComparisonValues) performanceInsightsReferenceData_comparisonValues = Lens.lens (\PerformanceInsightsReferenceData' {comparisonValues} -> comparisonValues) (\s@PerformanceInsightsReferenceData' {} a -> s {comparisonValues = a} :: PerformanceInsightsReferenceData) -- | The name of the reference data. performanceInsightsReferenceData_name :: Lens.Lens' PerformanceInsightsReferenceData (Prelude.Maybe Prelude.Text) performanceInsightsReferenceData_name = Lens.lens (\PerformanceInsightsReferenceData' {name} -> name) (\s@PerformanceInsightsReferenceData' {} a -> s {name = a} :: PerformanceInsightsReferenceData) instance Data.FromJSON PerformanceInsightsReferenceData where parseJSON = Data.withObject "PerformanceInsightsReferenceData" ( \x -> PerformanceInsightsReferenceData' Prelude.<$> (x Data..:? "ComparisonValues") Prelude.<*> (x Data..:? "Name") ) instance Prelude.Hashable PerformanceInsightsReferenceData where hashWithSalt _salt PerformanceInsightsReferenceData' {..} = _salt `Prelude.hashWithSalt` comparisonValues `Prelude.hashWithSalt` name instance Prelude.NFData PerformanceInsightsReferenceData where rnf PerformanceInsightsReferenceData' {..} = Prelude.rnf comparisonValues `Prelude.seq` Prelude.rnf name