libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Pinpoint.GetCampaignDateRangeKpi

Description

Retrieves (queries) pre-aggregated data for a standard metric that applies to a campaign.

Synopsis

Creating a Request

data GetCampaignDateRangeKpi Source #

See: newGetCampaignDateRangeKpi smart constructor.

Constructors

GetCampaignDateRangeKpi' 

Fields

  • startTime :: Maybe POSIX

    The first date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day.

  • nextToken :: Maybe Text

    The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.

  • endTime :: Maybe POSIX

    The last date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.

  • pageSize :: Maybe Text

    The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.

  • applicationId :: Text

    The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

  • kpiName :: Text

    The name of the metric, also referred to as a /key performance indicator (KPI)/, to retrieve data 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. Examples are email-open-rate and successful-delivery-rate. For a list of valid values, see the Amazon Pinpoint Developer Guide.

  • campaignId :: Text

    The unique identifier for the campaign.

Instances

Instances details
Eq GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Read GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Show GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Generic GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Associated Types

type Rep GetCampaignDateRangeKpi :: Type -> Type #

NFData GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Methods

rnf :: GetCampaignDateRangeKpi -> () #

Hashable GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

AWSRequest GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

ToHeaders GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

ToPath GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

ToQuery GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

type Rep GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

type Rep GetCampaignDateRangeKpi = D1 ('MetaData "GetCampaignDateRangeKpi" "Amazonka.Pinpoint.GetCampaignDateRangeKpi" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "GetCampaignDateRangeKpi'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "applicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "kpiName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "campaignId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetCampaignDateRangeKpi Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

newGetCampaignDateRangeKpi Source #

Create a value of GetCampaignDateRangeKpi with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:startTime:GetCampaignDateRangeKpi', getCampaignDateRangeKpi_startTime - The first date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day.

$sel:nextToken:GetCampaignDateRangeKpi', getCampaignDateRangeKpi_nextToken - The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.

$sel:endTime:GetCampaignDateRangeKpi', getCampaignDateRangeKpi_endTime - The last date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.

$sel:pageSize:GetCampaignDateRangeKpi', getCampaignDateRangeKpi_pageSize - The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.

$sel:applicationId:GetCampaignDateRangeKpi', getCampaignDateRangeKpi_applicationId - The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

$sel:kpiName:GetCampaignDateRangeKpi', getCampaignDateRangeKpi_kpiName - The name of the metric, also referred to as a /key performance indicator (KPI)/, to retrieve data 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. Examples are email-open-rate and successful-delivery-rate. For a list of valid values, see the Amazon Pinpoint Developer Guide.

$sel:campaignId:GetCampaignDateRangeKpi', getCampaignDateRangeKpi_campaignId - The unique identifier for the campaign.

Request Lenses

getCampaignDateRangeKpi_startTime :: Lens' GetCampaignDateRangeKpi (Maybe UTCTime) Source #

The first date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day.

getCampaignDateRangeKpi_nextToken :: Lens' GetCampaignDateRangeKpi (Maybe Text) Source #

The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.

getCampaignDateRangeKpi_endTime :: Lens' GetCampaignDateRangeKpi (Maybe UTCTime) Source #

The last date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.

getCampaignDateRangeKpi_pageSize :: Lens' GetCampaignDateRangeKpi (Maybe Text) Source #

The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.

getCampaignDateRangeKpi_applicationId :: Lens' GetCampaignDateRangeKpi Text Source #

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

getCampaignDateRangeKpi_kpiName :: Lens' GetCampaignDateRangeKpi Text Source #

The name of the metric, also referred to as a /key performance indicator (KPI)/, to retrieve data 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. Examples are email-open-rate and successful-delivery-rate. For a list of valid values, see the Amazon Pinpoint Developer Guide.

Destructuring the Response

data GetCampaignDateRangeKpiResponse Source #

See: newGetCampaignDateRangeKpiResponse smart constructor.

Instances

Instances details
Eq GetCampaignDateRangeKpiResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Read GetCampaignDateRangeKpiResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Show GetCampaignDateRangeKpiResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Generic GetCampaignDateRangeKpiResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

Associated Types

type Rep GetCampaignDateRangeKpiResponse :: Type -> Type #

NFData GetCampaignDateRangeKpiResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

type Rep GetCampaignDateRangeKpiResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetCampaignDateRangeKpi

type Rep GetCampaignDateRangeKpiResponse = D1 ('MetaData "GetCampaignDateRangeKpiResponse" "Amazonka.Pinpoint.GetCampaignDateRangeKpi" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "GetCampaignDateRangeKpiResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "campaignDateRangeKpiResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CampaignDateRangeKpiResponse)))

Response Lenses