{-# 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.SageMaker.Types.MonitoringType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.MonitoringType
  ( MonitoringType
      ( ..,
        MonitoringType_DataQuality,
        MonitoringType_ModelBias,
        MonitoringType_ModelExplainability,
        MonitoringType_ModelQuality
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype MonitoringType = MonitoringType'
  { MonitoringType -> Text
fromMonitoringType ::
      Core.Text
  }
  deriving stock
    ( Int -> MonitoringType -> ShowS
[MonitoringType] -> ShowS
MonitoringType -> String
(Int -> MonitoringType -> ShowS)
-> (MonitoringType -> String)
-> ([MonitoringType] -> ShowS)
-> Show MonitoringType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MonitoringType] -> ShowS
$cshowList :: [MonitoringType] -> ShowS
show :: MonitoringType -> String
$cshow :: MonitoringType -> String
showsPrec :: Int -> MonitoringType -> ShowS
$cshowsPrec :: Int -> MonitoringType -> ShowS
Prelude.Show,
      ReadPrec [MonitoringType]
ReadPrec MonitoringType
Int -> ReadS MonitoringType
ReadS [MonitoringType]
(Int -> ReadS MonitoringType)
-> ReadS [MonitoringType]
-> ReadPrec MonitoringType
-> ReadPrec [MonitoringType]
-> Read MonitoringType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MonitoringType]
$creadListPrec :: ReadPrec [MonitoringType]
readPrec :: ReadPrec MonitoringType
$creadPrec :: ReadPrec MonitoringType
readList :: ReadS [MonitoringType]
$creadList :: ReadS [MonitoringType]
readsPrec :: Int -> ReadS MonitoringType
$creadsPrec :: Int -> ReadS MonitoringType
Prelude.Read,
      MonitoringType -> MonitoringType -> Bool
(MonitoringType -> MonitoringType -> Bool)
-> (MonitoringType -> MonitoringType -> Bool) -> Eq MonitoringType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MonitoringType -> MonitoringType -> Bool
$c/= :: MonitoringType -> MonitoringType -> Bool
== :: MonitoringType -> MonitoringType -> Bool
$c== :: MonitoringType -> MonitoringType -> Bool
Prelude.Eq,
      Eq MonitoringType
Eq MonitoringType
-> (MonitoringType -> MonitoringType -> Ordering)
-> (MonitoringType -> MonitoringType -> Bool)
-> (MonitoringType -> MonitoringType -> Bool)
-> (MonitoringType -> MonitoringType -> Bool)
-> (MonitoringType -> MonitoringType -> Bool)
-> (MonitoringType -> MonitoringType -> MonitoringType)
-> (MonitoringType -> MonitoringType -> MonitoringType)
-> Ord MonitoringType
MonitoringType -> MonitoringType -> Bool
MonitoringType -> MonitoringType -> Ordering
MonitoringType -> MonitoringType -> MonitoringType
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 :: MonitoringType -> MonitoringType -> MonitoringType
$cmin :: MonitoringType -> MonitoringType -> MonitoringType
max :: MonitoringType -> MonitoringType -> MonitoringType
$cmax :: MonitoringType -> MonitoringType -> MonitoringType
>= :: MonitoringType -> MonitoringType -> Bool
$c>= :: MonitoringType -> MonitoringType -> Bool
> :: MonitoringType -> MonitoringType -> Bool
$c> :: MonitoringType -> MonitoringType -> Bool
<= :: MonitoringType -> MonitoringType -> Bool
$c<= :: MonitoringType -> MonitoringType -> Bool
< :: MonitoringType -> MonitoringType -> Bool
$c< :: MonitoringType -> MonitoringType -> Bool
compare :: MonitoringType -> MonitoringType -> Ordering
$ccompare :: MonitoringType -> MonitoringType -> Ordering
$cp1Ord :: Eq MonitoringType
Prelude.Ord,
      (forall x. MonitoringType -> Rep MonitoringType x)
-> (forall x. Rep MonitoringType x -> MonitoringType)
-> Generic MonitoringType
forall x. Rep MonitoringType x -> MonitoringType
forall x. MonitoringType -> Rep MonitoringType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MonitoringType x -> MonitoringType
$cfrom :: forall x. MonitoringType -> Rep MonitoringType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> MonitoringType -> Int
MonitoringType -> Int
(Int -> MonitoringType -> Int)
-> (MonitoringType -> Int) -> Hashable MonitoringType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MonitoringType -> Int
$chash :: MonitoringType -> Int
hashWithSalt :: Int -> MonitoringType -> Int
$chashWithSalt :: Int -> MonitoringType -> Int
Prelude.Hashable,
      MonitoringType -> ()
(MonitoringType -> ()) -> NFData MonitoringType
forall a. (a -> ()) -> NFData a
rnf :: MonitoringType -> ()
$crnf :: MonitoringType -> ()
Prelude.NFData,
      Text -> Either String MonitoringType
(Text -> Either String MonitoringType) -> FromText MonitoringType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MonitoringType
$cfromText :: Text -> Either String MonitoringType
Core.FromText,
      MonitoringType -> Text
(MonitoringType -> Text) -> ToText MonitoringType
forall a. (a -> Text) -> ToText a
toText :: MonitoringType -> Text
$ctoText :: MonitoringType -> Text
Core.ToText,
      MonitoringType -> ByteString
(MonitoringType -> ByteString) -> ToByteString MonitoringType
forall a. (a -> ByteString) -> ToByteString a
toBS :: MonitoringType -> ByteString
$ctoBS :: MonitoringType -> ByteString
Core.ToByteString,
      MonitoringType -> ByteStringBuilder
(MonitoringType -> ByteStringBuilder) -> ToLog MonitoringType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MonitoringType -> ByteStringBuilder
$cbuild :: MonitoringType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> MonitoringType -> [Header]
(HeaderName -> MonitoringType -> [Header])
-> ToHeader MonitoringType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MonitoringType -> [Header]
$ctoHeader :: HeaderName -> MonitoringType -> [Header]
Core.ToHeader,
      MonitoringType -> QueryString
(MonitoringType -> QueryString) -> ToQuery MonitoringType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MonitoringType -> QueryString
$ctoQuery :: MonitoringType -> QueryString
Core.ToQuery,
      Value -> Parser [MonitoringType]
Value -> Parser MonitoringType
(Value -> Parser MonitoringType)
-> (Value -> Parser [MonitoringType]) -> FromJSON MonitoringType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MonitoringType]
$cparseJSONList :: Value -> Parser [MonitoringType]
parseJSON :: Value -> Parser MonitoringType
$cparseJSON :: Value -> Parser MonitoringType
Core.FromJSON,
      FromJSONKeyFunction [MonitoringType]
FromJSONKeyFunction MonitoringType
FromJSONKeyFunction MonitoringType
-> FromJSONKeyFunction [MonitoringType]
-> FromJSONKey MonitoringType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MonitoringType]
$cfromJSONKeyList :: FromJSONKeyFunction [MonitoringType]
fromJSONKey :: FromJSONKeyFunction MonitoringType
$cfromJSONKey :: FromJSONKeyFunction MonitoringType
Core.FromJSONKey,
      [MonitoringType] -> Encoding
[MonitoringType] -> Value
MonitoringType -> Encoding
MonitoringType -> Value
(MonitoringType -> Value)
-> (MonitoringType -> Encoding)
-> ([MonitoringType] -> Value)
-> ([MonitoringType] -> Encoding)
-> ToJSON MonitoringType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MonitoringType] -> Encoding
$ctoEncodingList :: [MonitoringType] -> Encoding
toJSONList :: [MonitoringType] -> Value
$ctoJSONList :: [MonitoringType] -> Value
toEncoding :: MonitoringType -> Encoding
$ctoEncoding :: MonitoringType -> Encoding
toJSON :: MonitoringType -> Value
$ctoJSON :: MonitoringType -> Value
Core.ToJSON,
      ToJSONKeyFunction [MonitoringType]
ToJSONKeyFunction MonitoringType
ToJSONKeyFunction MonitoringType
-> ToJSONKeyFunction [MonitoringType] -> ToJSONKey MonitoringType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MonitoringType]
$ctoJSONKeyList :: ToJSONKeyFunction [MonitoringType]
toJSONKey :: ToJSONKeyFunction MonitoringType
$ctoJSONKey :: ToJSONKeyFunction MonitoringType
Core.ToJSONKey,
      [Node] -> Either String MonitoringType
([Node] -> Either String MonitoringType) -> FromXML MonitoringType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MonitoringType
$cparseXML :: [Node] -> Either String MonitoringType
Core.FromXML,
      MonitoringType -> XML
(MonitoringType -> XML) -> ToXML MonitoringType
forall a. (a -> XML) -> ToXML a
toXML :: MonitoringType -> XML
$ctoXML :: MonitoringType -> XML
Core.ToXML
    )

pattern MonitoringType_DataQuality :: MonitoringType
pattern $bMonitoringType_DataQuality :: MonitoringType
$mMonitoringType_DataQuality :: forall r. MonitoringType -> (Void# -> r) -> (Void# -> r) -> r
MonitoringType_DataQuality = MonitoringType' "DataQuality"

pattern MonitoringType_ModelBias :: MonitoringType
pattern $bMonitoringType_ModelBias :: MonitoringType
$mMonitoringType_ModelBias :: forall r. MonitoringType -> (Void# -> r) -> (Void# -> r) -> r
MonitoringType_ModelBias = MonitoringType' "ModelBias"

pattern MonitoringType_ModelExplainability :: MonitoringType
pattern $bMonitoringType_ModelExplainability :: MonitoringType
$mMonitoringType_ModelExplainability :: forall r. MonitoringType -> (Void# -> r) -> (Void# -> r) -> r
MonitoringType_ModelExplainability = MonitoringType' "ModelExplainability"

pattern MonitoringType_ModelQuality :: MonitoringType
pattern $bMonitoringType_ModelQuality :: MonitoringType
$mMonitoringType_ModelQuality :: forall r. MonitoringType -> (Void# -> r) -> (Void# -> r) -> r
MonitoringType_ModelQuality = MonitoringType' "ModelQuality"

{-# COMPLETE
  MonitoringType_DataQuality,
  MonitoringType_ModelBias,
  MonitoringType_ModelExplainability,
  MonitoringType_ModelQuality,
  MonitoringType'
  #-}