stratosphere-applicationsignals-1.0.0: gen/Stratosphere/ApplicationSignals/ServiceLevelObjective/MonitoredRequestCountMetricProperty.hs
module Stratosphere.ApplicationSignals.ServiceLevelObjective.MonitoredRequestCountMetricProperty (
module Exports, MonitoredRequestCountMetricProperty(..),
mkMonitoredRequestCountMetricProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ApplicationSignals.ServiceLevelObjective.MetricDataQueryProperty as Exports
import Stratosphere.ResourceProperties
data MonitoredRequestCountMetricProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html>
MonitoredRequestCountMetricProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-badcountmetric>
badCountMetric :: (Prelude.Maybe [MetricDataQueryProperty]),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-goodcountmetric>
goodCountMetric :: (Prelude.Maybe [MetricDataQueryProperty])}
deriving stock (Prelude.Eq, Prelude.Show)
mkMonitoredRequestCountMetricProperty ::
MonitoredRequestCountMetricProperty
mkMonitoredRequestCountMetricProperty
= MonitoredRequestCountMetricProperty
{haddock_workaround_ = (), badCountMetric = Prelude.Nothing,
goodCountMetric = Prelude.Nothing}
instance ToResourceProperties MonitoredRequestCountMetricProperty where
toResourceProperties MonitoredRequestCountMetricProperty {..}
= ResourceProperties
{awsType = "AWS::ApplicationSignals::ServiceLevelObjective.MonitoredRequestCountMetric",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "BadCountMetric" Prelude.<$> badCountMetric,
(JSON..=) "GoodCountMetric" Prelude.<$> goodCountMetric])}
instance JSON.ToJSON MonitoredRequestCountMetricProperty where
toJSON MonitoredRequestCountMetricProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "BadCountMetric" Prelude.<$> badCountMetric,
(JSON..=) "GoodCountMetric" Prelude.<$> goodCountMetric]))
instance Property "BadCountMetric" MonitoredRequestCountMetricProperty where
type PropertyType "BadCountMetric" MonitoredRequestCountMetricProperty = [MetricDataQueryProperty]
set newValue MonitoredRequestCountMetricProperty {..}
= MonitoredRequestCountMetricProperty
{badCountMetric = Prelude.pure newValue, ..}
instance Property "GoodCountMetric" MonitoredRequestCountMetricProperty where
type PropertyType "GoodCountMetric" MonitoredRequestCountMetricProperty = [MetricDataQueryProperty]
set newValue MonitoredRequestCountMetricProperty {..}
= MonitoredRequestCountMetricProperty
{goodCountMetric = Prelude.pure newValue, ..}