AppMonitorConfigurationProperty Struct
This structure contains much of the configuration data for the app monitor.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rum as rum } from 'aws-cdk-lib';
const appMonitorConfigurationProperty: rum.CfnAppMonitor.AppMonitorConfigurationProperty = {
allowCookies: false,
enableXRay: false,
excludedPages: ['excludedPages'],
favoritePages: ['favoritePages'],
guestRoleArn: 'guestRoleArn',
identityPoolId: 'identityPoolId',
includedPages: ['includedPages'],
metricDestinations: [{
destination: 'destination',
// the properties below are optional
destinationArn: 'destinationArn',
iamRoleArn: 'iamRoleArn',
metricDefinitions: [{
name: 'name',
// the properties below are optional
dimensionKeys: {
dimensionKeysKey: 'dimensionKeys',
},
eventPattern: 'eventPattern',
namespace: 'namespace',
unitLabel: 'unitLabel',
valueKey: 'valueKey',
}],
}],
sessionSampleRate: 123,
telemetries: ['telemetries'],
};
Properties
allowCookiesoptionalboolean | IResolvableallow_cookiesoptionaltyping.Union[bool, IResolvable]allowCookiesoptionalBooleanAllowCookiesoptionalboolAllowCookiesoptionalinterface{}#notes
The cookies allow the CloudWatch 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.
enableXRayoptionalboolean | IResolvableenable_x_rayoptionaltyping.Union[bool, IResolvable]enableXRayoptionalBooleanEnableXRayoptionalboolEnableXRayoptionalinterface{}#You can then see traces and segments from these user sessions in the RUM dashboard and the CloudWatch ServiceLens console. For more information, see What is AWS X-Ray ?
excludedPagesoptionalstring[]excluded_pagesoptionaltyping.List[str]excludedPagesoptionalList<String>ExcludedPagesoptionalstring[]ExcludedPagesoptional*[]*string#You can't include both ExcludedPages and IncludedPages in the same app monitor.
favoritePagesoptionalstring[]favorite_pagesoptionaltyping.List[str]favoritePagesoptionalList<String>FavoritePagesoptionalstring[]FavoritePagesoptional*[]*string#guestRoleArnoptionalstringguest_role_arnoptionalstrguestRoleArnoptionalStringGuestRoleArnoptionalstringGuestRoleArnoptional*string#identityPoolIdoptionalstringidentity_pool_idoptionalstridentityPoolIdoptionalStringIdentityPoolIdoptionalstringIdentityPoolIdoptional*string#includedPagesoptionalstring[]included_pagesoptionaltyping.List[str]includedPagesoptionalList<String>IncludedPagesoptionalstring[]IncludedPagesoptional*[]*string#You can't include both ExcludedPages and IncludedPages in the same app monitor.
metricDestinationsoptionalIResolvable | IResolvable | CfnAppMonitor.MetricDestinationProperty[]metric_destinationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MetricDestinationProperty]]]metricDestinationsoptionalIResolvableMetricDestinationsoptionalIResolvableMetricDestinationsoptionalinterface{}#sessionSampleRateoptionalnumbersession_sample_rateoptionalint | floatsessionSampleRateoptionalNumberSessionSampleRateoptionaldoubleSessionSampleRateoptional*float64#notes
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.
telemetriesoptionalstring[]telemetriesoptionaltyping.List[str]telemetriesoptionalList<String>Telemetriesoptionalstring[]Telemetriesoptional*[]*string#notes
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.