{-# 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.AccountInsightHealth -- 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.AccountInsightHealth 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 the number of open reactive and proactive insights -- that can be used to gauge the health of your system. -- -- /See:/ 'newAccountInsightHealth' smart constructor. data AccountInsightHealth = AccountInsightHealth' { -- | An integer that specifies the number of open proactive insights in your -- Amazon Web Services account. openProactiveInsights :: Prelude.Maybe Prelude.Int, -- | An integer that specifies the number of open reactive insights in your -- Amazon Web Services account. openReactiveInsights :: Prelude.Maybe Prelude.Int } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AccountInsightHealth' 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: -- -- 'openProactiveInsights', 'accountInsightHealth_openProactiveInsights' - An integer that specifies the number of open proactive insights in your -- Amazon Web Services account. -- -- 'openReactiveInsights', 'accountInsightHealth_openReactiveInsights' - An integer that specifies the number of open reactive insights in your -- Amazon Web Services account. newAccountInsightHealth :: AccountInsightHealth newAccountInsightHealth = AccountInsightHealth' { openProactiveInsights = Prelude.Nothing, openReactiveInsights = Prelude.Nothing } -- | An integer that specifies the number of open proactive insights in your -- Amazon Web Services account. accountInsightHealth_openProactiveInsights :: Lens.Lens' AccountInsightHealth (Prelude.Maybe Prelude.Int) accountInsightHealth_openProactiveInsights = Lens.lens (\AccountInsightHealth' {openProactiveInsights} -> openProactiveInsights) (\s@AccountInsightHealth' {} a -> s {openProactiveInsights = a} :: AccountInsightHealth) -- | An integer that specifies the number of open reactive insights in your -- Amazon Web Services account. accountInsightHealth_openReactiveInsights :: Lens.Lens' AccountInsightHealth (Prelude.Maybe Prelude.Int) accountInsightHealth_openReactiveInsights = Lens.lens (\AccountInsightHealth' {openReactiveInsights} -> openReactiveInsights) (\s@AccountInsightHealth' {} a -> s {openReactiveInsights = a} :: AccountInsightHealth) instance Data.FromJSON AccountInsightHealth where parseJSON = Data.withObject "AccountInsightHealth" ( \x -> AccountInsightHealth' Prelude.<$> (x Data..:? "OpenProactiveInsights") Prelude.<*> (x Data..:? "OpenReactiveInsights") ) instance Prelude.Hashable AccountInsightHealth where hashWithSalt _salt AccountInsightHealth' {..} = _salt `Prelude.hashWithSalt` openProactiveInsights `Prelude.hashWithSalt` openReactiveInsights instance Prelude.NFData AccountInsightHealth where rnf AccountInsightHealth' {..} = Prelude.rnf openProactiveInsights `Prelude.seq` Prelude.rnf openReactiveInsights