Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a metric attribution. A metric attribution creates reports on the data that you import into Amazon Personalize. Depending on how you imported the data, you can view reports in Amazon CloudWatch or Amazon S3. For more information, see Measuring impact of recommendations.
Synopsis
- data CreateMetricAttribution = CreateMetricAttribution' {}
- newCreateMetricAttribution :: Text -> Text -> MetricAttributionOutput -> CreateMetricAttribution
- createMetricAttribution_name :: Lens' CreateMetricAttribution Text
- createMetricAttribution_datasetGroupArn :: Lens' CreateMetricAttribution Text
- createMetricAttribution_metrics :: Lens' CreateMetricAttribution [MetricAttribute]
- createMetricAttribution_metricsOutputConfig :: Lens' CreateMetricAttribution MetricAttributionOutput
- data CreateMetricAttributionResponse = CreateMetricAttributionResponse' {}
- newCreateMetricAttributionResponse :: Int -> CreateMetricAttributionResponse
- createMetricAttributionResponse_metricAttributionArn :: Lens' CreateMetricAttributionResponse (Maybe Text)
- createMetricAttributionResponse_httpStatus :: Lens' CreateMetricAttributionResponse Int
Creating a Request
data CreateMetricAttribution Source #
See: newCreateMetricAttribution
smart constructor.
CreateMetricAttribution' | |
|
Instances
newCreateMetricAttribution Source #
Create a value of CreateMetricAttribution
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:
CreateMetricAttribution
, createMetricAttribution_name
- A name for the metric attribution.
CreateMetricAttribution
, createMetricAttribution_datasetGroupArn
- The Amazon Resource Name (ARN) of the destination dataset group for the
metric attribution.
$sel:metrics:CreateMetricAttribution'
, createMetricAttribution_metrics
- A list of metric attributes for the metric attribution. Each metric
attribute specifies an event type to track and a function. Available
functions are SUM()
or SAMPLECOUNT()
. For SUM() functions, provide
the dataset type (either Interactions or Items) and column to sum as a
parameter. For example SUM(Items.PRICE).
CreateMetricAttribution
, createMetricAttribution_metricsOutputConfig
- The output configuration details for the metric attribution.
Request Lenses
createMetricAttribution_name :: Lens' CreateMetricAttribution Text Source #
A name for the metric attribution.
createMetricAttribution_datasetGroupArn :: Lens' CreateMetricAttribution Text Source #
The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.
createMetricAttribution_metrics :: Lens' CreateMetricAttribution [MetricAttribute] Source #
A list of metric attributes for the metric attribution. Each metric
attribute specifies an event type to track and a function. Available
functions are SUM()
or SAMPLECOUNT()
. For SUM() functions, provide
the dataset type (either Interactions or Items) and column to sum as a
parameter. For example SUM(Items.PRICE).
createMetricAttribution_metricsOutputConfig :: Lens' CreateMetricAttribution MetricAttributionOutput Source #
The output configuration details for the metric attribution.
Destructuring the Response
data CreateMetricAttributionResponse Source #
See: newCreateMetricAttributionResponse
smart constructor.
CreateMetricAttributionResponse' | |
|
Instances
Generic CreateMetricAttributionResponse Source # | |
Read CreateMetricAttributionResponse Source # | |
Show CreateMetricAttributionResponse Source # | |
Defined in Amazonka.Personalize.CreateMetricAttribution | |
NFData CreateMetricAttributionResponse Source # | |
Defined in Amazonka.Personalize.CreateMetricAttribution rnf :: CreateMetricAttributionResponse -> () # | |
Eq CreateMetricAttributionResponse Source # | |
type Rep CreateMetricAttributionResponse Source # | |
Defined in Amazonka.Personalize.CreateMetricAttribution type Rep CreateMetricAttributionResponse = D1 ('MetaData "CreateMetricAttributionResponse" "Amazonka.Personalize.CreateMetricAttribution" "amazonka-personalize-2.0-9kdbGNMxU7zEIoXPqEwwTg" 'False) (C1 ('MetaCons "CreateMetricAttributionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricAttributionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateMetricAttributionResponse Source #
Create a value of CreateMetricAttributionResponse
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:
CreateMetricAttributionResponse
, createMetricAttributionResponse_metricAttributionArn
- The Amazon Resource Name (ARN) for the new metric attribution.
$sel:httpStatus:CreateMetricAttributionResponse'
, createMetricAttributionResponse_httpStatus
- The response's http status code.
Response Lenses
createMetricAttributionResponse_metricAttributionArn :: Lens' CreateMetricAttributionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the new metric attribution.
createMetricAttributionResponse_httpStatus :: Lens' CreateMetricAttributionResponse Int Source #
The response's http status code.