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 or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment.
For more information about extended metrics, see AddRumMetrics.
Synopsis
- data PutRumMetricsDestination = PutRumMetricsDestination' {}
- newPutRumMetricsDestination :: Text -> MetricDestination -> PutRumMetricsDestination
- putRumMetricsDestination_destinationArn :: Lens' PutRumMetricsDestination (Maybe Text)
- putRumMetricsDestination_iamRoleArn :: Lens' PutRumMetricsDestination (Maybe Text)
- putRumMetricsDestination_appMonitorName :: Lens' PutRumMetricsDestination Text
- putRumMetricsDestination_destination :: Lens' PutRumMetricsDestination MetricDestination
- data PutRumMetricsDestinationResponse = PutRumMetricsDestinationResponse' {
- httpStatus :: Int
- newPutRumMetricsDestinationResponse :: Int -> PutRumMetricsDestinationResponse
- putRumMetricsDestinationResponse_httpStatus :: Lens' PutRumMetricsDestinationResponse Int
Creating a Request
data PutRumMetricsDestination Source #
See: newPutRumMetricsDestination
smart constructor.
PutRumMetricsDestination' | |
|
Instances
newPutRumMetricsDestination Source #
Create a value of PutRumMetricsDestination
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:
PutRumMetricsDestination
, putRumMetricsDestination_destinationArn
- Use this parameter only if Destination
is Evidently
. This parameter
specifies the ARN of the Evidently experiment that will receive the
extended metrics.
PutRumMetricsDestination
, putRumMetricsDestination_iamRoleArn
- This parameter is required if Destination
is Evidently
. If
Destination
is CloudWatch
, do not use this parameter.
This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.
$sel:appMonitorName:PutRumMetricsDestination'
, putRumMetricsDestination_appMonitorName
- The name of the CloudWatch RUM app monitor that will send the metrics.
PutRumMetricsDestination
, putRumMetricsDestination_destination
- Defines the destination to send the metrics to. Valid values are
CloudWatch
and Evidently
. If you specify Evidently
, you must also
specify the ARN of the CloudWatchEvidently experiment that is to be the
destination and an IAM role that has permission to write to the
experiment.
Request Lenses
putRumMetricsDestination_destinationArn :: Lens' PutRumMetricsDestination (Maybe Text) Source #
Use this parameter only if Destination
is Evidently
. This parameter
specifies the ARN of the Evidently experiment that will receive the
extended metrics.
putRumMetricsDestination_iamRoleArn :: Lens' PutRumMetricsDestination (Maybe Text) Source #
This parameter is required if Destination
is Evidently
. If
Destination
is CloudWatch
, do not use this parameter.
This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.
putRumMetricsDestination_appMonitorName :: Lens' PutRumMetricsDestination Text Source #
The name of the CloudWatch RUM app monitor that will send the metrics.
putRumMetricsDestination_destination :: Lens' PutRumMetricsDestination MetricDestination Source #
Defines the destination to send the metrics to. Valid values are
CloudWatch
and Evidently
. If you specify Evidently
, you must also
specify the ARN of the CloudWatchEvidently experiment that is to be the
destination and an IAM role that has permission to write to the
experiment.
Destructuring the Response
data PutRumMetricsDestinationResponse Source #
See: newPutRumMetricsDestinationResponse
smart constructor.
PutRumMetricsDestinationResponse' | |
|
Instances
Generic PutRumMetricsDestinationResponse Source # | |
Read PutRumMetricsDestinationResponse Source # | |
Show PutRumMetricsDestinationResponse Source # | |
Defined in Amazonka.Rum.PutRumMetricsDestination | |
NFData PutRumMetricsDestinationResponse Source # | |
Defined in Amazonka.Rum.PutRumMetricsDestination rnf :: PutRumMetricsDestinationResponse -> () # | |
Eq PutRumMetricsDestinationResponse Source # | |
type Rep PutRumMetricsDestinationResponse Source # | |
Defined in Amazonka.Rum.PutRumMetricsDestination type Rep PutRumMetricsDestinationResponse = D1 ('MetaData "PutRumMetricsDestinationResponse" "Amazonka.Rum.PutRumMetricsDestination" "amazonka-rum-2.0-2UnkV4TSIBwJW5RXOw3bOY" 'False) (C1 ('MetaCons "PutRumMetricsDestinationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutRumMetricsDestinationResponse Source #
Create a value of PutRumMetricsDestinationResponse
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:httpStatus:PutRumMetricsDestinationResponse'
, putRumMetricsDestinationResponse_httpStatus
- The response's http status code.
Response Lenses
putRumMetricsDestinationResponse_httpStatus :: Lens' PutRumMetricsDestinationResponse Int Source #
The response's http status code.