{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.XRay.GetInsightImpactGraph
(
GetInsightImpactGraph (..),
newGetInsightImpactGraph,
getInsightImpactGraph_nextToken,
getInsightImpactGraph_insightId,
getInsightImpactGraph_startTime,
getInsightImpactGraph_endTime,
GetInsightImpactGraphResponse (..),
newGetInsightImpactGraphResponse,
getInsightImpactGraphResponse_serviceGraphStartTime,
getInsightImpactGraphResponse_startTime,
getInsightImpactGraphResponse_insightId,
getInsightImpactGraphResponse_nextToken,
getInsightImpactGraphResponse_endTime,
getInsightImpactGraphResponse_serviceGraphEndTime,
getInsightImpactGraphResponse_services,
getInsightImpactGraphResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.XRay.Types
data GetInsightImpactGraph = GetInsightImpactGraph'
{
GetInsightImpactGraph -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetInsightImpactGraph -> Text
insightId :: Prelude.Text,
GetInsightImpactGraph -> POSIX
startTime :: Core.POSIX,
GetInsightImpactGraph -> POSIX
endTime :: Core.POSIX
}
deriving (GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
(GetInsightImpactGraph -> GetInsightImpactGraph -> Bool)
-> (GetInsightImpactGraph -> GetInsightImpactGraph -> Bool)
-> Eq GetInsightImpactGraph
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
$c/= :: GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
== :: GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
$c== :: GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
Prelude.Eq, ReadPrec [GetInsightImpactGraph]
ReadPrec GetInsightImpactGraph
Int -> ReadS GetInsightImpactGraph
ReadS [GetInsightImpactGraph]
(Int -> ReadS GetInsightImpactGraph)
-> ReadS [GetInsightImpactGraph]
-> ReadPrec GetInsightImpactGraph
-> ReadPrec [GetInsightImpactGraph]
-> Read GetInsightImpactGraph
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetInsightImpactGraph]
$creadListPrec :: ReadPrec [GetInsightImpactGraph]
readPrec :: ReadPrec GetInsightImpactGraph
$creadPrec :: ReadPrec GetInsightImpactGraph
readList :: ReadS [GetInsightImpactGraph]
$creadList :: ReadS [GetInsightImpactGraph]
readsPrec :: Int -> ReadS GetInsightImpactGraph
$creadsPrec :: Int -> ReadS GetInsightImpactGraph
Prelude.Read, Int -> GetInsightImpactGraph -> ShowS
[GetInsightImpactGraph] -> ShowS
GetInsightImpactGraph -> String
(Int -> GetInsightImpactGraph -> ShowS)
-> (GetInsightImpactGraph -> String)
-> ([GetInsightImpactGraph] -> ShowS)
-> Show GetInsightImpactGraph
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetInsightImpactGraph] -> ShowS
$cshowList :: [GetInsightImpactGraph] -> ShowS
show :: GetInsightImpactGraph -> String
$cshow :: GetInsightImpactGraph -> String
showsPrec :: Int -> GetInsightImpactGraph -> ShowS
$cshowsPrec :: Int -> GetInsightImpactGraph -> ShowS
Prelude.Show, (forall x. GetInsightImpactGraph -> Rep GetInsightImpactGraph x)
-> (forall x. Rep GetInsightImpactGraph x -> GetInsightImpactGraph)
-> Generic GetInsightImpactGraph
forall x. Rep GetInsightImpactGraph x -> GetInsightImpactGraph
forall x. GetInsightImpactGraph -> Rep GetInsightImpactGraph x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetInsightImpactGraph x -> GetInsightImpactGraph
$cfrom :: forall x. GetInsightImpactGraph -> Rep GetInsightImpactGraph x
Prelude.Generic)
newGetInsightImpactGraph ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
GetInsightImpactGraph
newGetInsightImpactGraph :: Text -> UTCTime -> UTCTime -> GetInsightImpactGraph
newGetInsightImpactGraph
Text
pInsightId_
UTCTime
pStartTime_
UTCTime
pEndTime_ =
GetInsightImpactGraph' :: Maybe Text -> Text -> POSIX -> POSIX -> GetInsightImpactGraph
GetInsightImpactGraph'
{ $sel:nextToken:GetInsightImpactGraph' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:insightId:GetInsightImpactGraph' :: Text
insightId = Text
pInsightId_,
$sel:startTime:GetInsightImpactGraph' :: POSIX
startTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pStartTime_,
$sel:endTime:GetInsightImpactGraph' :: POSIX
endTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pEndTime_
}
getInsightImpactGraph_nextToken :: Lens.Lens' GetInsightImpactGraph (Prelude.Maybe Prelude.Text)
getInsightImpactGraph_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetInsightImpactGraph -> f GetInsightImpactGraph
getInsightImpactGraph_nextToken = (GetInsightImpactGraph -> Maybe Text)
-> (GetInsightImpactGraph -> Maybe Text -> GetInsightImpactGraph)
-> Lens
GetInsightImpactGraph
GetInsightImpactGraph
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraph' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetInsightImpactGraph' :: GetInsightImpactGraph -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetInsightImpactGraph
s@GetInsightImpactGraph' {} Maybe Text
a -> GetInsightImpactGraph
s {$sel:nextToken:GetInsightImpactGraph' :: Maybe Text
nextToken = Maybe Text
a} :: GetInsightImpactGraph)
getInsightImpactGraph_insightId :: Lens.Lens' GetInsightImpactGraph Prelude.Text
getInsightImpactGraph_insightId :: (Text -> f Text)
-> GetInsightImpactGraph -> f GetInsightImpactGraph
getInsightImpactGraph_insightId = (GetInsightImpactGraph -> Text)
-> (GetInsightImpactGraph -> Text -> GetInsightImpactGraph)
-> Lens GetInsightImpactGraph GetInsightImpactGraph Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraph' {Text
insightId :: Text
$sel:insightId:GetInsightImpactGraph' :: GetInsightImpactGraph -> Text
insightId} -> Text
insightId) (\s :: GetInsightImpactGraph
s@GetInsightImpactGraph' {} Text
a -> GetInsightImpactGraph
s {$sel:insightId:GetInsightImpactGraph' :: Text
insightId = Text
a} :: GetInsightImpactGraph)
getInsightImpactGraph_startTime :: Lens.Lens' GetInsightImpactGraph Prelude.UTCTime
getInsightImpactGraph_startTime :: (UTCTime -> f UTCTime)
-> GetInsightImpactGraph -> f GetInsightImpactGraph
getInsightImpactGraph_startTime = (GetInsightImpactGraph -> POSIX)
-> (GetInsightImpactGraph -> POSIX -> GetInsightImpactGraph)
-> Lens GetInsightImpactGraph GetInsightImpactGraph POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraph' {POSIX
startTime :: POSIX
$sel:startTime:GetInsightImpactGraph' :: GetInsightImpactGraph -> POSIX
startTime} -> POSIX
startTime) (\s :: GetInsightImpactGraph
s@GetInsightImpactGraph' {} POSIX
a -> GetInsightImpactGraph
s {$sel:startTime:GetInsightImpactGraph' :: POSIX
startTime = POSIX
a} :: GetInsightImpactGraph) ((POSIX -> f POSIX)
-> GetInsightImpactGraph -> f GetInsightImpactGraph)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> GetInsightImpactGraph
-> f GetInsightImpactGraph
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getInsightImpactGraph_endTime :: Lens.Lens' GetInsightImpactGraph Prelude.UTCTime
getInsightImpactGraph_endTime :: (UTCTime -> f UTCTime)
-> GetInsightImpactGraph -> f GetInsightImpactGraph
getInsightImpactGraph_endTime = (GetInsightImpactGraph -> POSIX)
-> (GetInsightImpactGraph -> POSIX -> GetInsightImpactGraph)
-> Lens GetInsightImpactGraph GetInsightImpactGraph POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraph' {POSIX
endTime :: POSIX
$sel:endTime:GetInsightImpactGraph' :: GetInsightImpactGraph -> POSIX
endTime} -> POSIX
endTime) (\s :: GetInsightImpactGraph
s@GetInsightImpactGraph' {} POSIX
a -> GetInsightImpactGraph
s {$sel:endTime:GetInsightImpactGraph' :: POSIX
endTime = POSIX
a} :: GetInsightImpactGraph) ((POSIX -> f POSIX)
-> GetInsightImpactGraph -> f GetInsightImpactGraph)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> GetInsightImpactGraph
-> f GetInsightImpactGraph
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Core.AWSRequest GetInsightImpactGraph where
type
AWSResponse GetInsightImpactGraph =
GetInsightImpactGraphResponse
request :: GetInsightImpactGraph -> Request GetInsightImpactGraph
request = Service -> GetInsightImpactGraph -> Request GetInsightImpactGraph
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetInsightImpactGraph
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetInsightImpactGraph)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetInsightImpactGraph))
-> Logger
-> Service
-> Proxy GetInsightImpactGraph
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetInsightImpactGraph)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse
GetInsightImpactGraphResponse'
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ServiceGraphStartTime")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StartTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InsightId")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String
(Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EndTime")
Either
String
(Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe [InsightImpactGraphService]
-> Int -> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ServiceGraphEndTime")
Either
String
(Maybe [InsightImpactGraphService]
-> Int -> GetInsightImpactGraphResponse)
-> Either String (Maybe [InsightImpactGraphService])
-> Either String (Int -> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [InsightImpactGraphService]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Services" Either String (Maybe (Maybe [InsightImpactGraphService]))
-> Maybe [InsightImpactGraphService]
-> Either String (Maybe [InsightImpactGraphService])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InsightImpactGraphService]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetInsightImpactGraphResponse)
-> Either String Int -> Either String GetInsightImpactGraphResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetInsightImpactGraph
instance Prelude.NFData GetInsightImpactGraph
instance Core.ToHeaders GetInsightImpactGraph where
toHeaders :: GetInsightImpactGraph -> ResponseHeaders
toHeaders = ResponseHeaders -> GetInsightImpactGraph -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON GetInsightImpactGraph where
toJSON :: GetInsightImpactGraph -> Value
toJSON GetInsightImpactGraph' {Maybe Text
Text
POSIX
endTime :: POSIX
startTime :: POSIX
insightId :: Text
nextToken :: Maybe Text
$sel:endTime:GetInsightImpactGraph' :: GetInsightImpactGraph -> POSIX
$sel:startTime:GetInsightImpactGraph' :: GetInsightImpactGraph -> POSIX
$sel:insightId:GetInsightImpactGraph' :: GetInsightImpactGraph -> Text
$sel:nextToken:GetInsightImpactGraph' :: GetInsightImpactGraph -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InsightId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
insightId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"StartTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= POSIX
startTime),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"EndTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= POSIX
endTime)
]
)
instance Core.ToPath GetInsightImpactGraph where
toPath :: GetInsightImpactGraph -> ByteString
toPath = ByteString -> GetInsightImpactGraph -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/InsightImpactGraph"
instance Core.ToQuery GetInsightImpactGraph where
toQuery :: GetInsightImpactGraph -> QueryString
toQuery = QueryString -> GetInsightImpactGraph -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetInsightImpactGraphResponse = GetInsightImpactGraphResponse'
{
GetInsightImpactGraphResponse -> Maybe POSIX
serviceGraphStartTime :: Prelude.Maybe Core.POSIX,
GetInsightImpactGraphResponse -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
GetInsightImpactGraphResponse -> Maybe Text
insightId :: Prelude.Maybe Prelude.Text,
GetInsightImpactGraphResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetInsightImpactGraphResponse -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
GetInsightImpactGraphResponse -> Maybe POSIX
serviceGraphEndTime :: Prelude.Maybe Core.POSIX,
GetInsightImpactGraphResponse -> Maybe [InsightImpactGraphService]
services :: Prelude.Maybe [InsightImpactGraphService],
GetInsightImpactGraphResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
(GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool)
-> (GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool)
-> Eq GetInsightImpactGraphResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
$c/= :: GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
== :: GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
$c== :: GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
Prelude.Eq, ReadPrec [GetInsightImpactGraphResponse]
ReadPrec GetInsightImpactGraphResponse
Int -> ReadS GetInsightImpactGraphResponse
ReadS [GetInsightImpactGraphResponse]
(Int -> ReadS GetInsightImpactGraphResponse)
-> ReadS [GetInsightImpactGraphResponse]
-> ReadPrec GetInsightImpactGraphResponse
-> ReadPrec [GetInsightImpactGraphResponse]
-> Read GetInsightImpactGraphResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetInsightImpactGraphResponse]
$creadListPrec :: ReadPrec [GetInsightImpactGraphResponse]
readPrec :: ReadPrec GetInsightImpactGraphResponse
$creadPrec :: ReadPrec GetInsightImpactGraphResponse
readList :: ReadS [GetInsightImpactGraphResponse]
$creadList :: ReadS [GetInsightImpactGraphResponse]
readsPrec :: Int -> ReadS GetInsightImpactGraphResponse
$creadsPrec :: Int -> ReadS GetInsightImpactGraphResponse
Prelude.Read, Int -> GetInsightImpactGraphResponse -> ShowS
[GetInsightImpactGraphResponse] -> ShowS
GetInsightImpactGraphResponse -> String
(Int -> GetInsightImpactGraphResponse -> ShowS)
-> (GetInsightImpactGraphResponse -> String)
-> ([GetInsightImpactGraphResponse] -> ShowS)
-> Show GetInsightImpactGraphResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetInsightImpactGraphResponse] -> ShowS
$cshowList :: [GetInsightImpactGraphResponse] -> ShowS
show :: GetInsightImpactGraphResponse -> String
$cshow :: GetInsightImpactGraphResponse -> String
showsPrec :: Int -> GetInsightImpactGraphResponse -> ShowS
$cshowsPrec :: Int -> GetInsightImpactGraphResponse -> ShowS
Prelude.Show, (forall x.
GetInsightImpactGraphResponse
-> Rep GetInsightImpactGraphResponse x)
-> (forall x.
Rep GetInsightImpactGraphResponse x
-> GetInsightImpactGraphResponse)
-> Generic GetInsightImpactGraphResponse
forall x.
Rep GetInsightImpactGraphResponse x
-> GetInsightImpactGraphResponse
forall x.
GetInsightImpactGraphResponse
-> Rep GetInsightImpactGraphResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetInsightImpactGraphResponse x
-> GetInsightImpactGraphResponse
$cfrom :: forall x.
GetInsightImpactGraphResponse
-> Rep GetInsightImpactGraphResponse x
Prelude.Generic)
newGetInsightImpactGraphResponse ::
Prelude.Int ->
GetInsightImpactGraphResponse
newGetInsightImpactGraphResponse :: Int -> GetInsightImpactGraphResponse
newGetInsightImpactGraphResponse Int
pHttpStatus_ =
GetInsightImpactGraphResponse' :: Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse
GetInsightImpactGraphResponse'
{ $sel:serviceGraphStartTime:GetInsightImpactGraphResponse' :: Maybe POSIX
serviceGraphStartTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:startTime:GetInsightImpactGraphResponse' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:insightId:GetInsightImpactGraphResponse' :: Maybe Text
insightId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetInsightImpactGraphResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:GetInsightImpactGraphResponse' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:serviceGraphEndTime:GetInsightImpactGraphResponse' :: Maybe POSIX
serviceGraphEndTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:services:GetInsightImpactGraphResponse' :: Maybe [InsightImpactGraphService]
services = Maybe [InsightImpactGraphService]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetInsightImpactGraphResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getInsightImpactGraphResponse_serviceGraphStartTime :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.UTCTime)
getInsightImpactGraphResponse_serviceGraphStartTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_serviceGraphStartTime = (GetInsightImpactGraphResponse -> Maybe POSIX)
-> (GetInsightImpactGraphResponse
-> Maybe POSIX -> GetInsightImpactGraphResponse)
-> Lens
GetInsightImpactGraphResponse
GetInsightImpactGraphResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe POSIX
serviceGraphStartTime :: Maybe POSIX
$sel:serviceGraphStartTime:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe POSIX
serviceGraphStartTime} -> Maybe POSIX
serviceGraphStartTime) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe POSIX
a -> GetInsightImpactGraphResponse
s {$sel:serviceGraphStartTime:GetInsightImpactGraphResponse' :: Maybe POSIX
serviceGraphStartTime = Maybe POSIX
a} :: GetInsightImpactGraphResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getInsightImpactGraphResponse_startTime :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.UTCTime)
getInsightImpactGraphResponse_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_startTime = (GetInsightImpactGraphResponse -> Maybe POSIX)
-> (GetInsightImpactGraphResponse
-> Maybe POSIX -> GetInsightImpactGraphResponse)
-> Lens
GetInsightImpactGraphResponse
GetInsightImpactGraphResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe POSIX
a -> GetInsightImpactGraphResponse
s {$sel:startTime:GetInsightImpactGraphResponse' :: Maybe POSIX
startTime = Maybe POSIX
a} :: GetInsightImpactGraphResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getInsightImpactGraphResponse_insightId :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.Text)
getInsightImpactGraphResponse_insightId :: (Maybe Text -> f (Maybe Text))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_insightId = (GetInsightImpactGraphResponse -> Maybe Text)
-> (GetInsightImpactGraphResponse
-> Maybe Text -> GetInsightImpactGraphResponse)
-> Lens
GetInsightImpactGraphResponse
GetInsightImpactGraphResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe Text
insightId :: Maybe Text
$sel:insightId:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe Text
insightId} -> Maybe Text
insightId) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe Text
a -> GetInsightImpactGraphResponse
s {$sel:insightId:GetInsightImpactGraphResponse' :: Maybe Text
insightId = Maybe Text
a} :: GetInsightImpactGraphResponse)
getInsightImpactGraphResponse_nextToken :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.Text)
getInsightImpactGraphResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_nextToken = (GetInsightImpactGraphResponse -> Maybe Text)
-> (GetInsightImpactGraphResponse
-> Maybe Text -> GetInsightImpactGraphResponse)
-> Lens
GetInsightImpactGraphResponse
GetInsightImpactGraphResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe Text
a -> GetInsightImpactGraphResponse
s {$sel:nextToken:GetInsightImpactGraphResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetInsightImpactGraphResponse)
getInsightImpactGraphResponse_endTime :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.UTCTime)
getInsightImpactGraphResponse_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_endTime = (GetInsightImpactGraphResponse -> Maybe POSIX)
-> (GetInsightImpactGraphResponse
-> Maybe POSIX -> GetInsightImpactGraphResponse)
-> Lens
GetInsightImpactGraphResponse
GetInsightImpactGraphResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe POSIX
a -> GetInsightImpactGraphResponse
s {$sel:endTime:GetInsightImpactGraphResponse' :: Maybe POSIX
endTime = Maybe POSIX
a} :: GetInsightImpactGraphResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getInsightImpactGraphResponse_serviceGraphEndTime :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.UTCTime)
getInsightImpactGraphResponse_serviceGraphEndTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_serviceGraphEndTime = (GetInsightImpactGraphResponse -> Maybe POSIX)
-> (GetInsightImpactGraphResponse
-> Maybe POSIX -> GetInsightImpactGraphResponse)
-> Lens
GetInsightImpactGraphResponse
GetInsightImpactGraphResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe POSIX
serviceGraphEndTime :: Maybe POSIX
$sel:serviceGraphEndTime:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe POSIX
serviceGraphEndTime} -> Maybe POSIX
serviceGraphEndTime) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe POSIX
a -> GetInsightImpactGraphResponse
s {$sel:serviceGraphEndTime:GetInsightImpactGraphResponse' :: Maybe POSIX
serviceGraphEndTime = Maybe POSIX
a} :: GetInsightImpactGraphResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getInsightImpactGraphResponse_services :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe [InsightImpactGraphService])
getInsightImpactGraphResponse_services :: (Maybe [InsightImpactGraphService]
-> f (Maybe [InsightImpactGraphService]))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_services = (GetInsightImpactGraphResponse
-> Maybe [InsightImpactGraphService])
-> (GetInsightImpactGraphResponse
-> Maybe [InsightImpactGraphService]
-> GetInsightImpactGraphResponse)
-> Lens
GetInsightImpactGraphResponse
GetInsightImpactGraphResponse
(Maybe [InsightImpactGraphService])
(Maybe [InsightImpactGraphService])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe [InsightImpactGraphService]
services :: Maybe [InsightImpactGraphService]
$sel:services:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe [InsightImpactGraphService]
services} -> Maybe [InsightImpactGraphService]
services) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe [InsightImpactGraphService]
a -> GetInsightImpactGraphResponse
s {$sel:services:GetInsightImpactGraphResponse' :: Maybe [InsightImpactGraphService]
services = Maybe [InsightImpactGraphService]
a} :: GetInsightImpactGraphResponse) ((Maybe [InsightImpactGraphService]
-> f (Maybe [InsightImpactGraphService]))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse)
-> ((Maybe [InsightImpactGraphService]
-> f (Maybe [InsightImpactGraphService]))
-> Maybe [InsightImpactGraphService]
-> f (Maybe [InsightImpactGraphService]))
-> (Maybe [InsightImpactGraphService]
-> f (Maybe [InsightImpactGraphService]))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[InsightImpactGraphService]
[InsightImpactGraphService]
[InsightImpactGraphService]
[InsightImpactGraphService]
-> Iso
(Maybe [InsightImpactGraphService])
(Maybe [InsightImpactGraphService])
(Maybe [InsightImpactGraphService])
(Maybe [InsightImpactGraphService])
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 AnIso
[InsightImpactGraphService]
[InsightImpactGraphService]
[InsightImpactGraphService]
[InsightImpactGraphService]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getInsightImpactGraphResponse_httpStatus :: Lens.Lens' GetInsightImpactGraphResponse Prelude.Int
getInsightImpactGraphResponse_httpStatus :: (Int -> f Int)
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_httpStatus = (GetInsightImpactGraphResponse -> Int)
-> (GetInsightImpactGraphResponse
-> Int -> GetInsightImpactGraphResponse)
-> Lens
GetInsightImpactGraphResponse GetInsightImpactGraphResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Int
a -> GetInsightImpactGraphResponse
s {$sel:httpStatus:GetInsightImpactGraphResponse' :: Int
httpStatus = Int
a} :: GetInsightImpactGraphResponse)
instance Prelude.NFData GetInsightImpactGraphResponse