@Generated(value="software.amazon.awssdk:codegen") public final class AppMonitorConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AppMonitorConfiguration.Builder,AppMonitorConfiguration>
This structure contains much of the configuration data for the app monitor.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AppMonitorConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowCookies()
If you set this to
true, the RUM web client sets two cookies, a session cookie and a user cookie. |
static AppMonitorConfiguration.Builder |
builder() |
Boolean |
enableXRay()
If you set this to
true, RUM enables X-Ray tracing for the user sessions that RUM samples. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
excludedPages()
A list of URLs in your website or application to exclude from RUM data collection.
|
List<String> |
favoritePages()
A list of pages in your application that are to be displayed with a "favorite" icon in the CloudWatch RUM
console.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
guestRoleArn()
The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool that is used to authorize the
sending of data to RUM.
|
boolean |
hasExcludedPages()
For responses, this returns true if the service returned a value for the ExcludedPages property.
|
boolean |
hasFavoritePages()
For responses, this returns true if the service returned a value for the FavoritePages property.
|
int |
hashCode() |
boolean |
hasIncludedPages()
For responses, this returns true if the service returned a value for the IncludedPages property.
|
boolean |
hasTelemetries()
For responses, this returns true if the service returned a value for the Telemetries property.
|
String |
identityPoolId()
The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM.
|
List<String> |
includedPages()
If this app monitor is to collect data from only certain pages in your application, this structure lists those
pages.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AppMonitorConfiguration.Builder> |
serializableBuilderClass() |
Double |
sessionSampleRate()
Specifies the portion of user sessions to use for RUM data collection.
|
List<Telemetry> |
telemetries()
An array that lists the types of telemetry data that this app monitor is to collect.
|
List<String> |
telemetriesAsStrings()
An array that lists the types of telemetry data that this app monitor is to collect.
|
AppMonitorConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean allowCookies()
If you set this to true, the RUM web client sets two cookies, a session cookie and a user cookie.
The cookies allow the RUM web client to collect data relating to the number of users an application has and the
behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the
current page.
true, the RUM web client sets two cookies, a session cookie and a user
cookie. The cookies allow the RUM web client to collect data relating to the number of users an
application has and the behavior of the application across a sequence of events. Cookies are stored in
the top-level domain of the current page.public final Boolean enableXRay()
If you set this to true, RUM enables X-Ray tracing for the user sessions that RUM samples. RUM adds
an X-Ray trace header to allowed HTTP requests. It also records an X-Ray segment for allowed HTTP requests. You
can see traces and segments from these user sessions in the X-Ray console and the CloudWatch ServiceLens console.
For more information, see What is
X-Ray?
true, RUM enables X-Ray tracing for the user sessions that RUM samples.
RUM adds an X-Ray trace header to allowed HTTP requests. It also records an X-Ray segment for allowed
HTTP requests. You can see traces and segments from these user sessions in the X-Ray console and the
CloudWatch ServiceLens console. For more information, see What is X-Ray?public final boolean hasExcludedPages()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> excludedPages()
A list of URLs in your website or application to exclude from RUM data collection.
You can't include both ExcludedPages and IncludedPages in the same operation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExcludedPages() method.
You can't include both ExcludedPages and IncludedPages in the same operation.
public final boolean hasFavoritePages()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> favoritePages()
A list of pages in your application that are to be displayed with a "favorite" icon in the CloudWatch RUM console.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFavoritePages() method.
public final String guestRoleArn()
The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool that is used to authorize the sending of data to RUM.
public final String identityPoolId()
The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM.
public final boolean hasIncludedPages()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> includedPages()
If this app monitor is to collect data from only certain pages in your application, this structure lists those pages.
You can't include both ExcludedPages and IncludedPages in the same operation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIncludedPages() method.
You can't include both ExcludedPages and IncludedPages in the same operation.
public final Double sessionSampleRate()
Specifies the portion of user sessions to use for RUM data collection. Choosing a higher portion gives you more data but also incurs more costs.
The range for this value is 0 to 1 inclusive. Setting this to 1 means that 100% of user sessions are sampled, and setting it to 0.1 means that 10% of user sessions are sampled.
If you omit this parameter, the default of 0.1 is used, and 10% of sessions will be sampled.
The range for this value is 0 to 1 inclusive. Setting this to 1 means that 100% of user sessions are sampled, and setting it to 0.1 means that 10% of user sessions are sampled.
If you omit this parameter, the default of 0.1 is used, and 10% of sessions will be sampled.
public final List<Telemetry> telemetries()
An array that lists the types of telemetry data that this app monitor is to collect.
errors indicates that RUM collects data about unhandled JavaScript errors raised by your
application.
performance indicates that RUM collects performance data about how your application and its
resources are loaded and rendered. This includes Core Web Vitals.
http indicates that RUM collects data about HTTP errors thrown by your application.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTelemetries() method.
errors indicates that RUM collects data about unhandled JavaScript errors raised by your
application.
performance indicates that RUM collects performance data about how your application and its
resources are loaded and rendered. This includes Core Web Vitals.
http indicates that RUM collects data about HTTP errors thrown by your application.
public final boolean hasTelemetries()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> telemetriesAsStrings()
An array that lists the types of telemetry data that this app monitor is to collect.
errors indicates that RUM collects data about unhandled JavaScript errors raised by your
application.
performance indicates that RUM collects performance data about how your application and its
resources are loaded and rendered. This includes Core Web Vitals.
http indicates that RUM collects data about HTTP errors thrown by your application.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTelemetries() method.
errors indicates that RUM collects data about unhandled JavaScript errors raised by your
application.
performance indicates that RUM collects performance data about how your application and its
resources are loaded and rendered. This includes Core Web Vitals.
http indicates that RUM collects data about HTTP errors thrown by your application.
public AppMonitorConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AppMonitorConfiguration.Builder,AppMonitorConfiguration>public static AppMonitorConfiguration.Builder builder()
public static Class<? extends AppMonitorConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.