{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Lightsail.Types.MetricName
-- 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.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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype MetricName = MetricName'
  { MetricName -> Text
fromMetricName ::
      Data.Text
  }
  deriving stock
    ( Int -> MetricName -> ShowS
[MetricName] -> ShowS
MetricName -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq MetricName
Int -> MetricName -> Int
MetricName -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: MetricName -> ()
$crnf :: MetricName -> ()
Prelude.NFData,
      Text -> Either String MetricName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MetricName
$cfromText :: Text -> Either String MetricName
Data.FromText,
      MetricName -> Text
forall a. (a -> Text) -> ToText a
toText :: MetricName -> Text
$ctoText :: MetricName -> Text
Data.ToText,
      MetricName -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MetricName -> ByteString
$ctoBS :: MetricName -> ByteString
Data.ToByteString,
      MetricName -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MetricName -> ByteStringBuilder
$cbuild :: MetricName -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MetricName -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MetricName -> [Header]
$ctoHeader :: HeaderName -> MetricName -> [Header]
Data.ToHeader,
      MetricName -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MetricName -> QueryString
$ctoQuery :: MetricName -> QueryString
Data.ToQuery,
      Value -> Parser [MetricName]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [MetricName]
FromJSONKeyFunction MetricName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MetricName]
$cfromJSONKeyList :: FromJSONKeyFunction [MetricName]
fromJSONKey :: FromJSONKeyFunction MetricName
$cfromJSONKey :: FromJSONKeyFunction MetricName
Data.FromJSONKey,
      [MetricName] -> Encoding
[MetricName] -> Value
MetricName -> Encoding
MetricName -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [MetricName]
ToJSONKeyFunction MetricName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MetricName]
$ctoJSONKeyList :: ToJSONKeyFunction [MetricName]
toJSONKey :: ToJSONKeyFunction MetricName
$ctoJSONKey :: ToJSONKeyFunction MetricName
Data.ToJSONKey,
      [Node] -> Either String MetricName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MetricName
$cparseXML :: [Node] -> Either String MetricName
Data.FromXML,
      MetricName -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MetricName -> XML
$ctoXML :: MetricName -> XML
Data.ToXML
    )

pattern MetricName_BurstCapacityPercentage :: MetricName
pattern $bMetricName_BurstCapacityPercentage :: MetricName
$mMetricName_BurstCapacityPercentage :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_BurstCapacityPercentage = MetricName' "BurstCapacityPercentage"

pattern MetricName_BurstCapacityTime :: MetricName
pattern $bMetricName_BurstCapacityTime :: MetricName
$mMetricName_BurstCapacityTime :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_BurstCapacityTime = MetricName' "BurstCapacityTime"

pattern MetricName_CPUUtilization :: MetricName
pattern $bMetricName_CPUUtilization :: MetricName
$mMetricName_CPUUtilization :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_CPUUtilization = MetricName' "CPUUtilization"

pattern MetricName_ClientTLSNegotiationErrorCount :: MetricName
pattern $bMetricName_ClientTLSNegotiationErrorCount :: MetricName
$mMetricName_ClientTLSNegotiationErrorCount :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_ClientTLSNegotiationErrorCount = MetricName' "ClientTLSNegotiationErrorCount"

pattern MetricName_DatabaseConnections :: MetricName
pattern $bMetricName_DatabaseConnections :: MetricName
$mMetricName_DatabaseConnections :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_DatabaseConnections = MetricName' "DatabaseConnections"

pattern MetricName_DiskQueueDepth :: MetricName
pattern $bMetricName_DiskQueueDepth :: MetricName
$mMetricName_DiskQueueDepth :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_DiskQueueDepth = MetricName' "DiskQueueDepth"

pattern MetricName_FreeStorageSpace :: MetricName
pattern $bMetricName_FreeStorageSpace :: MetricName
$mMetricName_FreeStorageSpace :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_HealthyHostCount = MetricName' "HealthyHostCount"

pattern MetricName_InstanceResponseTime :: MetricName
pattern $bMetricName_InstanceResponseTime :: MetricName
$mMetricName_InstanceResponseTime :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_InstanceResponseTime = MetricName' "InstanceResponseTime"

pattern MetricName_NetworkIn :: MetricName
pattern $bMetricName_NetworkIn :: MetricName
$mMetricName_NetworkIn :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_NetworkIn = MetricName' "NetworkIn"

pattern MetricName_NetworkOut :: MetricName
pattern $bMetricName_NetworkOut :: MetricName
$mMetricName_NetworkOut :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_NetworkOut = MetricName' "NetworkOut"

pattern MetricName_NetworkReceiveThroughput :: MetricName
pattern $bMetricName_NetworkReceiveThroughput :: MetricName
$mMetricName_NetworkReceiveThroughput :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_NetworkReceiveThroughput = MetricName' "NetworkReceiveThroughput"

pattern MetricName_NetworkTransmitThroughput :: MetricName
pattern $bMetricName_NetworkTransmitThroughput :: MetricName
$mMetricName_NetworkTransmitThroughput :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_NetworkTransmitThroughput = MetricName' "NetworkTransmitThroughput"

pattern MetricName_RejectedConnectionCount :: MetricName
pattern $bMetricName_RejectedConnectionCount :: MetricName
$mMetricName_RejectedConnectionCount :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_RejectedConnectionCount = MetricName' "RejectedConnectionCount"

pattern MetricName_RequestCount :: MetricName
pattern $bMetricName_RequestCount :: MetricName
$mMetricName_RequestCount :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_RequestCount = MetricName' "RequestCount"

pattern MetricName_StatusCheckFailed :: MetricName
pattern $bMetricName_StatusCheckFailed :: MetricName
$mMetricName_StatusCheckFailed :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_StatusCheckFailed = MetricName' "StatusCheckFailed"

pattern MetricName_StatusCheckFailed_Instance :: MetricName
pattern $bMetricName_StatusCheckFailed_Instance :: MetricName
$mMetricName_StatusCheckFailed_Instance :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_StatusCheckFailed_Instance = MetricName' "StatusCheckFailed_Instance"

pattern MetricName_StatusCheckFailed_System :: MetricName
pattern $bMetricName_StatusCheckFailed_System :: MetricName
$mMetricName_StatusCheckFailed_System :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricName_StatusCheckFailed_System = MetricName' "StatusCheckFailed_System"

pattern MetricName_UnhealthyHostCount :: MetricName
pattern $bMetricName_UnhealthyHostCount :: MetricName
$mMetricName_UnhealthyHostCount :: forall {r}. MetricName -> ((# #) -> r) -> ((# #) -> 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'
  #-}