{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Lightsail.Types.MetricName
( MetricName
( ..,
MetricName_BurstCapacityPercentage,
MetricName_BurstCapacityTime,
MetricName_CPUUtilization,
MetricName_ClientTLSNegotiationErrorCount,
MetricName_DatabaseConnections,
MetricName_DiskQueueDepth,
MetricName_FreeStorageSpace,
MetricName_HTTPCode_Instance_2XX_Count,
MetricName_HTTPCode_Instance_3XX_Count,
MetricName_HTTPCode_Instance_4XX_Count,
MetricName_HTTPCode_Instance_5XX_Count,
MetricName_HTTPCode_LB_4XX_Count,
MetricName_HTTPCode_LB_5XX_Count,
MetricName_HealthyHostCount,
MetricName_InstanceResponseTime,
MetricName_NetworkIn,
MetricName_NetworkOut,
MetricName_NetworkReceiveThroughput,
MetricName_NetworkTransmitThroughput,
MetricName_RejectedConnectionCount,
MetricName_RequestCount,
MetricName_StatusCheckFailed,
MetricName_StatusCheckFailed_Instance,
MetricName_StatusCheckFailed_System,
MetricName_UnhealthyHostCount
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype MetricName = MetricName'
{ MetricName -> Text
fromMetricName ::
Core.Text
}
deriving stock
( Int -> MetricName -> ShowS
[MetricName] -> ShowS
MetricName -> String
(Int -> MetricName -> ShowS)
-> (MetricName -> String)
-> ([MetricName] -> ShowS)
-> Show MetricName
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MetricName] -> ShowS
$cshowList :: [MetricName] -> ShowS
show :: MetricName -> String
$cshow :: MetricName -> String
showsPrec :: Int -> MetricName -> ShowS
$cshowsPrec :: Int -> MetricName -> ShowS
Prelude.Show,
ReadPrec [MetricName]
ReadPrec MetricName
Int -> ReadS MetricName
ReadS [MetricName]
(Int -> ReadS MetricName)
-> ReadS [MetricName]
-> ReadPrec MetricName
-> ReadPrec [MetricName]
-> Read MetricName
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MetricName]
$creadListPrec :: ReadPrec [MetricName]
readPrec :: ReadPrec MetricName
$creadPrec :: ReadPrec MetricName
readList :: ReadS [MetricName]
$creadList :: ReadS [MetricName]
readsPrec :: Int -> ReadS MetricName
$creadsPrec :: Int -> ReadS MetricName
Prelude.Read,
MetricName -> MetricName -> Bool
(MetricName -> MetricName -> Bool)
-> (MetricName -> MetricName -> Bool) -> Eq MetricName
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MetricName -> MetricName -> Bool
$c/= :: MetricName -> MetricName -> Bool
== :: MetricName -> MetricName -> Bool
$c== :: MetricName -> MetricName -> Bool
Prelude.Eq,
Eq MetricName
Eq MetricName
-> (MetricName -> MetricName -> Ordering)
-> (MetricName -> MetricName -> Bool)
-> (MetricName -> MetricName -> Bool)
-> (MetricName -> MetricName -> Bool)
-> (MetricName -> MetricName -> Bool)
-> (MetricName -> MetricName -> MetricName)
-> (MetricName -> MetricName -> MetricName)
-> Ord MetricName
MetricName -> MetricName -> Bool
MetricName -> MetricName -> Ordering
MetricName -> MetricName -> MetricName
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 :: MetricName -> MetricName -> MetricName
$cmin :: MetricName -> MetricName -> MetricName
max :: MetricName -> MetricName -> MetricName
$cmax :: MetricName -> MetricName -> MetricName
>= :: MetricName -> MetricName -> Bool
$c>= :: MetricName -> MetricName -> Bool
> :: MetricName -> MetricName -> Bool
$c> :: MetricName -> MetricName -> Bool
<= :: MetricName -> MetricName -> Bool
$c<= :: MetricName -> MetricName -> Bool
< :: MetricName -> MetricName -> Bool
$c< :: MetricName -> MetricName -> Bool
compare :: MetricName -> MetricName -> Ordering
$ccompare :: MetricName -> MetricName -> Ordering
$cp1Ord :: Eq MetricName
Prelude.Ord,
(forall x. MetricName -> Rep MetricName x)
-> (forall x. Rep MetricName x -> MetricName) -> Generic MetricName
forall x. Rep MetricName x -> MetricName
forall x. MetricName -> Rep MetricName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MetricName x -> MetricName
$cfrom :: forall x. MetricName -> Rep MetricName x
Prelude.Generic
)
deriving newtype
( Int -> MetricName -> Int
MetricName -> Int
(Int -> MetricName -> Int)
-> (MetricName -> Int) -> Hashable MetricName
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MetricName -> Int
$chash :: MetricName -> Int
hashWithSalt :: Int -> MetricName -> Int
$chashWithSalt :: Int -> MetricName -> Int
Prelude.Hashable,
MetricName -> ()
(MetricName -> ()) -> NFData MetricName
forall a. (a -> ()) -> NFData a
rnf :: MetricName -> ()
$crnf :: MetricName -> ()
Prelude.NFData,
Text -> Either String MetricName
(Text -> Either String MetricName) -> FromText MetricName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MetricName
$cfromText :: Text -> Either String MetricName
Core.FromText,
MetricName -> Text
(MetricName -> Text) -> ToText MetricName
forall a. (a -> Text) -> ToText a
toText :: MetricName -> Text
$ctoText :: MetricName -> Text
Core.ToText,
MetricName -> ByteString
(MetricName -> ByteString) -> ToByteString MetricName
forall a. (a -> ByteString) -> ToByteString a
toBS :: MetricName -> ByteString
$ctoBS :: MetricName -> ByteString
Core.ToByteString,
MetricName -> ByteStringBuilder
(MetricName -> ByteStringBuilder) -> ToLog MetricName
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MetricName -> ByteStringBuilder
$cbuild :: MetricName -> ByteStringBuilder
Core.ToLog,
HeaderName -> MetricName -> [Header]
(HeaderName -> MetricName -> [Header]) -> ToHeader MetricName
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MetricName -> [Header]
$ctoHeader :: HeaderName -> MetricName -> [Header]
Core.ToHeader,
MetricName -> QueryString
(MetricName -> QueryString) -> ToQuery MetricName
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MetricName -> QueryString
$ctoQuery :: MetricName -> QueryString
Core.ToQuery,
Value -> Parser [MetricName]
Value -> Parser MetricName
(Value -> Parser MetricName)
-> (Value -> Parser [MetricName]) -> FromJSON MetricName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MetricName]
$cparseJSONList :: Value -> Parser [MetricName]
parseJSON :: Value -> Parser MetricName
$cparseJSON :: Value -> Parser MetricName
Core.FromJSON,
FromJSONKeyFunction [MetricName]
FromJSONKeyFunction MetricName
FromJSONKeyFunction MetricName
-> FromJSONKeyFunction [MetricName] -> FromJSONKey MetricName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MetricName]
$cfromJSONKeyList :: FromJSONKeyFunction [MetricName]
fromJSONKey :: FromJSONKeyFunction MetricName
$cfromJSONKey :: FromJSONKeyFunction MetricName
Core.FromJSONKey,
[MetricName] -> Encoding
[MetricName] -> Value
MetricName -> Encoding
MetricName -> Value
(MetricName -> Value)
-> (MetricName -> Encoding)
-> ([MetricName] -> Value)
-> ([MetricName] -> Encoding)
-> ToJSON MetricName
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MetricName] -> Encoding
$ctoEncodingList :: [MetricName] -> Encoding
toJSONList :: [MetricName] -> Value
$ctoJSONList :: [MetricName] -> Value
toEncoding :: MetricName -> Encoding
$ctoEncoding :: MetricName -> Encoding
toJSON :: MetricName -> Value
$ctoJSON :: MetricName -> Value
Core.ToJSON,
ToJSONKeyFunction [MetricName]
ToJSONKeyFunction MetricName
ToJSONKeyFunction MetricName
-> ToJSONKeyFunction [MetricName] -> ToJSONKey MetricName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MetricName]
$ctoJSONKeyList :: ToJSONKeyFunction [MetricName]
toJSONKey :: ToJSONKeyFunction MetricName
$ctoJSONKey :: ToJSONKeyFunction MetricName
Core.ToJSONKey,
[Node] -> Either String MetricName
([Node] -> Either String MetricName) -> FromXML MetricName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MetricName
$cparseXML :: [Node] -> Either String MetricName
Core.FromXML,
MetricName -> XML
(MetricName -> XML) -> ToXML MetricName
forall a. (a -> XML) -> ToXML a
toXML :: MetricName -> XML
$ctoXML :: MetricName -> XML
Core.ToXML
)
pattern MetricName_BurstCapacityPercentage :: MetricName
pattern $bMetricName_BurstCapacityPercentage :: MetricName
$mMetricName_BurstCapacityPercentage :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_BurstCapacityPercentage = MetricName' "BurstCapacityPercentage"
pattern MetricName_BurstCapacityTime :: MetricName
pattern $bMetricName_BurstCapacityTime :: MetricName
$mMetricName_BurstCapacityTime :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_BurstCapacityTime = MetricName' "BurstCapacityTime"
pattern MetricName_CPUUtilization :: MetricName
pattern $bMetricName_CPUUtilization :: MetricName
$mMetricName_CPUUtilization :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_CPUUtilization = MetricName' "CPUUtilization"
pattern MetricName_ClientTLSNegotiationErrorCount :: MetricName
pattern $bMetricName_ClientTLSNegotiationErrorCount :: MetricName
$mMetricName_ClientTLSNegotiationErrorCount :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_ClientTLSNegotiationErrorCount = MetricName' "ClientTLSNegotiationErrorCount"
pattern MetricName_DatabaseConnections :: MetricName
pattern $bMetricName_DatabaseConnections :: MetricName
$mMetricName_DatabaseConnections :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_DatabaseConnections = MetricName' "DatabaseConnections"
pattern MetricName_DiskQueueDepth :: MetricName
pattern $bMetricName_DiskQueueDepth :: MetricName
$mMetricName_DiskQueueDepth :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_DiskQueueDepth = MetricName' "DiskQueueDepth"
pattern MetricName_FreeStorageSpace :: MetricName
pattern $bMetricName_FreeStorageSpace :: MetricName
$mMetricName_FreeStorageSpace :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_FreeStorageSpace = MetricName' "FreeStorageSpace"
pattern MetricName_HTTPCode_Instance_2XX_Count :: MetricName
pattern $bMetricName_HTTPCode_Instance_2XX_Count :: MetricName
$mMetricName_HTTPCode_Instance_2XX_Count :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_HTTPCode_Instance_2XX_Count = MetricName' "HTTPCode_Instance_2XX_Count"
pattern MetricName_HTTPCode_Instance_3XX_Count :: MetricName
pattern $bMetricName_HTTPCode_Instance_3XX_Count :: MetricName
$mMetricName_HTTPCode_Instance_3XX_Count :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_HTTPCode_Instance_3XX_Count = MetricName' "HTTPCode_Instance_3XX_Count"
pattern MetricName_HTTPCode_Instance_4XX_Count :: MetricName
pattern $bMetricName_HTTPCode_Instance_4XX_Count :: MetricName
$mMetricName_HTTPCode_Instance_4XX_Count :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_HTTPCode_Instance_4XX_Count = MetricName' "HTTPCode_Instance_4XX_Count"
pattern MetricName_HTTPCode_Instance_5XX_Count :: MetricName
pattern $bMetricName_HTTPCode_Instance_5XX_Count :: MetricName
$mMetricName_HTTPCode_Instance_5XX_Count :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_HTTPCode_Instance_5XX_Count = MetricName' "HTTPCode_Instance_5XX_Count"
pattern MetricName_HTTPCode_LB_4XX_Count :: MetricName
pattern $bMetricName_HTTPCode_LB_4XX_Count :: MetricName
$mMetricName_HTTPCode_LB_4XX_Count :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_HTTPCode_LB_4XX_Count = MetricName' "HTTPCode_LB_4XX_Count"
pattern MetricName_HTTPCode_LB_5XX_Count :: MetricName
pattern $bMetricName_HTTPCode_LB_5XX_Count :: MetricName
$mMetricName_HTTPCode_LB_5XX_Count :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_HTTPCode_LB_5XX_Count = MetricName' "HTTPCode_LB_5XX_Count"
pattern MetricName_HealthyHostCount :: MetricName
pattern $bMetricName_HealthyHostCount :: MetricName
$mMetricName_HealthyHostCount :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_HealthyHostCount = MetricName' "HealthyHostCount"
pattern MetricName_InstanceResponseTime :: MetricName
pattern $bMetricName_InstanceResponseTime :: MetricName
$mMetricName_InstanceResponseTime :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_InstanceResponseTime = MetricName' "InstanceResponseTime"
pattern MetricName_NetworkIn :: MetricName
pattern $bMetricName_NetworkIn :: MetricName
$mMetricName_NetworkIn :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_NetworkIn = MetricName' "NetworkIn"
pattern MetricName_NetworkOut :: MetricName
pattern $bMetricName_NetworkOut :: MetricName
$mMetricName_NetworkOut :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_NetworkOut = MetricName' "NetworkOut"
pattern MetricName_NetworkReceiveThroughput :: MetricName
pattern $bMetricName_NetworkReceiveThroughput :: MetricName
$mMetricName_NetworkReceiveThroughput :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_NetworkReceiveThroughput = MetricName' "NetworkReceiveThroughput"
pattern MetricName_NetworkTransmitThroughput :: MetricName
pattern $bMetricName_NetworkTransmitThroughput :: MetricName
$mMetricName_NetworkTransmitThroughput :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_NetworkTransmitThroughput = MetricName' "NetworkTransmitThroughput"
pattern MetricName_RejectedConnectionCount :: MetricName
pattern $bMetricName_RejectedConnectionCount :: MetricName
$mMetricName_RejectedConnectionCount :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_RejectedConnectionCount = MetricName' "RejectedConnectionCount"
pattern MetricName_RequestCount :: MetricName
pattern $bMetricName_RequestCount :: MetricName
$mMetricName_RequestCount :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_RequestCount = MetricName' "RequestCount"
pattern MetricName_StatusCheckFailed :: MetricName
pattern $bMetricName_StatusCheckFailed :: MetricName
$mMetricName_StatusCheckFailed :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_StatusCheckFailed = MetricName' "StatusCheckFailed"
pattern MetricName_StatusCheckFailed_Instance :: MetricName
pattern $bMetricName_StatusCheckFailed_Instance :: MetricName
$mMetricName_StatusCheckFailed_Instance :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_StatusCheckFailed_Instance = MetricName' "StatusCheckFailed_Instance"
pattern MetricName_StatusCheckFailed_System :: MetricName
pattern $bMetricName_StatusCheckFailed_System :: MetricName
$mMetricName_StatusCheckFailed_System :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_StatusCheckFailed_System = MetricName' "StatusCheckFailed_System"
pattern MetricName_UnhealthyHostCount :: MetricName
pattern $bMetricName_UnhealthyHostCount :: MetricName
$mMetricName_UnhealthyHostCount :: forall r. MetricName -> (Void# -> r) -> (Void# -> r) -> r
MetricName_UnhealthyHostCount = MetricName' "UnhealthyHostCount"
{-# COMPLETE
MetricName_BurstCapacityPercentage,
MetricName_BurstCapacityTime,
MetricName_CPUUtilization,
MetricName_ClientTLSNegotiationErrorCount,
MetricName_DatabaseConnections,
MetricName_DiskQueueDepth,
MetricName_FreeStorageSpace,
MetricName_HTTPCode_Instance_2XX_Count,
MetricName_HTTPCode_Instance_3XX_Count,
MetricName_HTTPCode_Instance_4XX_Count,
MetricName_HTTPCode_Instance_5XX_Count,
MetricName_HTTPCode_LB_4XX_Count,
MetricName_HTTPCode_LB_5XX_Count,
MetricName_HealthyHostCount,
MetricName_InstanceResponseTime,
MetricName_NetworkIn,
MetricName_NetworkOut,
MetricName_NetworkReceiveThroughput,
MetricName_NetworkTransmitThroughput,
MetricName_RejectedConnectionCount,
MetricName_RequestCount,
MetricName_StatusCheckFailed,
MetricName_StatusCheckFailed_Instance,
MetricName_StatusCheckFailed_System,
MetricName_UnhealthyHostCount,
MetricName'
#-}