{-# 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 #-}

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

-- |
-- Module      : Amazonka.Pinpoint.Types.ApplicationDateRangeKpiResponse
-- 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.Pinpoint.Types.ApplicationDateRangeKpiResponse where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Pinpoint.Types.BaseKpiResult
import qualified Amazonka.Prelude as Prelude

-- | Provides the results of a query that retrieved the data for a standard
-- metric that applies to an application, and provides information about
-- that query.
--
-- /See:/ 'newApplicationDateRangeKpiResponse' smart constructor.
data ApplicationDateRangeKpiResponse = ApplicationDateRangeKpiResponse'
  { -- | The string to use in a subsequent request to get the next page of
    -- results in a paginated response. This value is null for the Application
    -- Metrics resource because the resource returns all results in a single
    -- page.
    ApplicationDateRangeKpiResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | An array of objects that contains the results of the query. Each object
    -- contains the value for the metric and metadata about that value.
    ApplicationDateRangeKpiResponse -> BaseKpiResult
kpiResult :: BaseKpiResult,
    -- | The name of the metric, also referred to as a /key performance indicator
    -- (KPI)/, that the data was retrieved for. This value describes the
    -- associated metric and consists of two or more terms, which are comprised
    -- of lowercase alphanumeric characters, separated by a hyphen. For a list
    -- of possible values, see the
    -- <https://docs.aws.amazon.com/pinpoint/latest/developerguide/analytics-standard-metrics.html Amazon Pinpoint Developer Guide>.
    ApplicationDateRangeKpiResponse -> Text
kpiName :: Prelude.Text,
    -- | The last date and time of the date range that was used to filter the
    -- query results, in extended ISO 8601 format. The date range is inclusive.
    ApplicationDateRangeKpiResponse -> POSIX
endTime :: Core.POSIX,
    -- | The first date and time of the date range that was used to filter the
    -- query results, in extended ISO 8601 format. The date range is inclusive.
    ApplicationDateRangeKpiResponse -> POSIX
startTime :: Core.POSIX,
    -- | The unique identifier for the application that the metric applies to.
    ApplicationDateRangeKpiResponse -> Text
applicationId :: Prelude.Text
  }
  deriving (ApplicationDateRangeKpiResponse
-> ApplicationDateRangeKpiResponse -> Bool
(ApplicationDateRangeKpiResponse
 -> ApplicationDateRangeKpiResponse -> Bool)
-> (ApplicationDateRangeKpiResponse
    -> ApplicationDateRangeKpiResponse -> Bool)
-> Eq ApplicationDateRangeKpiResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApplicationDateRangeKpiResponse
-> ApplicationDateRangeKpiResponse -> Bool
$c/= :: ApplicationDateRangeKpiResponse
-> ApplicationDateRangeKpiResponse -> Bool
== :: ApplicationDateRangeKpiResponse
-> ApplicationDateRangeKpiResponse -> Bool
$c== :: ApplicationDateRangeKpiResponse
-> ApplicationDateRangeKpiResponse -> Bool
Prelude.Eq, ReadPrec [ApplicationDateRangeKpiResponse]
ReadPrec ApplicationDateRangeKpiResponse
Int -> ReadS ApplicationDateRangeKpiResponse
ReadS [ApplicationDateRangeKpiResponse]
(Int -> ReadS ApplicationDateRangeKpiResponse)
-> ReadS [ApplicationDateRangeKpiResponse]
-> ReadPrec ApplicationDateRangeKpiResponse
-> ReadPrec [ApplicationDateRangeKpiResponse]
-> Read ApplicationDateRangeKpiResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApplicationDateRangeKpiResponse]
$creadListPrec :: ReadPrec [ApplicationDateRangeKpiResponse]
readPrec :: ReadPrec ApplicationDateRangeKpiResponse
$creadPrec :: ReadPrec ApplicationDateRangeKpiResponse
readList :: ReadS [ApplicationDateRangeKpiResponse]
$creadList :: ReadS [ApplicationDateRangeKpiResponse]
readsPrec :: Int -> ReadS ApplicationDateRangeKpiResponse
$creadsPrec :: Int -> ReadS ApplicationDateRangeKpiResponse
Prelude.Read, Int -> ApplicationDateRangeKpiResponse -> ShowS
[ApplicationDateRangeKpiResponse] -> ShowS
ApplicationDateRangeKpiResponse -> String
(Int -> ApplicationDateRangeKpiResponse -> ShowS)
-> (ApplicationDateRangeKpiResponse -> String)
-> ([ApplicationDateRangeKpiResponse] -> ShowS)
-> Show ApplicationDateRangeKpiResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApplicationDateRangeKpiResponse] -> ShowS
$cshowList :: [ApplicationDateRangeKpiResponse] -> ShowS
show :: ApplicationDateRangeKpiResponse -> String
$cshow :: ApplicationDateRangeKpiResponse -> String
showsPrec :: Int -> ApplicationDateRangeKpiResponse -> ShowS
$cshowsPrec :: Int -> ApplicationDateRangeKpiResponse -> ShowS
Prelude.Show, (forall x.
 ApplicationDateRangeKpiResponse
 -> Rep ApplicationDateRangeKpiResponse x)
-> (forall x.
    Rep ApplicationDateRangeKpiResponse x
    -> ApplicationDateRangeKpiResponse)
-> Generic ApplicationDateRangeKpiResponse
forall x.
Rep ApplicationDateRangeKpiResponse x
-> ApplicationDateRangeKpiResponse
forall x.
ApplicationDateRangeKpiResponse
-> Rep ApplicationDateRangeKpiResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ApplicationDateRangeKpiResponse x
-> ApplicationDateRangeKpiResponse
$cfrom :: forall x.
ApplicationDateRangeKpiResponse
-> Rep ApplicationDateRangeKpiResponse x
Prelude.Generic)

-- |
-- Create a value of 'ApplicationDateRangeKpiResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'applicationDateRangeKpiResponse_nextToken' - The string to use in a subsequent request to get the next page of
-- results in a paginated response. This value is null for the Application
-- Metrics resource because the resource returns all results in a single
-- page.
--
-- 'kpiResult', 'applicationDateRangeKpiResponse_kpiResult' - An array of objects that contains the results of the query. Each object
-- contains the value for the metric and metadata about that value.
--
-- 'kpiName', 'applicationDateRangeKpiResponse_kpiName' - The name of the metric, also referred to as a /key performance indicator
-- (KPI)/, that the data was retrieved for. This value describes the
-- associated metric and consists of two or more terms, which are comprised
-- of lowercase alphanumeric characters, separated by a hyphen. For a list
-- of possible values, see the
-- <https://docs.aws.amazon.com/pinpoint/latest/developerguide/analytics-standard-metrics.html Amazon Pinpoint Developer Guide>.
--
-- 'endTime', 'applicationDateRangeKpiResponse_endTime' - The last date and time of the date range that was used to filter the
-- query results, in extended ISO 8601 format. The date range is inclusive.
--
-- 'startTime', 'applicationDateRangeKpiResponse_startTime' - The first date and time of the date range that was used to filter the
-- query results, in extended ISO 8601 format. The date range is inclusive.
--
-- 'applicationId', 'applicationDateRangeKpiResponse_applicationId' - The unique identifier for the application that the metric applies to.
newApplicationDateRangeKpiResponse ::
  -- | 'kpiResult'
  BaseKpiResult ->
  -- | 'kpiName'
  Prelude.Text ->
  -- | 'endTime'
  Prelude.UTCTime ->
  -- | 'startTime'
  Prelude.UTCTime ->
  -- | 'applicationId'
  Prelude.Text ->
  ApplicationDateRangeKpiResponse
newApplicationDateRangeKpiResponse :: BaseKpiResult
-> Text
-> UTCTime
-> UTCTime
-> Text
-> ApplicationDateRangeKpiResponse
newApplicationDateRangeKpiResponse
  BaseKpiResult
pKpiResult_
  Text
pKpiName_
  UTCTime
pEndTime_
  UTCTime
pStartTime_
  Text
pApplicationId_ =
    ApplicationDateRangeKpiResponse' :: Maybe Text
-> BaseKpiResult
-> Text
-> POSIX
-> POSIX
-> Text
-> ApplicationDateRangeKpiResponse
ApplicationDateRangeKpiResponse'
      { $sel:nextToken:ApplicationDateRangeKpiResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:kpiResult:ApplicationDateRangeKpiResponse' :: BaseKpiResult
kpiResult = BaseKpiResult
pKpiResult_,
        $sel:kpiName:ApplicationDateRangeKpiResponse' :: Text
kpiName = Text
pKpiName_,
        $sel:endTime:ApplicationDateRangeKpiResponse' :: 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_,
        $sel:startTime:ApplicationDateRangeKpiResponse' :: 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:applicationId:ApplicationDateRangeKpiResponse' :: Text
applicationId = Text
pApplicationId_
      }

-- | The string to use in a subsequent request to get the next page of
-- results in a paginated response. This value is null for the Application
-- Metrics resource because the resource returns all results in a single
-- page.
applicationDateRangeKpiResponse_nextToken :: Lens.Lens' ApplicationDateRangeKpiResponse (Prelude.Maybe Prelude.Text)
applicationDateRangeKpiResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ApplicationDateRangeKpiResponse
-> f ApplicationDateRangeKpiResponse
applicationDateRangeKpiResponse_nextToken = (ApplicationDateRangeKpiResponse -> Maybe Text)
-> (ApplicationDateRangeKpiResponse
    -> Maybe Text -> ApplicationDateRangeKpiResponse)
-> Lens
     ApplicationDateRangeKpiResponse
     ApplicationDateRangeKpiResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDateRangeKpiResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ApplicationDateRangeKpiResponse' :: ApplicationDateRangeKpiResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ApplicationDateRangeKpiResponse
s@ApplicationDateRangeKpiResponse' {} Maybe Text
a -> ApplicationDateRangeKpiResponse
s {$sel:nextToken:ApplicationDateRangeKpiResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ApplicationDateRangeKpiResponse)

-- | An array of objects that contains the results of the query. Each object
-- contains the value for the metric and metadata about that value.
applicationDateRangeKpiResponse_kpiResult :: Lens.Lens' ApplicationDateRangeKpiResponse BaseKpiResult
applicationDateRangeKpiResponse_kpiResult :: (BaseKpiResult -> f BaseKpiResult)
-> ApplicationDateRangeKpiResponse
-> f ApplicationDateRangeKpiResponse
applicationDateRangeKpiResponse_kpiResult = (ApplicationDateRangeKpiResponse -> BaseKpiResult)
-> (ApplicationDateRangeKpiResponse
    -> BaseKpiResult -> ApplicationDateRangeKpiResponse)
-> Lens
     ApplicationDateRangeKpiResponse
     ApplicationDateRangeKpiResponse
     BaseKpiResult
     BaseKpiResult
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDateRangeKpiResponse' {BaseKpiResult
kpiResult :: BaseKpiResult
$sel:kpiResult:ApplicationDateRangeKpiResponse' :: ApplicationDateRangeKpiResponse -> BaseKpiResult
kpiResult} -> BaseKpiResult
kpiResult) (\s :: ApplicationDateRangeKpiResponse
s@ApplicationDateRangeKpiResponse' {} BaseKpiResult
a -> ApplicationDateRangeKpiResponse
s {$sel:kpiResult:ApplicationDateRangeKpiResponse' :: BaseKpiResult
kpiResult = BaseKpiResult
a} :: ApplicationDateRangeKpiResponse)

-- | The name of the metric, also referred to as a /key performance indicator
-- (KPI)/, that the data was retrieved for. This value describes the
-- associated metric and consists of two or more terms, which are comprised
-- of lowercase alphanumeric characters, separated by a hyphen. For a list
-- of possible values, see the
-- <https://docs.aws.amazon.com/pinpoint/latest/developerguide/analytics-standard-metrics.html Amazon Pinpoint Developer Guide>.
applicationDateRangeKpiResponse_kpiName :: Lens.Lens' ApplicationDateRangeKpiResponse Prelude.Text
applicationDateRangeKpiResponse_kpiName :: (Text -> f Text)
-> ApplicationDateRangeKpiResponse
-> f ApplicationDateRangeKpiResponse
applicationDateRangeKpiResponse_kpiName = (ApplicationDateRangeKpiResponse -> Text)
-> (ApplicationDateRangeKpiResponse
    -> Text -> ApplicationDateRangeKpiResponse)
-> Lens
     ApplicationDateRangeKpiResponse
     ApplicationDateRangeKpiResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDateRangeKpiResponse' {Text
kpiName :: Text
$sel:kpiName:ApplicationDateRangeKpiResponse' :: ApplicationDateRangeKpiResponse -> Text
kpiName} -> Text
kpiName) (\s :: ApplicationDateRangeKpiResponse
s@ApplicationDateRangeKpiResponse' {} Text
a -> ApplicationDateRangeKpiResponse
s {$sel:kpiName:ApplicationDateRangeKpiResponse' :: Text
kpiName = Text
a} :: ApplicationDateRangeKpiResponse)

-- | The last date and time of the date range that was used to filter the
-- query results, in extended ISO 8601 format. The date range is inclusive.
applicationDateRangeKpiResponse_endTime :: Lens.Lens' ApplicationDateRangeKpiResponse Prelude.UTCTime
applicationDateRangeKpiResponse_endTime :: (UTCTime -> f UTCTime)
-> ApplicationDateRangeKpiResponse
-> f ApplicationDateRangeKpiResponse
applicationDateRangeKpiResponse_endTime = (ApplicationDateRangeKpiResponse -> POSIX)
-> (ApplicationDateRangeKpiResponse
    -> POSIX -> ApplicationDateRangeKpiResponse)
-> Lens
     ApplicationDateRangeKpiResponse
     ApplicationDateRangeKpiResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDateRangeKpiResponse' {POSIX
endTime :: POSIX
$sel:endTime:ApplicationDateRangeKpiResponse' :: ApplicationDateRangeKpiResponse -> POSIX
endTime} -> POSIX
endTime) (\s :: ApplicationDateRangeKpiResponse
s@ApplicationDateRangeKpiResponse' {} POSIX
a -> ApplicationDateRangeKpiResponse
s {$sel:endTime:ApplicationDateRangeKpiResponse' :: POSIX
endTime = POSIX
a} :: ApplicationDateRangeKpiResponse) ((POSIX -> f POSIX)
 -> ApplicationDateRangeKpiResponse
 -> f ApplicationDateRangeKpiResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ApplicationDateRangeKpiResponse
-> f ApplicationDateRangeKpiResponse
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

-- | The first date and time of the date range that was used to filter the
-- query results, in extended ISO 8601 format. The date range is inclusive.
applicationDateRangeKpiResponse_startTime :: Lens.Lens' ApplicationDateRangeKpiResponse Prelude.UTCTime
applicationDateRangeKpiResponse_startTime :: (UTCTime -> f UTCTime)
-> ApplicationDateRangeKpiResponse
-> f ApplicationDateRangeKpiResponse
applicationDateRangeKpiResponse_startTime = (ApplicationDateRangeKpiResponse -> POSIX)
-> (ApplicationDateRangeKpiResponse
    -> POSIX -> ApplicationDateRangeKpiResponse)
-> Lens
     ApplicationDateRangeKpiResponse
     ApplicationDateRangeKpiResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDateRangeKpiResponse' {POSIX
startTime :: POSIX
$sel:startTime:ApplicationDateRangeKpiResponse' :: ApplicationDateRangeKpiResponse -> POSIX
startTime} -> POSIX
startTime) (\s :: ApplicationDateRangeKpiResponse
s@ApplicationDateRangeKpiResponse' {} POSIX
a -> ApplicationDateRangeKpiResponse
s {$sel:startTime:ApplicationDateRangeKpiResponse' :: POSIX
startTime = POSIX
a} :: ApplicationDateRangeKpiResponse) ((POSIX -> f POSIX)
 -> ApplicationDateRangeKpiResponse
 -> f ApplicationDateRangeKpiResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ApplicationDateRangeKpiResponse
-> f ApplicationDateRangeKpiResponse
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

-- | The unique identifier for the application that the metric applies to.
applicationDateRangeKpiResponse_applicationId :: Lens.Lens' ApplicationDateRangeKpiResponse Prelude.Text
applicationDateRangeKpiResponse_applicationId :: (Text -> f Text)
-> ApplicationDateRangeKpiResponse
-> f ApplicationDateRangeKpiResponse
applicationDateRangeKpiResponse_applicationId = (ApplicationDateRangeKpiResponse -> Text)
-> (ApplicationDateRangeKpiResponse
    -> Text -> ApplicationDateRangeKpiResponse)
-> Lens
     ApplicationDateRangeKpiResponse
     ApplicationDateRangeKpiResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDateRangeKpiResponse' {Text
applicationId :: Text
$sel:applicationId:ApplicationDateRangeKpiResponse' :: ApplicationDateRangeKpiResponse -> Text
applicationId} -> Text
applicationId) (\s :: ApplicationDateRangeKpiResponse
s@ApplicationDateRangeKpiResponse' {} Text
a -> ApplicationDateRangeKpiResponse
s {$sel:applicationId:ApplicationDateRangeKpiResponse' :: Text
applicationId = Text
a} :: ApplicationDateRangeKpiResponse)

instance
  Core.FromJSON
    ApplicationDateRangeKpiResponse
  where
  parseJSON :: Value -> Parser ApplicationDateRangeKpiResponse
parseJSON =
    String
-> (Object -> Parser ApplicationDateRangeKpiResponse)
-> Value
-> Parser ApplicationDateRangeKpiResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ApplicationDateRangeKpiResponse"
      ( \Object
x ->
          Maybe Text
-> BaseKpiResult
-> Text
-> POSIX
-> POSIX
-> Text
-> ApplicationDateRangeKpiResponse
ApplicationDateRangeKpiResponse'
            (Maybe Text
 -> BaseKpiResult
 -> Text
 -> POSIX
 -> POSIX
 -> Text
 -> ApplicationDateRangeKpiResponse)
-> Parser (Maybe Text)
-> Parser
     (BaseKpiResult
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> ApplicationDateRangeKpiResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NextToken")
            Parser
  (BaseKpiResult
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> ApplicationDateRangeKpiResponse)
-> Parser BaseKpiResult
-> Parser
     (Text -> POSIX -> POSIX -> Text -> ApplicationDateRangeKpiResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser BaseKpiResult
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"KpiResult")
            Parser
  (Text -> POSIX -> POSIX -> Text -> ApplicationDateRangeKpiResponse)
-> Parser Text
-> Parser
     (POSIX -> POSIX -> Text -> ApplicationDateRangeKpiResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"KpiName")
            Parser (POSIX -> POSIX -> Text -> ApplicationDateRangeKpiResponse)
-> Parser POSIX
-> Parser (POSIX -> Text -> ApplicationDateRangeKpiResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"EndTime")
            Parser (POSIX -> Text -> ApplicationDateRangeKpiResponse)
-> Parser POSIX -> Parser (Text -> ApplicationDateRangeKpiResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"StartTime")
            Parser (Text -> ApplicationDateRangeKpiResponse)
-> Parser Text -> Parser ApplicationDateRangeKpiResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ApplicationId")
      )

instance
  Prelude.Hashable
    ApplicationDateRangeKpiResponse

instance
  Prelude.NFData
    ApplicationDateRangeKpiResponse