{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CodeGuruProfiler.Types.MetricType
( MetricType
( ..,
MetricType_AggregatedRelativeTotalTime
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype MetricType = MetricType'
{ MetricType -> Text
fromMetricType ::
Core.Text
}
deriving stock
( Int -> MetricType -> ShowS
[MetricType] -> ShowS
MetricType -> String
(Int -> MetricType -> ShowS)
-> (MetricType -> String)
-> ([MetricType] -> ShowS)
-> Show MetricType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MetricType] -> ShowS
$cshowList :: [MetricType] -> ShowS
show :: MetricType -> String
$cshow :: MetricType -> String
showsPrec :: Int -> MetricType -> ShowS
$cshowsPrec :: Int -> MetricType -> ShowS
Prelude.Show,
ReadPrec [MetricType]
ReadPrec MetricType
Int -> ReadS MetricType
ReadS [MetricType]
(Int -> ReadS MetricType)
-> ReadS [MetricType]
-> ReadPrec MetricType
-> ReadPrec [MetricType]
-> Read MetricType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MetricType]
$creadListPrec :: ReadPrec [MetricType]
readPrec :: ReadPrec MetricType
$creadPrec :: ReadPrec MetricType
readList :: ReadS [MetricType]
$creadList :: ReadS [MetricType]
readsPrec :: Int -> ReadS MetricType
$creadsPrec :: Int -> ReadS MetricType
Prelude.Read,
MetricType -> MetricType -> Bool
(MetricType -> MetricType -> Bool)
-> (MetricType -> MetricType -> Bool) -> Eq MetricType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MetricType -> MetricType -> Bool
$c/= :: MetricType -> MetricType -> Bool
== :: MetricType -> MetricType -> Bool
$c== :: MetricType -> MetricType -> Bool
Prelude.Eq,
Eq MetricType
Eq MetricType
-> (MetricType -> MetricType -> Ordering)
-> (MetricType -> MetricType -> Bool)
-> (MetricType -> MetricType -> Bool)
-> (MetricType -> MetricType -> Bool)
-> (MetricType -> MetricType -> Bool)
-> (MetricType -> MetricType -> MetricType)
-> (MetricType -> MetricType -> MetricType)
-> Ord MetricType
MetricType -> MetricType -> Bool
MetricType -> MetricType -> Ordering
MetricType -> MetricType -> MetricType
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 :: MetricType -> MetricType -> MetricType
$cmin :: MetricType -> MetricType -> MetricType
max :: MetricType -> MetricType -> MetricType
$cmax :: MetricType -> MetricType -> MetricType
>= :: MetricType -> MetricType -> Bool
$c>= :: MetricType -> MetricType -> Bool
> :: MetricType -> MetricType -> Bool
$c> :: MetricType -> MetricType -> Bool
<= :: MetricType -> MetricType -> Bool
$c<= :: MetricType -> MetricType -> Bool
< :: MetricType -> MetricType -> Bool
$c< :: MetricType -> MetricType -> Bool
compare :: MetricType -> MetricType -> Ordering
$ccompare :: MetricType -> MetricType -> Ordering
$cp1Ord :: Eq MetricType
Prelude.Ord,
(forall x. MetricType -> Rep MetricType x)
-> (forall x. Rep MetricType x -> MetricType) -> Generic MetricType
forall x. Rep MetricType x -> MetricType
forall x. MetricType -> Rep MetricType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MetricType x -> MetricType
$cfrom :: forall x. MetricType -> Rep MetricType x
Prelude.Generic
)
deriving newtype
( Int -> MetricType -> Int
MetricType -> Int
(Int -> MetricType -> Int)
-> (MetricType -> Int) -> Hashable MetricType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MetricType -> Int
$chash :: MetricType -> Int
hashWithSalt :: Int -> MetricType -> Int
$chashWithSalt :: Int -> MetricType -> Int
Prelude.Hashable,
MetricType -> ()
(MetricType -> ()) -> NFData MetricType
forall a. (a -> ()) -> NFData a
rnf :: MetricType -> ()
$crnf :: MetricType -> ()
Prelude.NFData,
Text -> Either String MetricType
(Text -> Either String MetricType) -> FromText MetricType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MetricType
$cfromText :: Text -> Either String MetricType
Core.FromText,
MetricType -> Text
(MetricType -> Text) -> ToText MetricType
forall a. (a -> Text) -> ToText a
toText :: MetricType -> Text
$ctoText :: MetricType -> Text
Core.ToText,
MetricType -> ByteString
(MetricType -> ByteString) -> ToByteString MetricType
forall a. (a -> ByteString) -> ToByteString a
toBS :: MetricType -> ByteString
$ctoBS :: MetricType -> ByteString
Core.ToByteString,
MetricType -> ByteStringBuilder
(MetricType -> ByteStringBuilder) -> ToLog MetricType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MetricType -> ByteStringBuilder
$cbuild :: MetricType -> ByteStringBuilder
Core.ToLog,
HeaderName -> MetricType -> [Header]
(HeaderName -> MetricType -> [Header]) -> ToHeader MetricType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MetricType -> [Header]
$ctoHeader :: HeaderName -> MetricType -> [Header]
Core.ToHeader,
MetricType -> QueryString
(MetricType -> QueryString) -> ToQuery MetricType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MetricType -> QueryString
$ctoQuery :: MetricType -> QueryString
Core.ToQuery,
Value -> Parser [MetricType]
Value -> Parser MetricType
(Value -> Parser MetricType)
-> (Value -> Parser [MetricType]) -> FromJSON MetricType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MetricType]
$cparseJSONList :: Value -> Parser [MetricType]
parseJSON :: Value -> Parser MetricType
$cparseJSON :: Value -> Parser MetricType
Core.FromJSON,
FromJSONKeyFunction [MetricType]
FromJSONKeyFunction MetricType
FromJSONKeyFunction MetricType
-> FromJSONKeyFunction [MetricType] -> FromJSONKey MetricType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MetricType]
$cfromJSONKeyList :: FromJSONKeyFunction [MetricType]
fromJSONKey :: FromJSONKeyFunction MetricType
$cfromJSONKey :: FromJSONKeyFunction MetricType
Core.FromJSONKey,
[MetricType] -> Encoding
[MetricType] -> Value
MetricType -> Encoding
MetricType -> Value
(MetricType -> Value)
-> (MetricType -> Encoding)
-> ([MetricType] -> Value)
-> ([MetricType] -> Encoding)
-> ToJSON MetricType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MetricType] -> Encoding
$ctoEncodingList :: [MetricType] -> Encoding
toJSONList :: [MetricType] -> Value
$ctoJSONList :: [MetricType] -> Value
toEncoding :: MetricType -> Encoding
$ctoEncoding :: MetricType -> Encoding
toJSON :: MetricType -> Value
$ctoJSON :: MetricType -> Value
Core.ToJSON,
ToJSONKeyFunction [MetricType]
ToJSONKeyFunction MetricType
ToJSONKeyFunction MetricType
-> ToJSONKeyFunction [MetricType] -> ToJSONKey MetricType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MetricType]
$ctoJSONKeyList :: ToJSONKeyFunction [MetricType]
toJSONKey :: ToJSONKeyFunction MetricType
$ctoJSONKey :: ToJSONKeyFunction MetricType
Core.ToJSONKey,
[Node] -> Either String MetricType
([Node] -> Either String MetricType) -> FromXML MetricType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MetricType
$cparseXML :: [Node] -> Either String MetricType
Core.FromXML,
MetricType -> XML
(MetricType -> XML) -> ToXML MetricType
forall a. (a -> XML) -> ToXML a
toXML :: MetricType -> XML
$ctoXML :: MetricType -> XML
Core.ToXML
)
pattern MetricType_AggregatedRelativeTotalTime :: MetricType
pattern $bMetricType_AggregatedRelativeTotalTime :: MetricType
$mMetricType_AggregatedRelativeTotalTime :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_AggregatedRelativeTotalTime = MetricType' "AggregatedRelativeTotalTime"
{-# COMPLETE
MetricType_AggregatedRelativeTotalTime,
MetricType'
#-}