{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AutoScaling.Types.MetricStatistic
( MetricStatistic
( ..,
MetricStatistic_Average,
MetricStatistic_Maximum,
MetricStatistic_Minimum,
MetricStatistic_SampleCount,
MetricStatistic_Sum
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype MetricStatistic = MetricStatistic'
{ MetricStatistic -> Text
fromMetricStatistic ::
Data.Text
}
deriving stock
( Int -> MetricStatistic -> ShowS
[MetricStatistic] -> ShowS
MetricStatistic -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MetricStatistic] -> ShowS
$cshowList :: [MetricStatistic] -> ShowS
show :: MetricStatistic -> String
$cshow :: MetricStatistic -> String
showsPrec :: Int -> MetricStatistic -> ShowS
$cshowsPrec :: Int -> MetricStatistic -> ShowS
Prelude.Show,
ReadPrec [MetricStatistic]
ReadPrec MetricStatistic
Int -> ReadS MetricStatistic
ReadS [MetricStatistic]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MetricStatistic]
$creadListPrec :: ReadPrec [MetricStatistic]
readPrec :: ReadPrec MetricStatistic
$creadPrec :: ReadPrec MetricStatistic
readList :: ReadS [MetricStatistic]
$creadList :: ReadS [MetricStatistic]
readsPrec :: Int -> ReadS MetricStatistic
$creadsPrec :: Int -> ReadS MetricStatistic
Prelude.Read,
MetricStatistic -> MetricStatistic -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MetricStatistic -> MetricStatistic -> Bool
$c/= :: MetricStatistic -> MetricStatistic -> Bool
== :: MetricStatistic -> MetricStatistic -> Bool
$c== :: MetricStatistic -> MetricStatistic -> Bool
Prelude.Eq,
Eq MetricStatistic
MetricStatistic -> MetricStatistic -> Bool
MetricStatistic -> MetricStatistic -> Ordering
MetricStatistic -> MetricStatistic -> MetricStatistic
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: MetricStatistic -> MetricStatistic -> MetricStatistic
$cmin :: MetricStatistic -> MetricStatistic -> MetricStatistic
max :: MetricStatistic -> MetricStatistic -> MetricStatistic
$cmax :: MetricStatistic -> MetricStatistic -> MetricStatistic
>= :: MetricStatistic -> MetricStatistic -> Bool
$c>= :: MetricStatistic -> MetricStatistic -> Bool
> :: MetricStatistic -> MetricStatistic -> Bool
$c> :: MetricStatistic -> MetricStatistic -> Bool
<= :: MetricStatistic -> MetricStatistic -> Bool
$c<= :: MetricStatistic -> MetricStatistic -> Bool
< :: MetricStatistic -> MetricStatistic -> Bool
$c< :: MetricStatistic -> MetricStatistic -> Bool
compare :: MetricStatistic -> MetricStatistic -> Ordering
$ccompare :: MetricStatistic -> MetricStatistic -> Ordering
Prelude.Ord,
forall x. Rep MetricStatistic x -> MetricStatistic
forall x. MetricStatistic -> Rep MetricStatistic x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MetricStatistic x -> MetricStatistic
$cfrom :: forall x. MetricStatistic -> Rep MetricStatistic x
Prelude.Generic
)
deriving newtype
( Eq MetricStatistic
Int -> MetricStatistic -> Int
MetricStatistic -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MetricStatistic -> Int
$chash :: MetricStatistic -> Int
hashWithSalt :: Int -> MetricStatistic -> Int
$chashWithSalt :: Int -> MetricStatistic -> Int
Prelude.Hashable,
MetricStatistic -> ()
forall a. (a -> ()) -> NFData a
rnf :: MetricStatistic -> ()
$crnf :: MetricStatistic -> ()
Prelude.NFData,
Text -> Either String MetricStatistic
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MetricStatistic
$cfromText :: Text -> Either String MetricStatistic
Data.FromText,
MetricStatistic -> Text
forall a. (a -> Text) -> ToText a
toText :: MetricStatistic -> Text
$ctoText :: MetricStatistic -> Text
Data.ToText,
MetricStatistic -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MetricStatistic -> ByteString
$ctoBS :: MetricStatistic -> ByteString
Data.ToByteString,
MetricStatistic -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MetricStatistic -> ByteStringBuilder
$cbuild :: MetricStatistic -> ByteStringBuilder
Data.ToLog,
HeaderName -> MetricStatistic -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MetricStatistic -> [Header]
$ctoHeader :: HeaderName -> MetricStatistic -> [Header]
Data.ToHeader,
MetricStatistic -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MetricStatistic -> QueryString
$ctoQuery :: MetricStatistic -> QueryString
Data.ToQuery,
Value -> Parser [MetricStatistic]
Value -> Parser MetricStatistic
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MetricStatistic]
$cparseJSONList :: Value -> Parser [MetricStatistic]
parseJSON :: Value -> Parser MetricStatistic
$cparseJSON :: Value -> Parser MetricStatistic
Data.FromJSON,
FromJSONKeyFunction [MetricStatistic]
FromJSONKeyFunction MetricStatistic
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MetricStatistic]
$cfromJSONKeyList :: FromJSONKeyFunction [MetricStatistic]
fromJSONKey :: FromJSONKeyFunction MetricStatistic
$cfromJSONKey :: FromJSONKeyFunction MetricStatistic
Data.FromJSONKey,
[MetricStatistic] -> Encoding
[MetricStatistic] -> Value
MetricStatistic -> Encoding
MetricStatistic -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MetricStatistic] -> Encoding
$ctoEncodingList :: [MetricStatistic] -> Encoding
toJSONList :: [MetricStatistic] -> Value
$ctoJSONList :: [MetricStatistic] -> Value
toEncoding :: MetricStatistic -> Encoding
$ctoEncoding :: MetricStatistic -> Encoding
toJSON :: MetricStatistic -> Value
$ctoJSON :: MetricStatistic -> Value
Data.ToJSON,
ToJSONKeyFunction [MetricStatistic]
ToJSONKeyFunction MetricStatistic
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MetricStatistic]
$ctoJSONKeyList :: ToJSONKeyFunction [MetricStatistic]
toJSONKey :: ToJSONKeyFunction MetricStatistic
$ctoJSONKey :: ToJSONKeyFunction MetricStatistic
Data.ToJSONKey,
[Node] -> Either String MetricStatistic
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MetricStatistic
$cparseXML :: [Node] -> Either String MetricStatistic
Data.FromXML,
MetricStatistic -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MetricStatistic -> XML
$ctoXML :: MetricStatistic -> XML
Data.ToXML
)
pattern MetricStatistic_Average :: MetricStatistic
pattern $bMetricStatistic_Average :: MetricStatistic
$mMetricStatistic_Average :: forall {r}. MetricStatistic -> ((# #) -> r) -> ((# #) -> r) -> r
MetricStatistic_Average = MetricStatistic' "Average"
pattern MetricStatistic_Maximum :: MetricStatistic
pattern $bMetricStatistic_Maximum :: MetricStatistic
$mMetricStatistic_Maximum :: forall {r}. MetricStatistic -> ((# #) -> r) -> ((# #) -> r) -> r
MetricStatistic_Maximum = MetricStatistic' "Maximum"
pattern MetricStatistic_Minimum :: MetricStatistic
pattern $bMetricStatistic_Minimum :: MetricStatistic
$mMetricStatistic_Minimum :: forall {r}. MetricStatistic -> ((# #) -> r) -> ((# #) -> r) -> r
MetricStatistic_Minimum = MetricStatistic' "Minimum"
pattern MetricStatistic_SampleCount :: MetricStatistic
pattern $bMetricStatistic_SampleCount :: MetricStatistic
$mMetricStatistic_SampleCount :: forall {r}. MetricStatistic -> ((# #) -> r) -> ((# #) -> r) -> r
MetricStatistic_SampleCount = MetricStatistic' "SampleCount"
pattern MetricStatistic_Sum :: MetricStatistic
pattern $bMetricStatistic_Sum :: MetricStatistic
$mMetricStatistic_Sum :: forall {r}. MetricStatistic -> ((# #) -> r) -> ((# #) -> r) -> r
MetricStatistic_Sum = MetricStatistic' "Sum"
{-# COMPLETE
MetricStatistic_Average,
MetricStatistic_Maximum,
MetricStatistic_Minimum,
MetricStatistic_SampleCount,
MetricStatistic_Sum,
MetricStatistic'
#-}