{-# 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.CodeGuruProfiler.Types.FindingsReportSummary -- 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.CodeGuruProfiler.Types.FindingsReportSummary 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 -- | Information about potential recommendations that might be created from -- the analysis of profiling data. -- -- /See:/ 'newFindingsReportSummary' smart constructor. data FindingsReportSummary = FindingsReportSummary' { -- | The universally unique identifier (UUID) of the recommendation report. id :: Prelude.Maybe Prelude.Text, -- | The end time of the period during which the metric is flagged as -- anomalous. This is specified using the ISO 8601 format. For example, -- 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 -- 1:15:02 PM UTC. profileEndTime :: Prelude.Maybe Data.ISO8601, -- | The start time of the profile the analysis data is about. This is -- specified using the ISO 8601 format. For example, -- 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 -- 1:15:02 PM UTC. profileStartTime :: Prelude.Maybe Data.ISO8601, -- | The name of the profiling group that is associated with the analysis -- data. profilingGroupName :: Prelude.Maybe Prelude.Text, -- | The total number of different recommendations that were found by the -- analysis. totalNumberOfFindings :: Prelude.Maybe Prelude.Int } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'FindingsReportSummary' 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: -- -- 'id', 'findingsReportSummary_id' - The universally unique identifier (UUID) of the recommendation report. -- -- 'profileEndTime', 'findingsReportSummary_profileEndTime' - The end time of the period during which the metric is flagged as -- anomalous. This is specified using the ISO 8601 format. For example, -- 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 -- 1:15:02 PM UTC. -- -- 'profileStartTime', 'findingsReportSummary_profileStartTime' - The start time of the profile the analysis data is about. This is -- specified using the ISO 8601 format. For example, -- 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 -- 1:15:02 PM UTC. -- -- 'profilingGroupName', 'findingsReportSummary_profilingGroupName' - The name of the profiling group that is associated with the analysis -- data. -- -- 'totalNumberOfFindings', 'findingsReportSummary_totalNumberOfFindings' - The total number of different recommendations that were found by the -- analysis. newFindingsReportSummary :: FindingsReportSummary newFindingsReportSummary = FindingsReportSummary' { id = Prelude.Nothing, profileEndTime = Prelude.Nothing, profileStartTime = Prelude.Nothing, profilingGroupName = Prelude.Nothing, totalNumberOfFindings = Prelude.Nothing } -- | The universally unique identifier (UUID) of the recommendation report. findingsReportSummary_id :: Lens.Lens' FindingsReportSummary (Prelude.Maybe Prelude.Text) findingsReportSummary_id = Lens.lens (\FindingsReportSummary' {id} -> id) (\s@FindingsReportSummary' {} a -> s {id = a} :: FindingsReportSummary) -- | The end time of the period during which the metric is flagged as -- anomalous. This is specified using the ISO 8601 format. For example, -- 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 -- 1:15:02 PM UTC. findingsReportSummary_profileEndTime :: Lens.Lens' FindingsReportSummary (Prelude.Maybe Prelude.UTCTime) findingsReportSummary_profileEndTime = Lens.lens (\FindingsReportSummary' {profileEndTime} -> profileEndTime) (\s@FindingsReportSummary' {} a -> s {profileEndTime = a} :: FindingsReportSummary) Prelude.. Lens.mapping Data._Time -- | The start time of the profile the analysis data is about. This is -- specified using the ISO 8601 format. For example, -- 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 -- 1:15:02 PM UTC. findingsReportSummary_profileStartTime :: Lens.Lens' FindingsReportSummary (Prelude.Maybe Prelude.UTCTime) findingsReportSummary_profileStartTime = Lens.lens (\FindingsReportSummary' {profileStartTime} -> profileStartTime) (\s@FindingsReportSummary' {} a -> s {profileStartTime = a} :: FindingsReportSummary) Prelude.. Lens.mapping Data._Time -- | The name of the profiling group that is associated with the analysis -- data. findingsReportSummary_profilingGroupName :: Lens.Lens' FindingsReportSummary (Prelude.Maybe Prelude.Text) findingsReportSummary_profilingGroupName = Lens.lens (\FindingsReportSummary' {profilingGroupName} -> profilingGroupName) (\s@FindingsReportSummary' {} a -> s {profilingGroupName = a} :: FindingsReportSummary) -- | The total number of different recommendations that were found by the -- analysis. findingsReportSummary_totalNumberOfFindings :: Lens.Lens' FindingsReportSummary (Prelude.Maybe Prelude.Int) findingsReportSummary_totalNumberOfFindings = Lens.lens (\FindingsReportSummary' {totalNumberOfFindings} -> totalNumberOfFindings) (\s@FindingsReportSummary' {} a -> s {totalNumberOfFindings = a} :: FindingsReportSummary) instance Data.FromJSON FindingsReportSummary where parseJSON = Data.withObject "FindingsReportSummary" ( \x -> FindingsReportSummary' Prelude.<$> (x Data..:? "id") Prelude.<*> (x Data..:? "profileEndTime") Prelude.<*> (x Data..:? "profileStartTime") Prelude.<*> (x Data..:? "profilingGroupName") Prelude.<*> (x Data..:? "totalNumberOfFindings") ) instance Prelude.Hashable FindingsReportSummary where hashWithSalt _salt FindingsReportSummary' {..} = _salt `Prelude.hashWithSalt` id `Prelude.hashWithSalt` profileEndTime `Prelude.hashWithSalt` profileStartTime `Prelude.hashWithSalt` profilingGroupName `Prelude.hashWithSalt` totalNumberOfFindings instance Prelude.NFData FindingsReportSummary where rnf FindingsReportSummary' {..} = Prelude.rnf id `Prelude.seq` Prelude.rnf profileEndTime `Prelude.seq` Prelude.rnf profileStartTime `Prelude.seq` Prelude.rnf profilingGroupName `Prelude.seq` Prelude.rnf totalNumberOfFindings