{-# 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.CloudWatch.Types.InsightRuleMetricDatapoint
-- 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.CloudWatch.Types.InsightRuleMetricDatapoint 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

-- | One data point from the metric time series returned in a Contributor
-- Insights rule report.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetInsightRuleReport.html GetInsightRuleReport>.
--
-- /See:/ 'newInsightRuleMetricDatapoint' smart constructor.
data InsightRuleMetricDatapoint = InsightRuleMetricDatapoint'
  { -- | The average value from all contributors during the time period
    -- represented by that data point.
    --
    -- This statistic is returned only if you included it in the @Metrics@
    -- array in your request.
    InsightRuleMetricDatapoint -> Maybe Double
average :: Prelude.Maybe Prelude.Double,
    -- | The maximum value provided by one contributor during this timestamp.
    -- Each timestamp is evaluated separately, so the identity of the max
    -- contributor could be different for each timestamp.
    --
    -- This statistic is returned only if you included it in the @Metrics@
    -- array in your request.
    InsightRuleMetricDatapoint -> Maybe Double
maxContributorValue :: Prelude.Maybe Prelude.Double,
    -- | The maximum value from a single occurence from a single contributor
    -- during the time period represented by that data point.
    --
    -- This statistic is returned only if you included it in the @Metrics@
    -- array in your request.
    InsightRuleMetricDatapoint -> Maybe Double
maximum :: Prelude.Maybe Prelude.Double,
    -- | The minimum value from a single contributor during the time period
    -- represented by that data point.
    --
    -- This statistic is returned only if you included it in the @Metrics@
    -- array in your request.
    InsightRuleMetricDatapoint -> Maybe Double
minimum :: Prelude.Maybe Prelude.Double,
    -- | The number of occurrences that matched the rule during this data point.
    --
    -- This statistic is returned only if you included it in the @Metrics@
    -- array in your request.
    InsightRuleMetricDatapoint -> Maybe Double
sampleCount :: Prelude.Maybe Prelude.Double,
    -- | The sum of the values from all contributors during the time period
    -- represented by that data point.
    --
    -- This statistic is returned only if you included it in the @Metrics@
    -- array in your request.
    InsightRuleMetricDatapoint -> Maybe Double
sum :: Prelude.Maybe Prelude.Double,
    -- | The number of unique contributors who published data during this
    -- timestamp.
    --
    -- This statistic is returned only if you included it in the @Metrics@
    -- array in your request.
    InsightRuleMetricDatapoint -> Maybe Double
uniqueContributors :: Prelude.Maybe Prelude.Double,
    -- | The timestamp of the data point.
    InsightRuleMetricDatapoint -> ISO8601
timestamp :: Data.ISO8601
  }
  deriving (InsightRuleMetricDatapoint -> InsightRuleMetricDatapoint -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InsightRuleMetricDatapoint -> InsightRuleMetricDatapoint -> Bool
$c/= :: InsightRuleMetricDatapoint -> InsightRuleMetricDatapoint -> Bool
== :: InsightRuleMetricDatapoint -> InsightRuleMetricDatapoint -> Bool
$c== :: InsightRuleMetricDatapoint -> InsightRuleMetricDatapoint -> Bool
Prelude.Eq, ReadPrec [InsightRuleMetricDatapoint]
ReadPrec InsightRuleMetricDatapoint
Int -> ReadS InsightRuleMetricDatapoint
ReadS [InsightRuleMetricDatapoint]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InsightRuleMetricDatapoint]
$creadListPrec :: ReadPrec [InsightRuleMetricDatapoint]
readPrec :: ReadPrec InsightRuleMetricDatapoint
$creadPrec :: ReadPrec InsightRuleMetricDatapoint
readList :: ReadS [InsightRuleMetricDatapoint]
$creadList :: ReadS [InsightRuleMetricDatapoint]
readsPrec :: Int -> ReadS InsightRuleMetricDatapoint
$creadsPrec :: Int -> ReadS InsightRuleMetricDatapoint
Prelude.Read, Int -> InsightRuleMetricDatapoint -> ShowS
[InsightRuleMetricDatapoint] -> ShowS
InsightRuleMetricDatapoint -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InsightRuleMetricDatapoint] -> ShowS
$cshowList :: [InsightRuleMetricDatapoint] -> ShowS
show :: InsightRuleMetricDatapoint -> String
$cshow :: InsightRuleMetricDatapoint -> String
showsPrec :: Int -> InsightRuleMetricDatapoint -> ShowS
$cshowsPrec :: Int -> InsightRuleMetricDatapoint -> ShowS
Prelude.Show, forall x.
Rep InsightRuleMetricDatapoint x -> InsightRuleMetricDatapoint
forall x.
InsightRuleMetricDatapoint -> Rep InsightRuleMetricDatapoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InsightRuleMetricDatapoint x -> InsightRuleMetricDatapoint
$cfrom :: forall x.
InsightRuleMetricDatapoint -> Rep InsightRuleMetricDatapoint x
Prelude.Generic)

-- |
-- Create a value of 'InsightRuleMetricDatapoint' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'average', 'insightRuleMetricDatapoint_average' - The average value from all contributors during the time period
-- represented by that data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
--
-- 'maxContributorValue', 'insightRuleMetricDatapoint_maxContributorValue' - The maximum value provided by one contributor during this timestamp.
-- Each timestamp is evaluated separately, so the identity of the max
-- contributor could be different for each timestamp.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
--
-- 'maximum', 'insightRuleMetricDatapoint_maximum' - The maximum value from a single occurence from a single contributor
-- during the time period represented by that data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
--
-- 'minimum', 'insightRuleMetricDatapoint_minimum' - The minimum value from a single contributor during the time period
-- represented by that data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
--
-- 'sampleCount', 'insightRuleMetricDatapoint_sampleCount' - The number of occurrences that matched the rule during this data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
--
-- 'sum', 'insightRuleMetricDatapoint_sum' - The sum of the values from all contributors during the time period
-- represented by that data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
--
-- 'uniqueContributors', 'insightRuleMetricDatapoint_uniqueContributors' - The number of unique contributors who published data during this
-- timestamp.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
--
-- 'timestamp', 'insightRuleMetricDatapoint_timestamp' - The timestamp of the data point.
newInsightRuleMetricDatapoint ::
  -- | 'timestamp'
  Prelude.UTCTime ->
  InsightRuleMetricDatapoint
newInsightRuleMetricDatapoint :: UTCTime -> InsightRuleMetricDatapoint
newInsightRuleMetricDatapoint UTCTime
pTimestamp_ =
  InsightRuleMetricDatapoint'
    { $sel:average:InsightRuleMetricDatapoint' :: Maybe Double
average =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxContributorValue:InsightRuleMetricDatapoint' :: Maybe Double
maxContributorValue = forall a. Maybe a
Prelude.Nothing,
      $sel:maximum:InsightRuleMetricDatapoint' :: Maybe Double
maximum = forall a. Maybe a
Prelude.Nothing,
      $sel:minimum:InsightRuleMetricDatapoint' :: Maybe Double
minimum = forall a. Maybe a
Prelude.Nothing,
      $sel:sampleCount:InsightRuleMetricDatapoint' :: Maybe Double
sampleCount = forall a. Maybe a
Prelude.Nothing,
      $sel:sum:InsightRuleMetricDatapoint' :: Maybe Double
sum = forall a. Maybe a
Prelude.Nothing,
      $sel:uniqueContributors:InsightRuleMetricDatapoint' :: Maybe Double
uniqueContributors = forall a. Maybe a
Prelude.Nothing,
      $sel:timestamp:InsightRuleMetricDatapoint' :: ISO8601
timestamp = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pTimestamp_
    }

-- | The average value from all contributors during the time period
-- represented by that data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
insightRuleMetricDatapoint_average :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)
insightRuleMetricDatapoint_average :: Lens' InsightRuleMetricDatapoint (Maybe Double)
insightRuleMetricDatapoint_average = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InsightRuleMetricDatapoint' {Maybe Double
average :: Maybe Double
$sel:average:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
average} -> Maybe Double
average) (\s :: InsightRuleMetricDatapoint
s@InsightRuleMetricDatapoint' {} Maybe Double
a -> InsightRuleMetricDatapoint
s {$sel:average:InsightRuleMetricDatapoint' :: Maybe Double
average = Maybe Double
a} :: InsightRuleMetricDatapoint)

-- | The maximum value provided by one contributor during this timestamp.
-- Each timestamp is evaluated separately, so the identity of the max
-- contributor could be different for each timestamp.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
insightRuleMetricDatapoint_maxContributorValue :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)
insightRuleMetricDatapoint_maxContributorValue :: Lens' InsightRuleMetricDatapoint (Maybe Double)
insightRuleMetricDatapoint_maxContributorValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InsightRuleMetricDatapoint' {Maybe Double
maxContributorValue :: Maybe Double
$sel:maxContributorValue:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
maxContributorValue} -> Maybe Double
maxContributorValue) (\s :: InsightRuleMetricDatapoint
s@InsightRuleMetricDatapoint' {} Maybe Double
a -> InsightRuleMetricDatapoint
s {$sel:maxContributorValue:InsightRuleMetricDatapoint' :: Maybe Double
maxContributorValue = Maybe Double
a} :: InsightRuleMetricDatapoint)

-- | The maximum value from a single occurence from a single contributor
-- during the time period represented by that data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
insightRuleMetricDatapoint_maximum :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)
insightRuleMetricDatapoint_maximum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
insightRuleMetricDatapoint_maximum = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InsightRuleMetricDatapoint' {Maybe Double
maximum :: Maybe Double
$sel:maximum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
maximum} -> Maybe Double
maximum) (\s :: InsightRuleMetricDatapoint
s@InsightRuleMetricDatapoint' {} Maybe Double
a -> InsightRuleMetricDatapoint
s {$sel:maximum:InsightRuleMetricDatapoint' :: Maybe Double
maximum = Maybe Double
a} :: InsightRuleMetricDatapoint)

-- | The minimum value from a single contributor during the time period
-- represented by that data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
insightRuleMetricDatapoint_minimum :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)
insightRuleMetricDatapoint_minimum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
insightRuleMetricDatapoint_minimum = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InsightRuleMetricDatapoint' {Maybe Double
minimum :: Maybe Double
$sel:minimum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
minimum} -> Maybe Double
minimum) (\s :: InsightRuleMetricDatapoint
s@InsightRuleMetricDatapoint' {} Maybe Double
a -> InsightRuleMetricDatapoint
s {$sel:minimum:InsightRuleMetricDatapoint' :: Maybe Double
minimum = Maybe Double
a} :: InsightRuleMetricDatapoint)

-- | The number of occurrences that matched the rule during this data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
insightRuleMetricDatapoint_sampleCount :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)
insightRuleMetricDatapoint_sampleCount :: Lens' InsightRuleMetricDatapoint (Maybe Double)
insightRuleMetricDatapoint_sampleCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InsightRuleMetricDatapoint' {Maybe Double
sampleCount :: Maybe Double
$sel:sampleCount:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
sampleCount} -> Maybe Double
sampleCount) (\s :: InsightRuleMetricDatapoint
s@InsightRuleMetricDatapoint' {} Maybe Double
a -> InsightRuleMetricDatapoint
s {$sel:sampleCount:InsightRuleMetricDatapoint' :: Maybe Double
sampleCount = Maybe Double
a} :: InsightRuleMetricDatapoint)

-- | The sum of the values from all contributors during the time period
-- represented by that data point.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
insightRuleMetricDatapoint_sum :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)
insightRuleMetricDatapoint_sum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
insightRuleMetricDatapoint_sum = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InsightRuleMetricDatapoint' {Maybe Double
sum :: Maybe Double
$sel:sum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
sum} -> Maybe Double
sum) (\s :: InsightRuleMetricDatapoint
s@InsightRuleMetricDatapoint' {} Maybe Double
a -> InsightRuleMetricDatapoint
s {$sel:sum:InsightRuleMetricDatapoint' :: Maybe Double
sum = Maybe Double
a} :: InsightRuleMetricDatapoint)

-- | The number of unique contributors who published data during this
-- timestamp.
--
-- This statistic is returned only if you included it in the @Metrics@
-- array in your request.
insightRuleMetricDatapoint_uniqueContributors :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)
insightRuleMetricDatapoint_uniqueContributors :: Lens' InsightRuleMetricDatapoint (Maybe Double)
insightRuleMetricDatapoint_uniqueContributors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InsightRuleMetricDatapoint' {Maybe Double
uniqueContributors :: Maybe Double
$sel:uniqueContributors:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
uniqueContributors} -> Maybe Double
uniqueContributors) (\s :: InsightRuleMetricDatapoint
s@InsightRuleMetricDatapoint' {} Maybe Double
a -> InsightRuleMetricDatapoint
s {$sel:uniqueContributors:InsightRuleMetricDatapoint' :: Maybe Double
uniqueContributors = Maybe Double
a} :: InsightRuleMetricDatapoint)

-- | The timestamp of the data point.
insightRuleMetricDatapoint_timestamp :: Lens.Lens' InsightRuleMetricDatapoint Prelude.UTCTime
insightRuleMetricDatapoint_timestamp :: Lens' InsightRuleMetricDatapoint UTCTime
insightRuleMetricDatapoint_timestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InsightRuleMetricDatapoint' {ISO8601
timestamp :: ISO8601
$sel:timestamp:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> ISO8601
timestamp} -> ISO8601
timestamp) (\s :: InsightRuleMetricDatapoint
s@InsightRuleMetricDatapoint' {} ISO8601
a -> InsightRuleMetricDatapoint
s {$sel:timestamp:InsightRuleMetricDatapoint' :: ISO8601
timestamp = ISO8601
a} :: InsightRuleMetricDatapoint) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

instance Data.FromXML InsightRuleMetricDatapoint where
  parseXML :: [Node] -> Either String InsightRuleMetricDatapoint
parseXML [Node]
x =
    Maybe Double
-> Maybe Double
-> Maybe Double
-> Maybe Double
-> Maybe Double
-> Maybe Double
-> Maybe Double
-> ISO8601
-> InsightRuleMetricDatapoint
InsightRuleMetricDatapoint'
      forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Average")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"MaxContributorValue")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Maximum")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Minimum")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"SampleCount")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Sum")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"UniqueContributors")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String a
Data..@ Text
"Timestamp")

instance Prelude.Hashable InsightRuleMetricDatapoint where
  hashWithSalt :: Int -> InsightRuleMetricDatapoint -> Int
hashWithSalt Int
_salt InsightRuleMetricDatapoint' {Maybe Double
ISO8601
timestamp :: ISO8601
uniqueContributors :: Maybe Double
sum :: Maybe Double
sampleCount :: Maybe Double
minimum :: Maybe Double
maximum :: Maybe Double
maxContributorValue :: Maybe Double
average :: Maybe Double
$sel:timestamp:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> ISO8601
$sel:uniqueContributors:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:sum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:sampleCount:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:minimum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:maximum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:maxContributorValue:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:average:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
average
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
maxContributorValue
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
maximum
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
minimum
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
sampleCount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
sum
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
uniqueContributors
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
timestamp

instance Prelude.NFData InsightRuleMetricDatapoint where
  rnf :: InsightRuleMetricDatapoint -> ()
rnf InsightRuleMetricDatapoint' {Maybe Double
ISO8601
timestamp :: ISO8601
uniqueContributors :: Maybe Double
sum :: Maybe Double
sampleCount :: Maybe Double
minimum :: Maybe Double
maximum :: Maybe Double
maxContributorValue :: Maybe Double
average :: Maybe Double
$sel:timestamp:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> ISO8601
$sel:uniqueContributors:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:sum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:sampleCount:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:minimum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:maximum:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:maxContributorValue:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
$sel:average:InsightRuleMetricDatapoint' :: InsightRuleMetricDatapoint -> Maybe Double
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
average
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
maxContributorValue
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
maximum
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
minimum
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
sampleCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
sum
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
uniqueContributors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
timestamp