{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.XRay.Types.TraceSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.XRay.Types.AvailabilityZoneDetail
import Amazonka.XRay.Types.ErrorRootCause
import Amazonka.XRay.Types.FaultRootCause
import Amazonka.XRay.Types.Http
import Amazonka.XRay.Types.InstanceIdDetail
import Amazonka.XRay.Types.ResourceARNDetail
import Amazonka.XRay.Types.ResponseTimeRootCause
import Amazonka.XRay.Types.ServiceId
import Amazonka.XRay.Types.TraceUser
import Amazonka.XRay.Types.ValueWithServiceIds
data TraceSummary = TraceSummary'
{
TraceSummary -> Maybe (HashMap Text [ValueWithServiceIds])
annotations :: Prelude.Maybe (Prelude.HashMap Prelude.Text [ValueWithServiceIds]),
TraceSummary -> Maybe [AvailabilityZoneDetail]
availabilityZones :: Prelude.Maybe [AvailabilityZoneDetail],
TraceSummary -> Maybe Double
duration :: Prelude.Maybe Prelude.Double,
TraceSummary -> Maybe ServiceId
entryPoint :: Prelude.Maybe ServiceId,
TraceSummary -> Maybe [ErrorRootCause]
errorRootCauses :: Prelude.Maybe [ErrorRootCause],
TraceSummary -> Maybe [FaultRootCause]
faultRootCauses :: Prelude.Maybe [FaultRootCause],
TraceSummary -> Maybe Bool
hasError :: Prelude.Maybe Prelude.Bool,
TraceSummary -> Maybe Bool
hasFault :: Prelude.Maybe Prelude.Bool,
TraceSummary -> Maybe Bool
hasThrottle :: Prelude.Maybe Prelude.Bool,
TraceSummary -> Maybe Http
http :: Prelude.Maybe Http,
TraceSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
TraceSummary -> Maybe [InstanceIdDetail]
instanceIds :: Prelude.Maybe [InstanceIdDetail],
TraceSummary -> Maybe Bool
isPartial :: Prelude.Maybe Prelude.Bool,
TraceSummary -> Maybe POSIX
matchedEventTime :: Prelude.Maybe Data.POSIX,
TraceSummary -> Maybe [ResourceARNDetail]
resourceARNs :: Prelude.Maybe [ResourceARNDetail],
TraceSummary -> Maybe Double
responseTime :: Prelude.Maybe Prelude.Double,
TraceSummary -> Maybe [ResponseTimeRootCause]
responseTimeRootCauses :: Prelude.Maybe [ResponseTimeRootCause],
TraceSummary -> Maybe Int
revision :: Prelude.Maybe Prelude.Int,
TraceSummary -> Maybe [ServiceId]
serviceIds :: Prelude.Maybe [ServiceId],
TraceSummary -> Maybe [TraceUser]
users :: Prelude.Maybe [TraceUser]
}
deriving (TraceSummary -> TraceSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TraceSummary -> TraceSummary -> Bool
$c/= :: TraceSummary -> TraceSummary -> Bool
== :: TraceSummary -> TraceSummary -> Bool
$c== :: TraceSummary -> TraceSummary -> Bool
Prelude.Eq, ReadPrec [TraceSummary]
ReadPrec TraceSummary
Int -> ReadS TraceSummary
ReadS [TraceSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TraceSummary]
$creadListPrec :: ReadPrec [TraceSummary]
readPrec :: ReadPrec TraceSummary
$creadPrec :: ReadPrec TraceSummary
readList :: ReadS [TraceSummary]
$creadList :: ReadS [TraceSummary]
readsPrec :: Int -> ReadS TraceSummary
$creadsPrec :: Int -> ReadS TraceSummary
Prelude.Read, Int -> TraceSummary -> ShowS
[TraceSummary] -> ShowS
TraceSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TraceSummary] -> ShowS
$cshowList :: [TraceSummary] -> ShowS
show :: TraceSummary -> String
$cshow :: TraceSummary -> String
showsPrec :: Int -> TraceSummary -> ShowS
$cshowsPrec :: Int -> TraceSummary -> ShowS
Prelude.Show, forall x. Rep TraceSummary x -> TraceSummary
forall x. TraceSummary -> Rep TraceSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TraceSummary x -> TraceSummary
$cfrom :: forall x. TraceSummary -> Rep TraceSummary x
Prelude.Generic)
newTraceSummary ::
TraceSummary
newTraceSummary :: TraceSummary
newTraceSummary =
TraceSummary'
{ $sel:annotations:TraceSummary' :: Maybe (HashMap Text [ValueWithServiceIds])
annotations = forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZones:TraceSummary' :: Maybe [AvailabilityZoneDetail]
availabilityZones = forall a. Maybe a
Prelude.Nothing,
$sel:duration:TraceSummary' :: Maybe Double
duration = forall a. Maybe a
Prelude.Nothing,
$sel:entryPoint:TraceSummary' :: Maybe ServiceId
entryPoint = forall a. Maybe a
Prelude.Nothing,
$sel:errorRootCauses:TraceSummary' :: Maybe [ErrorRootCause]
errorRootCauses = forall a. Maybe a
Prelude.Nothing,
$sel:faultRootCauses:TraceSummary' :: Maybe [FaultRootCause]
faultRootCauses = forall a. Maybe a
Prelude.Nothing,
$sel:hasError:TraceSummary' :: Maybe Bool
hasError = forall a. Maybe a
Prelude.Nothing,
$sel:hasFault:TraceSummary' :: Maybe Bool
hasFault = forall a. Maybe a
Prelude.Nothing,
$sel:hasThrottle:TraceSummary' :: Maybe Bool
hasThrottle = forall a. Maybe a
Prelude.Nothing,
$sel:http:TraceSummary' :: Maybe Http
http = forall a. Maybe a
Prelude.Nothing,
$sel:id:TraceSummary' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:instanceIds:TraceSummary' :: Maybe [InstanceIdDetail]
instanceIds = forall a. Maybe a
Prelude.Nothing,
$sel:isPartial:TraceSummary' :: Maybe Bool
isPartial = forall a. Maybe a
Prelude.Nothing,
$sel:matchedEventTime:TraceSummary' :: Maybe POSIX
matchedEventTime = forall a. Maybe a
Prelude.Nothing,
$sel:resourceARNs:TraceSummary' :: Maybe [ResourceARNDetail]
resourceARNs = forall a. Maybe a
Prelude.Nothing,
$sel:responseTime:TraceSummary' :: Maybe Double
responseTime = forall a. Maybe a
Prelude.Nothing,
$sel:responseTimeRootCauses:TraceSummary' :: Maybe [ResponseTimeRootCause]
responseTimeRootCauses = forall a. Maybe a
Prelude.Nothing,
$sel:revision:TraceSummary' :: Maybe Int
revision = forall a. Maybe a
Prelude.Nothing,
$sel:serviceIds:TraceSummary' :: Maybe [ServiceId]
serviceIds = forall a. Maybe a
Prelude.Nothing,
$sel:users:TraceSummary' :: Maybe [TraceUser]
users = forall a. Maybe a
Prelude.Nothing
}
traceSummary_annotations :: Lens.Lens' TraceSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text [ValueWithServiceIds]))
traceSummary_annotations :: Lens' TraceSummary (Maybe (HashMap Text [ValueWithServiceIds]))
traceSummary_annotations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe (HashMap Text [ValueWithServiceIds])
annotations :: Maybe (HashMap Text [ValueWithServiceIds])
$sel:annotations:TraceSummary' :: TraceSummary -> Maybe (HashMap Text [ValueWithServiceIds])
annotations} -> Maybe (HashMap Text [ValueWithServiceIds])
annotations) (\s :: TraceSummary
s@TraceSummary' {} Maybe (HashMap Text [ValueWithServiceIds])
a -> TraceSummary
s {$sel:annotations:TraceSummary' :: Maybe (HashMap Text [ValueWithServiceIds])
annotations = Maybe (HashMap Text [ValueWithServiceIds])
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
traceSummary_availabilityZones :: Lens.Lens' TraceSummary (Prelude.Maybe [AvailabilityZoneDetail])
traceSummary_availabilityZones :: Lens' TraceSummary (Maybe [AvailabilityZoneDetail])
traceSummary_availabilityZones = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe [AvailabilityZoneDetail]
availabilityZones :: Maybe [AvailabilityZoneDetail]
$sel:availabilityZones:TraceSummary' :: TraceSummary -> Maybe [AvailabilityZoneDetail]
availabilityZones} -> Maybe [AvailabilityZoneDetail]
availabilityZones) (\s :: TraceSummary
s@TraceSummary' {} Maybe [AvailabilityZoneDetail]
a -> TraceSummary
s {$sel:availabilityZones:TraceSummary' :: Maybe [AvailabilityZoneDetail]
availabilityZones = Maybe [AvailabilityZoneDetail]
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
traceSummary_duration :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.Double)
traceSummary_duration :: Lens' TraceSummary (Maybe Double)
traceSummary_duration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Double
duration :: Maybe Double
$sel:duration:TraceSummary' :: TraceSummary -> Maybe Double
duration} -> Maybe Double
duration) (\s :: TraceSummary
s@TraceSummary' {} Maybe Double
a -> TraceSummary
s {$sel:duration:TraceSummary' :: Maybe Double
duration = Maybe Double
a} :: TraceSummary)
traceSummary_entryPoint :: Lens.Lens' TraceSummary (Prelude.Maybe ServiceId)
traceSummary_entryPoint :: Lens' TraceSummary (Maybe ServiceId)
traceSummary_entryPoint = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe ServiceId
entryPoint :: Maybe ServiceId
$sel:entryPoint:TraceSummary' :: TraceSummary -> Maybe ServiceId
entryPoint} -> Maybe ServiceId
entryPoint) (\s :: TraceSummary
s@TraceSummary' {} Maybe ServiceId
a -> TraceSummary
s {$sel:entryPoint:TraceSummary' :: Maybe ServiceId
entryPoint = Maybe ServiceId
a} :: TraceSummary)
traceSummary_errorRootCauses :: Lens.Lens' TraceSummary (Prelude.Maybe [ErrorRootCause])
traceSummary_errorRootCauses :: Lens' TraceSummary (Maybe [ErrorRootCause])
traceSummary_errorRootCauses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe [ErrorRootCause]
errorRootCauses :: Maybe [ErrorRootCause]
$sel:errorRootCauses:TraceSummary' :: TraceSummary -> Maybe [ErrorRootCause]
errorRootCauses} -> Maybe [ErrorRootCause]
errorRootCauses) (\s :: TraceSummary
s@TraceSummary' {} Maybe [ErrorRootCause]
a -> TraceSummary
s {$sel:errorRootCauses:TraceSummary' :: Maybe [ErrorRootCause]
errorRootCauses = Maybe [ErrorRootCause]
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
traceSummary_faultRootCauses :: Lens.Lens' TraceSummary (Prelude.Maybe [FaultRootCause])
traceSummary_faultRootCauses :: Lens' TraceSummary (Maybe [FaultRootCause])
traceSummary_faultRootCauses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe [FaultRootCause]
faultRootCauses :: Maybe [FaultRootCause]
$sel:faultRootCauses:TraceSummary' :: TraceSummary -> Maybe [FaultRootCause]
faultRootCauses} -> Maybe [FaultRootCause]
faultRootCauses) (\s :: TraceSummary
s@TraceSummary' {} Maybe [FaultRootCause]
a -> TraceSummary
s {$sel:faultRootCauses:TraceSummary' :: Maybe [FaultRootCause]
faultRootCauses = Maybe [FaultRootCause]
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
traceSummary_hasError :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.Bool)
traceSummary_hasError :: Lens' TraceSummary (Maybe Bool)
traceSummary_hasError = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Bool
hasError :: Maybe Bool
$sel:hasError:TraceSummary' :: TraceSummary -> Maybe Bool
hasError} -> Maybe Bool
hasError) (\s :: TraceSummary
s@TraceSummary' {} Maybe Bool
a -> TraceSummary
s {$sel:hasError:TraceSummary' :: Maybe Bool
hasError = Maybe Bool
a} :: TraceSummary)
traceSummary_hasFault :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.Bool)
traceSummary_hasFault :: Lens' TraceSummary (Maybe Bool)
traceSummary_hasFault = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Bool
hasFault :: Maybe Bool
$sel:hasFault:TraceSummary' :: TraceSummary -> Maybe Bool
hasFault} -> Maybe Bool
hasFault) (\s :: TraceSummary
s@TraceSummary' {} Maybe Bool
a -> TraceSummary
s {$sel:hasFault:TraceSummary' :: Maybe Bool
hasFault = Maybe Bool
a} :: TraceSummary)
traceSummary_hasThrottle :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.Bool)
traceSummary_hasThrottle :: Lens' TraceSummary (Maybe Bool)
traceSummary_hasThrottle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Bool
hasThrottle :: Maybe Bool
$sel:hasThrottle:TraceSummary' :: TraceSummary -> Maybe Bool
hasThrottle} -> Maybe Bool
hasThrottle) (\s :: TraceSummary
s@TraceSummary' {} Maybe Bool
a -> TraceSummary
s {$sel:hasThrottle:TraceSummary' :: Maybe Bool
hasThrottle = Maybe Bool
a} :: TraceSummary)
traceSummary_http :: Lens.Lens' TraceSummary (Prelude.Maybe Http)
traceSummary_http :: Lens' TraceSummary (Maybe Http)
traceSummary_http = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Http
http :: Maybe Http
$sel:http:TraceSummary' :: TraceSummary -> Maybe Http
http} -> Maybe Http
http) (\s :: TraceSummary
s@TraceSummary' {} Maybe Http
a -> TraceSummary
s {$sel:http:TraceSummary' :: Maybe Http
http = Maybe Http
a} :: TraceSummary)
traceSummary_id :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.Text)
traceSummary_id :: Lens' TraceSummary (Maybe Text)
traceSummary_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Text
id :: Maybe Text
$sel:id:TraceSummary' :: TraceSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: TraceSummary
s@TraceSummary' {} Maybe Text
a -> TraceSummary
s {$sel:id:TraceSummary' :: Maybe Text
id = Maybe Text
a} :: TraceSummary)
traceSummary_instanceIds :: Lens.Lens' TraceSummary (Prelude.Maybe [InstanceIdDetail])
traceSummary_instanceIds :: Lens' TraceSummary (Maybe [InstanceIdDetail])
traceSummary_instanceIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe [InstanceIdDetail]
instanceIds :: Maybe [InstanceIdDetail]
$sel:instanceIds:TraceSummary' :: TraceSummary -> Maybe [InstanceIdDetail]
instanceIds} -> Maybe [InstanceIdDetail]
instanceIds) (\s :: TraceSummary
s@TraceSummary' {} Maybe [InstanceIdDetail]
a -> TraceSummary
s {$sel:instanceIds:TraceSummary' :: Maybe [InstanceIdDetail]
instanceIds = Maybe [InstanceIdDetail]
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
traceSummary_isPartial :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.Bool)
traceSummary_isPartial :: Lens' TraceSummary (Maybe Bool)
traceSummary_isPartial = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Bool
isPartial :: Maybe Bool
$sel:isPartial:TraceSummary' :: TraceSummary -> Maybe Bool
isPartial} -> Maybe Bool
isPartial) (\s :: TraceSummary
s@TraceSummary' {} Maybe Bool
a -> TraceSummary
s {$sel:isPartial:TraceSummary' :: Maybe Bool
isPartial = Maybe Bool
a} :: TraceSummary)
traceSummary_matchedEventTime :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.UTCTime)
traceSummary_matchedEventTime :: Lens' TraceSummary (Maybe UTCTime)
traceSummary_matchedEventTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe POSIX
matchedEventTime :: Maybe POSIX
$sel:matchedEventTime:TraceSummary' :: TraceSummary -> Maybe POSIX
matchedEventTime} -> Maybe POSIX
matchedEventTime) (\s :: TraceSummary
s@TraceSummary' {} Maybe POSIX
a -> TraceSummary
s {$sel:matchedEventTime:TraceSummary' :: Maybe POSIX
matchedEventTime = Maybe POSIX
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
traceSummary_resourceARNs :: Lens.Lens' TraceSummary (Prelude.Maybe [ResourceARNDetail])
traceSummary_resourceARNs :: Lens' TraceSummary (Maybe [ResourceARNDetail])
traceSummary_resourceARNs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe [ResourceARNDetail]
resourceARNs :: Maybe [ResourceARNDetail]
$sel:resourceARNs:TraceSummary' :: TraceSummary -> Maybe [ResourceARNDetail]
resourceARNs} -> Maybe [ResourceARNDetail]
resourceARNs) (\s :: TraceSummary
s@TraceSummary' {} Maybe [ResourceARNDetail]
a -> TraceSummary
s {$sel:resourceARNs:TraceSummary' :: Maybe [ResourceARNDetail]
resourceARNs = Maybe [ResourceARNDetail]
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
traceSummary_responseTime :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.Double)
traceSummary_responseTime :: Lens' TraceSummary (Maybe Double)
traceSummary_responseTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Double
responseTime :: Maybe Double
$sel:responseTime:TraceSummary' :: TraceSummary -> Maybe Double
responseTime} -> Maybe Double
responseTime) (\s :: TraceSummary
s@TraceSummary' {} Maybe Double
a -> TraceSummary
s {$sel:responseTime:TraceSummary' :: Maybe Double
responseTime = Maybe Double
a} :: TraceSummary)
traceSummary_responseTimeRootCauses :: Lens.Lens' TraceSummary (Prelude.Maybe [ResponseTimeRootCause])
traceSummary_responseTimeRootCauses :: Lens' TraceSummary (Maybe [ResponseTimeRootCause])
traceSummary_responseTimeRootCauses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe [ResponseTimeRootCause]
responseTimeRootCauses :: Maybe [ResponseTimeRootCause]
$sel:responseTimeRootCauses:TraceSummary' :: TraceSummary -> Maybe [ResponseTimeRootCause]
responseTimeRootCauses} -> Maybe [ResponseTimeRootCause]
responseTimeRootCauses) (\s :: TraceSummary
s@TraceSummary' {} Maybe [ResponseTimeRootCause]
a -> TraceSummary
s {$sel:responseTimeRootCauses:TraceSummary' :: Maybe [ResponseTimeRootCause]
responseTimeRootCauses = Maybe [ResponseTimeRootCause]
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
traceSummary_revision :: Lens.Lens' TraceSummary (Prelude.Maybe Prelude.Int)
traceSummary_revision :: Lens' TraceSummary (Maybe Int)
traceSummary_revision = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe Int
revision :: Maybe Int
$sel:revision:TraceSummary' :: TraceSummary -> Maybe Int
revision} -> Maybe Int
revision) (\s :: TraceSummary
s@TraceSummary' {} Maybe Int
a -> TraceSummary
s {$sel:revision:TraceSummary' :: Maybe Int
revision = Maybe Int
a} :: TraceSummary)
traceSummary_serviceIds :: Lens.Lens' TraceSummary (Prelude.Maybe [ServiceId])
traceSummary_serviceIds :: Lens' TraceSummary (Maybe [ServiceId])
traceSummary_serviceIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe [ServiceId]
serviceIds :: Maybe [ServiceId]
$sel:serviceIds:TraceSummary' :: TraceSummary -> Maybe [ServiceId]
serviceIds} -> Maybe [ServiceId]
serviceIds) (\s :: TraceSummary
s@TraceSummary' {} Maybe [ServiceId]
a -> TraceSummary
s {$sel:serviceIds:TraceSummary' :: Maybe [ServiceId]
serviceIds = Maybe [ServiceId]
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
traceSummary_users :: Lens.Lens' TraceSummary (Prelude.Maybe [TraceUser])
traceSummary_users :: Lens' TraceSummary (Maybe [TraceUser])
traceSummary_users = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TraceSummary' {Maybe [TraceUser]
users :: Maybe [TraceUser]
$sel:users:TraceSummary' :: TraceSummary -> Maybe [TraceUser]
users} -> Maybe [TraceUser]
users) (\s :: TraceSummary
s@TraceSummary' {} Maybe [TraceUser]
a -> TraceSummary
s {$sel:users:TraceSummary' :: Maybe [TraceUser]
users = Maybe [TraceUser]
a} :: TraceSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Data.FromJSON TraceSummary where
parseJSON :: Value -> Parser TraceSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"TraceSummary"
( \Object
x ->
Maybe (HashMap Text [ValueWithServiceIds])
-> Maybe [AvailabilityZoneDetail]
-> Maybe Double
-> Maybe ServiceId
-> Maybe [ErrorRootCause]
-> Maybe [FaultRootCause]
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Http
-> Maybe Text
-> Maybe [InstanceIdDetail]
-> Maybe Bool
-> Maybe POSIX
-> Maybe [ResourceARNDetail]
-> Maybe Double
-> Maybe [ResponseTimeRootCause]
-> Maybe Int
-> Maybe [ServiceId]
-> Maybe [TraceUser]
-> TraceSummary
TraceSummary'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Annotations" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AvailabilityZones"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Duration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EntryPoint")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ErrorRootCauses"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FaultRootCauses"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"HasError")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"HasFault")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"HasThrottle")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Http")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"InstanceIds" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"IsPartial")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MatchedEventTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResourceARNs" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResponseTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResponseTimeRootCauses"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Revision")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ServiceIds" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Users" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable TraceSummary where
hashWithSalt :: Int -> TraceSummary -> Int
hashWithSalt Int
_salt TraceSummary' {Maybe Bool
Maybe Double
Maybe Int
Maybe [AvailabilityZoneDetail]
Maybe [InstanceIdDetail]
Maybe [ResourceARNDetail]
Maybe [ResponseTimeRootCause]
Maybe [FaultRootCause]
Maybe [ErrorRootCause]
Maybe [ServiceId]
Maybe [TraceUser]
Maybe Text
Maybe (HashMap Text [ValueWithServiceIds])
Maybe POSIX
Maybe Http
Maybe ServiceId
users :: Maybe [TraceUser]
serviceIds :: Maybe [ServiceId]
revision :: Maybe Int
responseTimeRootCauses :: Maybe [ResponseTimeRootCause]
responseTime :: Maybe Double
resourceARNs :: Maybe [ResourceARNDetail]
matchedEventTime :: Maybe POSIX
isPartial :: Maybe Bool
instanceIds :: Maybe [InstanceIdDetail]
id :: Maybe Text
http :: Maybe Http
hasThrottle :: Maybe Bool
hasFault :: Maybe Bool
hasError :: Maybe Bool
faultRootCauses :: Maybe [FaultRootCause]
errorRootCauses :: Maybe [ErrorRootCause]
entryPoint :: Maybe ServiceId
duration :: Maybe Double
availabilityZones :: Maybe [AvailabilityZoneDetail]
annotations :: Maybe (HashMap Text [ValueWithServiceIds])
$sel:users:TraceSummary' :: TraceSummary -> Maybe [TraceUser]
$sel:serviceIds:TraceSummary' :: TraceSummary -> Maybe [ServiceId]
$sel:revision:TraceSummary' :: TraceSummary -> Maybe Int
$sel:responseTimeRootCauses:TraceSummary' :: TraceSummary -> Maybe [ResponseTimeRootCause]
$sel:responseTime:TraceSummary' :: TraceSummary -> Maybe Double
$sel:resourceARNs:TraceSummary' :: TraceSummary -> Maybe [ResourceARNDetail]
$sel:matchedEventTime:TraceSummary' :: TraceSummary -> Maybe POSIX
$sel:isPartial:TraceSummary' :: TraceSummary -> Maybe Bool
$sel:instanceIds:TraceSummary' :: TraceSummary -> Maybe [InstanceIdDetail]
$sel:id:TraceSummary' :: TraceSummary -> Maybe Text
$sel:http:TraceSummary' :: TraceSummary -> Maybe Http
$sel:hasThrottle:TraceSummary' :: TraceSummary -> Maybe Bool
$sel:hasFault:TraceSummary' :: TraceSummary -> Maybe Bool
$sel:hasError:TraceSummary' :: TraceSummary -> Maybe Bool
$sel:faultRootCauses:TraceSummary' :: TraceSummary -> Maybe [FaultRootCause]
$sel:errorRootCauses:TraceSummary' :: TraceSummary -> Maybe [ErrorRootCause]
$sel:entryPoint:TraceSummary' :: TraceSummary -> Maybe ServiceId
$sel:duration:TraceSummary' :: TraceSummary -> Maybe Double
$sel:availabilityZones:TraceSummary' :: TraceSummary -> Maybe [AvailabilityZoneDetail]
$sel:annotations:TraceSummary' :: TraceSummary -> Maybe (HashMap Text [ValueWithServiceIds])
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text [ValueWithServiceIds])
annotations
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [AvailabilityZoneDetail]
availabilityZones
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
duration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ServiceId
entryPoint
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ErrorRootCause]
errorRootCauses
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [FaultRootCause]
faultRootCauses
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
hasError
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
hasFault
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
hasThrottle
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Http
http
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [InstanceIdDetail]
instanceIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isPartial
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
matchedEventTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ResourceARNDetail]
resourceARNs
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
responseTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ResponseTimeRootCause]
responseTimeRootCauses
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
revision
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ServiceId]
serviceIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [TraceUser]
users
instance Prelude.NFData TraceSummary where
rnf :: TraceSummary -> ()
rnf TraceSummary' {Maybe Bool
Maybe Double
Maybe Int
Maybe [AvailabilityZoneDetail]
Maybe [InstanceIdDetail]
Maybe [ResourceARNDetail]
Maybe [ResponseTimeRootCause]
Maybe [FaultRootCause]
Maybe [ErrorRootCause]
Maybe [ServiceId]
Maybe [TraceUser]
Maybe Text
Maybe (HashMap Text [ValueWithServiceIds])
Maybe POSIX
Maybe Http
Maybe ServiceId
users :: Maybe [TraceUser]
serviceIds :: Maybe [ServiceId]
revision :: Maybe Int
responseTimeRootCauses :: Maybe [ResponseTimeRootCause]
responseTime :: Maybe Double
resourceARNs :: Maybe [ResourceARNDetail]
matchedEventTime :: Maybe POSIX
isPartial :: Maybe Bool
instanceIds :: Maybe [InstanceIdDetail]
id :: Maybe Text
http :: Maybe Http
hasThrottle :: Maybe Bool
hasFault :: Maybe Bool
hasError :: Maybe Bool
faultRootCauses :: Maybe [FaultRootCause]
errorRootCauses :: Maybe [ErrorRootCause]
entryPoint :: Maybe ServiceId
duration :: Maybe Double
availabilityZones :: Maybe [AvailabilityZoneDetail]
annotations :: Maybe (HashMap Text [ValueWithServiceIds])
$sel:users:TraceSummary' :: TraceSummary -> Maybe [TraceUser]
$sel:serviceIds:TraceSummary' :: TraceSummary -> Maybe [ServiceId]
$sel:revision:TraceSummary' :: TraceSummary -> Maybe Int
$sel:responseTimeRootCauses:TraceSummary' :: TraceSummary -> Maybe [ResponseTimeRootCause]
$sel:responseTime:TraceSummary' :: TraceSummary -> Maybe Double
$sel:resourceARNs:TraceSummary' :: TraceSummary -> Maybe [ResourceARNDetail]
$sel:matchedEventTime:TraceSummary' :: TraceSummary -> Maybe POSIX
$sel:isPartial:TraceSummary' :: TraceSummary -> Maybe Bool
$sel:instanceIds:TraceSummary' :: TraceSummary -> Maybe [InstanceIdDetail]
$sel:id:TraceSummary' :: TraceSummary -> Maybe Text
$sel:http:TraceSummary' :: TraceSummary -> Maybe Http
$sel:hasThrottle:TraceSummary' :: TraceSummary -> Maybe Bool
$sel:hasFault:TraceSummary' :: TraceSummary -> Maybe Bool
$sel:hasError:TraceSummary' :: TraceSummary -> Maybe Bool
$sel:faultRootCauses:TraceSummary' :: TraceSummary -> Maybe [FaultRootCause]
$sel:errorRootCauses:TraceSummary' :: TraceSummary -> Maybe [ErrorRootCause]
$sel:entryPoint:TraceSummary' :: TraceSummary -> Maybe ServiceId
$sel:duration:TraceSummary' :: TraceSummary -> Maybe Double
$sel:availabilityZones:TraceSummary' :: TraceSummary -> Maybe [AvailabilityZoneDetail]
$sel:annotations:TraceSummary' :: TraceSummary -> Maybe (HashMap Text [ValueWithServiceIds])
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text [ValueWithServiceIds])
annotations
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [AvailabilityZoneDetail]
availabilityZones
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
duration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ServiceId
entryPoint
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ErrorRootCause]
errorRootCauses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [FaultRootCause]
faultRootCauses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
hasError
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
hasFault
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
hasThrottle
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Http
http
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [InstanceIdDetail]
instanceIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isPartial
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
matchedEventTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ResourceARNDetail]
resourceARNs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
responseTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ResponseTimeRootCause]
responseTimeRootCauses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
revision
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ServiceId]
serviceIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TraceUser]
users