Class AppMonitorConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.rum.model.AppMonitorConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AppMonitorConfiguration.Builder,AppMonitorConfiguration>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAppMonitorConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallowCookies()If you set this totrue, the RUM web client sets two cookies, a session cookie and a user cookie.static AppMonitorConfiguration.Builderbuilder()BooleanenableXRay()If you set this totrue, RUM enables X-Ray tracing for the user sessions that RUM samples.booleanequals(Object obj)booleanequalsBySdkFields(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)StringguestRoleArn()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.booleanhasExcludedPages()For responses, this returns true if the service returned a value for the ExcludedPages property.booleanhasFavoritePages()For responses, this returns true if the service returned a value for the FavoritePages property.inthashCode()booleanhasIncludedPages()For responses, this returns true if the service returned a value for the IncludedPages property.booleanhasTelemetries()For responses, this returns true if the service returned a value for the Telemetries property.StringidentityPoolId()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()DoublesessionSampleRate()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.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
allowCookies
public 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.- Returns:
- 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.
-
enableXRay
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?- Returns:
- 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?
-
hasExcludedPages
public final boolean hasExcludedPages()
For responses, this returns true if the service returned a value for the ExcludedPages property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
excludedPages
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
ExcludedPagesandIncludedPagesin 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.- Returns:
- A list of URLs in your website or application to exclude from RUM data collection.
You can't include both
ExcludedPagesandIncludedPagesin the same operation.
-
hasFavoritePages
public final boolean hasFavoritePages()
For responses, this returns true if the service returned a value for the FavoritePages property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
favoritePages
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.- Returns:
- A list of pages in your application that are to be displayed with a "favorite" icon in the CloudWatch RUM console.
-
guestRoleArn
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.
- Returns:
- 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.
-
identityPoolId
public final String identityPoolId()
The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM.
- Returns:
- The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM.
-
hasIncludedPages
public final boolean hasIncludedPages()
For responses, this returns true if the service returned a value for the IncludedPages property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
includedPages
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
ExcludedPagesandIncludedPagesin 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.- Returns:
- 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
ExcludedPagesandIncludedPagesin the same operation.
-
sessionSampleRate
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.
- Returns:
- 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.
-
telemetries
public final List<Telemetry> telemetries()
An array that lists the types of telemetry data that this app monitor is to collect.
-
errorsindicates that RUM collects data about unhandled JavaScript errors raised by your application. -
performanceindicates that RUM collects performance data about how your application and its resources are loaded and rendered. This includes Core Web Vitals. -
httpindicates 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.- Returns:
- An array that lists the types of telemetry data that this app monitor is to collect.
-
errorsindicates that RUM collects data about unhandled JavaScript errors raised by your application. -
performanceindicates that RUM collects performance data about how your application and its resources are loaded and rendered. This includes Core Web Vitals. -
httpindicates that RUM collects data about HTTP errors thrown by your application.
-
-
-
hasTelemetries
public final boolean hasTelemetries()
For responses, this returns true if the service returned a value for the Telemetries property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
telemetriesAsStrings
public final List<String> telemetriesAsStrings()
An array that lists the types of telemetry data that this app monitor is to collect.
-
errorsindicates that RUM collects data about unhandled JavaScript errors raised by your application. -
performanceindicates that RUM collects performance data about how your application and its resources are loaded and rendered. This includes Core Web Vitals. -
httpindicates 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.- Returns:
- An array that lists the types of telemetry data that this app monitor is to collect.
-
errorsindicates that RUM collects data about unhandled JavaScript errors raised by your application. -
performanceindicates that RUM collects performance data about how your application and its resources are loaded and rendered. This includes Core Web Vitals. -
httpindicates that RUM collects data about HTTP errors thrown by your application.
-
-
-
toBuilder
public AppMonitorConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AppMonitorConfiguration.Builder,AppMonitorConfiguration>
-
builder
public static AppMonitorConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends AppMonitorConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-