{-# 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.LookoutMetrics.Types.DataQualityMetricType
-- 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.LookoutMetrics.Types.DataQualityMetricType
  ( DataQualityMetricType
      ( ..,
        DataQualityMetricType_BACKTEST_INFERENCE_DATA_END_TIME_STAMP,
        DataQualityMetricType_BACKTEST_INFERENCE_DATA_START_TIME_STAMP,
        DataQualityMetricType_BACKTEST_TRAINING_DATA_END_TIME_STAMP,
        DataQualityMetricType_BACKTEST_TRAINING_DATA_START_TIME_STAMP,
        DataQualityMetricType_COLUMN_COMPLETENESS,
        DataQualityMetricType_DIMENSION_UNIQUENESS,
        DataQualityMetricType_INVALID_ROWS_COMPLIANCE,
        DataQualityMetricType_ROWS_PARTIAL_COMPLIANCE,
        DataQualityMetricType_ROWS_PROCESSED,
        DataQualityMetricType_TIME_SERIES_COUNT
      ),
  )
where

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

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

pattern DataQualityMetricType_BACKTEST_INFERENCE_DATA_END_TIME_STAMP :: DataQualityMetricType
pattern $bDataQualityMetricType_BACKTEST_INFERENCE_DATA_END_TIME_STAMP :: DataQualityMetricType
$mDataQualityMetricType_BACKTEST_INFERENCE_DATA_END_TIME_STAMP :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_BACKTEST_INFERENCE_DATA_END_TIME_STAMP = DataQualityMetricType' "BACKTEST_INFERENCE_DATA_END_TIME_STAMP"

pattern DataQualityMetricType_BACKTEST_INFERENCE_DATA_START_TIME_STAMP :: DataQualityMetricType
pattern $bDataQualityMetricType_BACKTEST_INFERENCE_DATA_START_TIME_STAMP :: DataQualityMetricType
$mDataQualityMetricType_BACKTEST_INFERENCE_DATA_START_TIME_STAMP :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_BACKTEST_INFERENCE_DATA_START_TIME_STAMP = DataQualityMetricType' "BACKTEST_INFERENCE_DATA_START_TIME_STAMP"

pattern DataQualityMetricType_BACKTEST_TRAINING_DATA_END_TIME_STAMP :: DataQualityMetricType
pattern $bDataQualityMetricType_BACKTEST_TRAINING_DATA_END_TIME_STAMP :: DataQualityMetricType
$mDataQualityMetricType_BACKTEST_TRAINING_DATA_END_TIME_STAMP :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_BACKTEST_TRAINING_DATA_END_TIME_STAMP = DataQualityMetricType' "BACKTEST_TRAINING_DATA_END_TIME_STAMP"

pattern DataQualityMetricType_BACKTEST_TRAINING_DATA_START_TIME_STAMP :: DataQualityMetricType
pattern $bDataQualityMetricType_BACKTEST_TRAINING_DATA_START_TIME_STAMP :: DataQualityMetricType
$mDataQualityMetricType_BACKTEST_TRAINING_DATA_START_TIME_STAMP :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_BACKTEST_TRAINING_DATA_START_TIME_STAMP = DataQualityMetricType' "BACKTEST_TRAINING_DATA_START_TIME_STAMP"

pattern DataQualityMetricType_COLUMN_COMPLETENESS :: DataQualityMetricType
pattern $bDataQualityMetricType_COLUMN_COMPLETENESS :: DataQualityMetricType
$mDataQualityMetricType_COLUMN_COMPLETENESS :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_COLUMN_COMPLETENESS = DataQualityMetricType' "COLUMN_COMPLETENESS"

pattern DataQualityMetricType_DIMENSION_UNIQUENESS :: DataQualityMetricType
pattern $bDataQualityMetricType_DIMENSION_UNIQUENESS :: DataQualityMetricType
$mDataQualityMetricType_DIMENSION_UNIQUENESS :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_DIMENSION_UNIQUENESS = DataQualityMetricType' "DIMENSION_UNIQUENESS"

pattern DataQualityMetricType_INVALID_ROWS_COMPLIANCE :: DataQualityMetricType
pattern $bDataQualityMetricType_INVALID_ROWS_COMPLIANCE :: DataQualityMetricType
$mDataQualityMetricType_INVALID_ROWS_COMPLIANCE :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_INVALID_ROWS_COMPLIANCE = DataQualityMetricType' "INVALID_ROWS_COMPLIANCE"

pattern DataQualityMetricType_ROWS_PARTIAL_COMPLIANCE :: DataQualityMetricType
pattern $bDataQualityMetricType_ROWS_PARTIAL_COMPLIANCE :: DataQualityMetricType
$mDataQualityMetricType_ROWS_PARTIAL_COMPLIANCE :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_ROWS_PARTIAL_COMPLIANCE = DataQualityMetricType' "ROWS_PARTIAL_COMPLIANCE"

pattern DataQualityMetricType_ROWS_PROCESSED :: DataQualityMetricType
pattern $bDataQualityMetricType_ROWS_PROCESSED :: DataQualityMetricType
$mDataQualityMetricType_ROWS_PROCESSED :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_ROWS_PROCESSED = DataQualityMetricType' "ROWS_PROCESSED"

pattern DataQualityMetricType_TIME_SERIES_COUNT :: DataQualityMetricType
pattern $bDataQualityMetricType_TIME_SERIES_COUNT :: DataQualityMetricType
$mDataQualityMetricType_TIME_SERIES_COUNT :: forall {r}.
DataQualityMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
DataQualityMetricType_TIME_SERIES_COUNT = DataQualityMetricType' "TIME_SERIES_COUNT"

{-# COMPLETE
  DataQualityMetricType_BACKTEST_INFERENCE_DATA_END_TIME_STAMP,
  DataQualityMetricType_BACKTEST_INFERENCE_DATA_START_TIME_STAMP,
  DataQualityMetricType_BACKTEST_TRAINING_DATA_END_TIME_STAMP,
  DataQualityMetricType_BACKTEST_TRAINING_DATA_START_TIME_STAMP,
  DataQualityMetricType_COLUMN_COMPLETENESS,
  DataQualityMetricType_DIMENSION_UNIQUENESS,
  DataQualityMetricType_INVALID_ROWS_COMPLIANCE,
  DataQualityMetricType_ROWS_PARTIAL_COMPLIANCE,
  DataQualityMetricType_ROWS_PROCESSED,
  DataQualityMetricType_TIME_SERIES_COUNT,
  DataQualityMetricType'
  #-}