Update App Monitor
cloudwatchrum_update_app_monitor | R Documentation |
Updates the configuration of an existing app monitor¶
Description¶
Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor configuration that you specify in this operation are changed. For any parameters that you omit, the existing values are kept.
You can't use this operation to change the tags of an existing app
monitor. To change the tags of an existing app monitor, use
tag_resource
.
To create a new app monitor, use create_app_monitor
.
After you update an app monitor, sign in to the CloudWatch RUM console to get the updated JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?
Usage¶
cloudwatchrum_update_app_monitor(AppMonitorConfiguration, CustomEvents,
CwLogEnabled, Domain, Name)
Arguments¶
AppMonitorConfiguration |
A structure that contains much of the configuration data for the
app monitor. If you are using Amazon Cognito for authorization, you must
include this structure in your request, and it must include the ID of
the Amazon Cognito identity pool to use for authorization. If you don't
include |
CustomEvents |
Specifies whether this app monitor allows the web client to
define and send custom events. The default is for custom events to be
For more information about custom events, see Send custom events. |
CwLogEnabled |
Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges. |
Domain |
The top-level internet domain name for which your application has administrative authority. |
Name |
[required] The name of the app monitor to update. |
Value¶
An empty list.
Request syntax¶
svc$update_app_monitor(
AppMonitorConfiguration = list(
AllowCookies = TRUE|FALSE,
EnableXRay = TRUE|FALSE,
ExcludedPages = list(
"string"
),
FavoritePages = list(
"string"
),
GuestRoleArn = "string",
IdentityPoolId = "string",
IncludedPages = list(
"string"
),
SessionSampleRate = 123.0,
Telemetries = list(
"errors"|"performance"|"http"
)
),
CustomEvents = list(
Status = "ENABLED"|"DISABLED"
),
CwLogEnabled = TRUE|FALSE,
Domain = "string",
Name = "string"
)