@aws-sdk/client-rum 3.935.0 → 3.939.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +34 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +27 -0
- package/dist-es/models/models_0.js +1 -27
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +84 -0
- package/dist-types/models/models_0.d.ts +1 -84
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +37 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -37
- package/package.json +12 -12
package/dist-cjs/index.js
CHANGED
|
@@ -1469,6 +1469,34 @@ const paginateListAppMonitors = core.createPaginator(RUMClient, ListAppMonitorsC
|
|
|
1469
1469
|
|
|
1470
1470
|
const paginateListRumMetricsDestinations = core.createPaginator(RUMClient, ListRumMetricsDestinationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1471
1471
|
|
|
1472
|
+
const Telemetry = {
|
|
1473
|
+
ERRORS: "errors",
|
|
1474
|
+
HTTP: "http",
|
|
1475
|
+
PERFORMANCE: "performance",
|
|
1476
|
+
};
|
|
1477
|
+
const CustomEventsStatus = {
|
|
1478
|
+
DISABLED: "DISABLED",
|
|
1479
|
+
ENABLED: "ENABLED",
|
|
1480
|
+
};
|
|
1481
|
+
const DeobfuscationStatus = {
|
|
1482
|
+
DISABLED: "DISABLED",
|
|
1483
|
+
ENABLED: "ENABLED",
|
|
1484
|
+
};
|
|
1485
|
+
const AppMonitorPlatform = {
|
|
1486
|
+
ANDROID: "Android",
|
|
1487
|
+
IOS: "iOS",
|
|
1488
|
+
WEB: "Web",
|
|
1489
|
+
};
|
|
1490
|
+
const StateEnum = {
|
|
1491
|
+
ACTIVE: "ACTIVE",
|
|
1492
|
+
CREATED: "CREATED",
|
|
1493
|
+
DELETING: "DELETING",
|
|
1494
|
+
};
|
|
1495
|
+
const MetricDestination = {
|
|
1496
|
+
CloudWatch: "CloudWatch",
|
|
1497
|
+
Evidently: "Evidently",
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1472
1500
|
Object.defineProperty(exports, "$Command", {
|
|
1473
1501
|
enumerable: true,
|
|
1474
1502
|
get: function () { return smithyClient.Command; }
|
|
@@ -1478,14 +1506,17 @@ Object.defineProperty(exports, "__Client", {
|
|
|
1478
1506
|
get: function () { return smithyClient.Client; }
|
|
1479
1507
|
});
|
|
1480
1508
|
exports.AccessDeniedException = AccessDeniedException$1;
|
|
1509
|
+
exports.AppMonitorPlatform = AppMonitorPlatform;
|
|
1481
1510
|
exports.BatchCreateRumMetricDefinitionsCommand = BatchCreateRumMetricDefinitionsCommand;
|
|
1482
1511
|
exports.BatchDeleteRumMetricDefinitionsCommand = BatchDeleteRumMetricDefinitionsCommand;
|
|
1483
1512
|
exports.BatchGetRumMetricDefinitionsCommand = BatchGetRumMetricDefinitionsCommand;
|
|
1484
1513
|
exports.ConflictException = ConflictException$1;
|
|
1485
1514
|
exports.CreateAppMonitorCommand = CreateAppMonitorCommand;
|
|
1515
|
+
exports.CustomEventsStatus = CustomEventsStatus;
|
|
1486
1516
|
exports.DeleteAppMonitorCommand = DeleteAppMonitorCommand;
|
|
1487
1517
|
exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
|
|
1488
1518
|
exports.DeleteRumMetricsDestinationCommand = DeleteRumMetricsDestinationCommand;
|
|
1519
|
+
exports.DeobfuscationStatus = DeobfuscationStatus;
|
|
1489
1520
|
exports.GetAppMonitorCommand = GetAppMonitorCommand;
|
|
1490
1521
|
exports.GetAppMonitorDataCommand = GetAppMonitorDataCommand;
|
|
1491
1522
|
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
@@ -1495,6 +1526,7 @@ exports.ListAppMonitorsCommand = ListAppMonitorsCommand;
|
|
|
1495
1526
|
exports.ListRumMetricsDestinationsCommand = ListRumMetricsDestinationsCommand;
|
|
1496
1527
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1497
1528
|
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException$1;
|
|
1529
|
+
exports.MetricDestination = MetricDestination;
|
|
1498
1530
|
exports.PolicyNotFoundException = PolicyNotFoundException$1;
|
|
1499
1531
|
exports.PolicySizeLimitExceededException = PolicySizeLimitExceededException$1;
|
|
1500
1532
|
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
@@ -1505,7 +1537,9 @@ exports.RUMClient = RUMClient;
|
|
|
1505
1537
|
exports.RUMServiceException = RUMServiceException$1;
|
|
1506
1538
|
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
1507
1539
|
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
1540
|
+
exports.StateEnum = StateEnum;
|
|
1508
1541
|
exports.TagResourceCommand = TagResourceCommand;
|
|
1542
|
+
exports.Telemetry = Telemetry;
|
|
1509
1543
|
exports.ThrottlingException = ThrottlingException$1;
|
|
1510
1544
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1511
1545
|
exports.UpdateAppMonitorCommand = UpdateAppMonitorCommand;
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const Telemetry = {
|
|
2
|
+
ERRORS: "errors",
|
|
3
|
+
HTTP: "http",
|
|
4
|
+
PERFORMANCE: "performance",
|
|
5
|
+
};
|
|
6
|
+
export const CustomEventsStatus = {
|
|
7
|
+
DISABLED: "DISABLED",
|
|
8
|
+
ENABLED: "ENABLED",
|
|
9
|
+
};
|
|
10
|
+
export const DeobfuscationStatus = {
|
|
11
|
+
DISABLED: "DISABLED",
|
|
12
|
+
ENABLED: "ENABLED",
|
|
13
|
+
};
|
|
14
|
+
export const AppMonitorPlatform = {
|
|
15
|
+
ANDROID: "Android",
|
|
16
|
+
IOS: "iOS",
|
|
17
|
+
WEB: "Web",
|
|
18
|
+
};
|
|
19
|
+
export const StateEnum = {
|
|
20
|
+
ACTIVE: "ACTIVE",
|
|
21
|
+
CREATED: "CREATED",
|
|
22
|
+
DELETING: "DELETING",
|
|
23
|
+
};
|
|
24
|
+
export const MetricDestination = {
|
|
25
|
+
CloudWatch: "CloudWatch",
|
|
26
|
+
Evidently: "Evidently",
|
|
27
|
+
};
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
ERRORS: "errors",
|
|
3
|
-
HTTP: "http",
|
|
4
|
-
PERFORMANCE: "performance",
|
|
5
|
-
};
|
|
6
|
-
export const CustomEventsStatus = {
|
|
7
|
-
DISABLED: "DISABLED",
|
|
8
|
-
ENABLED: "ENABLED",
|
|
9
|
-
};
|
|
10
|
-
export const DeobfuscationStatus = {
|
|
11
|
-
DISABLED: "DISABLED",
|
|
12
|
-
ENABLED: "ENABLED",
|
|
13
|
-
};
|
|
14
|
-
export const AppMonitorPlatform = {
|
|
15
|
-
ANDROID: "Android",
|
|
16
|
-
IOS: "iOS",
|
|
17
|
-
WEB: "Web",
|
|
18
|
-
};
|
|
19
|
-
export const StateEnum = {
|
|
20
|
-
ACTIVE: "ACTIVE",
|
|
21
|
-
CREATED: "CREATED",
|
|
22
|
-
DELETING: "DELETING",
|
|
23
|
-
};
|
|
24
|
-
export const MetricDestination = {
|
|
25
|
-
CloudWatch: "CloudWatch",
|
|
26
|
-
Evidently: "Evidently",
|
|
27
|
-
};
|
|
1
|
+
export {};
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { RUMExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
+
export * from "./models/enums";
|
|
13
14
|
export * from "./models/errors";
|
|
14
15
|
export type * from "./models/models_0";
|
|
15
16
|
export { RUMServiceException } from "./models/RUMServiceException";
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const Telemetry: {
|
|
6
|
+
/**
|
|
7
|
+
* Includes JS error event plugin
|
|
8
|
+
*/
|
|
9
|
+
readonly ERRORS: "errors";
|
|
10
|
+
/**
|
|
11
|
+
* Includes X-Ray Xhr and X-Ray Fetch plugin
|
|
12
|
+
*/
|
|
13
|
+
readonly HTTP: "http";
|
|
14
|
+
/**
|
|
15
|
+
* Includes navigation, paint, resource and web vital event plugins
|
|
16
|
+
*/
|
|
17
|
+
readonly PERFORMANCE: "performance";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export type Telemetry = (typeof Telemetry)[keyof typeof Telemetry];
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
* @enum
|
|
26
|
+
*/
|
|
27
|
+
export declare const CustomEventsStatus: {
|
|
28
|
+
readonly DISABLED: "DISABLED";
|
|
29
|
+
readonly ENABLED: "ENABLED";
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export type CustomEventsStatus = (typeof CustomEventsStatus)[keyof typeof CustomEventsStatus];
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
* @enum
|
|
38
|
+
*/
|
|
39
|
+
export declare const DeobfuscationStatus: {
|
|
40
|
+
readonly DISABLED: "DISABLED";
|
|
41
|
+
readonly ENABLED: "ENABLED";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export type DeobfuscationStatus = (typeof DeobfuscationStatus)[keyof typeof DeobfuscationStatus];
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* @enum
|
|
50
|
+
*/
|
|
51
|
+
export declare const AppMonitorPlatform: {
|
|
52
|
+
readonly ANDROID: "Android";
|
|
53
|
+
readonly IOS: "iOS";
|
|
54
|
+
readonly WEB: "Web";
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export type AppMonitorPlatform = (typeof AppMonitorPlatform)[keyof typeof AppMonitorPlatform];
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
* @enum
|
|
63
|
+
*/
|
|
64
|
+
export declare const StateEnum: {
|
|
65
|
+
readonly ACTIVE: "ACTIVE";
|
|
66
|
+
readonly CREATED: "CREATED";
|
|
67
|
+
readonly DELETING: "DELETING";
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export type StateEnum = (typeof StateEnum)[keyof typeof StateEnum];
|
|
73
|
+
/**
|
|
74
|
+
* @public
|
|
75
|
+
* @enum
|
|
76
|
+
*/
|
|
77
|
+
export declare const MetricDestination: {
|
|
78
|
+
readonly CloudWatch: "CloudWatch";
|
|
79
|
+
readonly Evidently: "Evidently";
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export type MetricDestination = (typeof MetricDestination)[keyof typeof MetricDestination];
|
|
@@ -1,26 +1,5 @@
|
|
|
1
1
|
import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
|
|
2
|
-
|
|
3
|
-
* @public
|
|
4
|
-
* @enum
|
|
5
|
-
*/
|
|
6
|
-
export declare const Telemetry: {
|
|
7
|
-
/**
|
|
8
|
-
* Includes JS error event plugin
|
|
9
|
-
*/
|
|
10
|
-
readonly ERRORS: "errors";
|
|
11
|
-
/**
|
|
12
|
-
* Includes X-Ray Xhr and X-Ray Fetch plugin
|
|
13
|
-
*/
|
|
14
|
-
readonly HTTP: "http";
|
|
15
|
-
/**
|
|
16
|
-
* Includes navigation, paint, resource and web vital event plugins
|
|
17
|
-
*/
|
|
18
|
-
readonly PERFORMANCE: "performance";
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export type Telemetry = (typeof Telemetry)[keyof typeof Telemetry];
|
|
2
|
+
import { AppMonitorPlatform, CustomEventsStatus, DeobfuscationStatus, MetricDestination, StateEnum, Telemetry } from "./enums";
|
|
24
3
|
/**
|
|
25
4
|
* <p>This structure contains much of the configuration data for the app monitor.</p>
|
|
26
5
|
* @public
|
|
@@ -72,18 +51,6 @@ export interface AppMonitorConfiguration {
|
|
|
72
51
|
*/
|
|
73
52
|
EnableXRay?: boolean | undefined;
|
|
74
53
|
}
|
|
75
|
-
/**
|
|
76
|
-
* @public
|
|
77
|
-
* @enum
|
|
78
|
-
*/
|
|
79
|
-
export declare const CustomEventsStatus: {
|
|
80
|
-
readonly DISABLED: "DISABLED";
|
|
81
|
-
readonly ENABLED: "ENABLED";
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
|
-
export type CustomEventsStatus = (typeof CustomEventsStatus)[keyof typeof CustomEventsStatus];
|
|
87
54
|
/**
|
|
88
55
|
* <p>A structure that contains information about custom events for this app monitor.</p>
|
|
89
56
|
* @public
|
|
@@ -122,18 +89,6 @@ export interface DataStorage {
|
|
|
122
89
|
*/
|
|
123
90
|
CwLog?: CwLog | undefined;
|
|
124
91
|
}
|
|
125
|
-
/**
|
|
126
|
-
* @public
|
|
127
|
-
* @enum
|
|
128
|
-
*/
|
|
129
|
-
export declare const DeobfuscationStatus: {
|
|
130
|
-
readonly DISABLED: "DISABLED";
|
|
131
|
-
readonly ENABLED: "ENABLED";
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* @public
|
|
135
|
-
*/
|
|
136
|
-
export type DeobfuscationStatus = (typeof DeobfuscationStatus)[keyof typeof DeobfuscationStatus];
|
|
137
92
|
/**
|
|
138
93
|
* <p> A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps. </p>
|
|
139
94
|
* @public
|
|
@@ -161,32 +116,6 @@ export interface DeobfuscationConfiguration {
|
|
|
161
116
|
*/
|
|
162
117
|
JavaScriptSourceMaps?: JavaScriptSourceMaps | undefined;
|
|
163
118
|
}
|
|
164
|
-
/**
|
|
165
|
-
* @public
|
|
166
|
-
* @enum
|
|
167
|
-
*/
|
|
168
|
-
export declare const AppMonitorPlatform: {
|
|
169
|
-
readonly ANDROID: "Android";
|
|
170
|
-
readonly IOS: "iOS";
|
|
171
|
-
readonly WEB: "Web";
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* @public
|
|
175
|
-
*/
|
|
176
|
-
export type AppMonitorPlatform = (typeof AppMonitorPlatform)[keyof typeof AppMonitorPlatform];
|
|
177
|
-
/**
|
|
178
|
-
* @public
|
|
179
|
-
* @enum
|
|
180
|
-
*/
|
|
181
|
-
export declare const StateEnum: {
|
|
182
|
-
readonly ACTIVE: "ACTIVE";
|
|
183
|
-
readonly CREATED: "CREATED";
|
|
184
|
-
readonly DELETING: "DELETING";
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* @public
|
|
188
|
-
*/
|
|
189
|
-
export type StateEnum = (typeof StateEnum)[keyof typeof StateEnum];
|
|
190
119
|
/**
|
|
191
120
|
* <p>A RUM app monitor collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior.</p>
|
|
192
121
|
* @public
|
|
@@ -279,18 +208,6 @@ export interface AppMonitorDetails {
|
|
|
279
208
|
*/
|
|
280
209
|
version?: string | undefined;
|
|
281
210
|
}
|
|
282
|
-
/**
|
|
283
|
-
* @public
|
|
284
|
-
* @enum
|
|
285
|
-
*/
|
|
286
|
-
export declare const MetricDestination: {
|
|
287
|
-
readonly CloudWatch: "CloudWatch";
|
|
288
|
-
readonly Evidently: "Evidently";
|
|
289
|
-
};
|
|
290
|
-
/**
|
|
291
|
-
* @public
|
|
292
|
-
*/
|
|
293
|
-
export type MetricDestination = (typeof MetricDestination)[keyof typeof MetricDestination];
|
|
294
211
|
/**
|
|
295
212
|
* <p>Use this structure to define one extended metric or custom metric that RUM will send to CloudWatch or CloudWatch Evidently. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-and-extended-metrics.html"> Custom metrics and extended metrics that you can send to CloudWatch and CloudWatch Evidently</a>.</p> <p>This structure is validated differently for extended metrics and custom metrics. For extended metrics that are sent to the <code>AWS/RUM</code> namespace, the following validations apply:</p> <ul> <li> <p>The <code>Namespace</code> parameter must be omitted or set to <code>AWS/RUM</code>.</p> </li> <li> <p>Only certain combinations of values for <code>Name</code>, <code>ValueKey</code>, and <code>EventPattern</code> are valid. In addition to what is displayed in the following list, the <code>EventPattern</code> can also include information used by the <code>DimensionKeys</code> field.</p> <ul> <li> <p>If <code>Name</code> is <code>PerformanceNavigationDuration</code>, then <code>ValueKey</code>must be <code>event_details.duration</code> and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.performance_navigation_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>PerformanceResourceDuration</code>, then <code>ValueKey</code>must be <code>event_details.duration</code> and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.performance_resource_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>NavigationSatisfiedTransaction</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{ "event_type": ["com.amazon.rum.performance_navigation_event"], "event_details": \{ "duration": [\{ "numeric": [">",2000] \}] \} \}</code> </p> </li> <li> <p>If <code>Name</code> is <code>NavigationToleratedTransaction</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{ "event_type": ["com.amazon.rum.performance_navigation_event"], "event_details": \{ "duration": [\{ "numeric": [">=",2000,"<"8000] \}] \} \}</code> </p> </li> <li> <p>If <code>Name</code> is <code>NavigationFrustratedTransaction</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{ "event_type": ["com.amazon.rum.performance_navigation_event"], "event_details": \{ "duration": [\{ "numeric": [">=",8000] \}] \} \}</code> </p> </li> <li> <p>If <code>Name</code> is <code>WebVitalsCumulativeLayoutShift</code>, then <code>ValueKey</code>must be <code>event_details.value</code> and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.cumulative_layout_shift_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>WebVitalsFirstInputDelay</code>, then <code>ValueKey</code>must be <code>event_details.value</code> and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.first_input_delay_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>WebVitalsLargestContentfulPaint</code>, then <code>ValueKey</code>must be <code>event_details.value</code> and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.largest_contentful_paint_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>JsErrorCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.js_error_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>HttpErrorCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.http_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>SessionCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.session_start_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>PageViewCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{"event_type":["com.amazon.rum.page_view_event"]\}</code> </p> </li> <li> <p>If <code>Name</code> is <code>Http4xxCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{"event_type": ["com.amazon.rum.http_event"],"event_details":\{"response":\{"status":[\{"numeric":[">=",400,"<",500]\}]\}\}\} \}</code> </p> </li> <li> <p>If <code>Name</code> is <code>Http5xxCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>\{"event_type": ["com.amazon.rum.http_event"],"event_details":\{"response":\{"status":[\{"numeric":[">=",500,"<=",599]\}]\}\}\} \}</code> </p> </li> </ul> </li> </ul> <p>For custom metrics, the following validation rules apply:</p> <ul> <li> <p>The namespace can't be omitted and can't be <code>AWS/RUM</code>. You can use the <code>AWS/RUM</code> namespace only for extended metrics.</p> </li> <li> <p>All dimensions listed in the <code>DimensionKeys</code> field must be present in the value of <code>EventPattern</code>.</p> </li> <li> <p>The values that you specify for <code>ValueKey</code>, <code>EventPattern</code>, and <code>DimensionKeys</code> must be fields in RUM events, so all first-level keys in these fields must be one of the keys in the list later in this section.</p> </li> <li> <p>If you set a value for <code>EventPattern</code>, it must be a JSON object.</p> </li> <li> <p>For every non-empty <code>event_details</code>, there must be a non-empty <code>event_type</code>.</p> </li> <li> <p>If <code>EventPattern</code> contains an <code>event_details</code> field, it must also contain an <code>event_type</code>. For every built-in <code>event_type</code> that you use, you must use a value for <code>event_details</code> that corresponds to that <code>event_type</code>. For information about event details that correspond to event types, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-datacollected.html#CloudWatch-RUM-datacollected-eventDetails"> RUM event details</a>.</p> </li> <li> <p>In <code>EventPattern</code>, any JSON array must contain only one value.</p> </li> </ul> <p>Valid key values for first-level keys in the <code>ValueKey</code>, <code>EventPattern</code>, and <code>DimensionKeys</code> fields:</p> <ul> <li> <p> <code>account_id</code> </p> </li> <li> <p> <code>application_Id</code> </p> </li> <li> <p> <code>application_version</code> </p> </li> <li> <p> <code>application_name</code> </p> </li> <li> <p> <code>batch_id</code> </p> </li> <li> <p> <code>event_details</code> </p> </li> <li> <p> <code>event_id</code> </p> </li> <li> <p> <code>event_interaction</code> </p> </li> <li> <p> <code>event_timestamp</code> </p> </li> <li> <p> <code>event_type</code> </p> </li> <li> <p> <code>event_version</code> </p> </li> <li> <p> <code>log_stream</code> </p> </li> <li> <p> <code>metadata</code> </p> </li> <li> <p> <code>sessionId</code> </p> </li> <li> <p> <code>user_details</code> </p> </li> <li> <p> <code>userId</code> </p> </li> </ul>
|
|
296
213
|
* @public
|
|
@@ -5,6 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { RUMExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
+
export * from "./models/enums";
|
|
8
9
|
export * from "./models/errors";
|
|
9
10
|
export * from "./models/models_0";
|
|
10
11
|
export { RUMServiceException } from "./models/RUMServiceException";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const Telemetry: {
|
|
2
|
+
readonly ERRORS: "errors";
|
|
3
|
+
readonly HTTP: "http";
|
|
4
|
+
readonly PERFORMANCE: "performance";
|
|
5
|
+
};
|
|
6
|
+
export type Telemetry = (typeof Telemetry)[keyof typeof Telemetry];
|
|
7
|
+
export declare const CustomEventsStatus: {
|
|
8
|
+
readonly DISABLED: "DISABLED";
|
|
9
|
+
readonly ENABLED: "ENABLED";
|
|
10
|
+
};
|
|
11
|
+
export type CustomEventsStatus =
|
|
12
|
+
(typeof CustomEventsStatus)[keyof typeof CustomEventsStatus];
|
|
13
|
+
export declare const DeobfuscationStatus: {
|
|
14
|
+
readonly DISABLED: "DISABLED";
|
|
15
|
+
readonly ENABLED: "ENABLED";
|
|
16
|
+
};
|
|
17
|
+
export type DeobfuscationStatus =
|
|
18
|
+
(typeof DeobfuscationStatus)[keyof typeof DeobfuscationStatus];
|
|
19
|
+
export declare const AppMonitorPlatform: {
|
|
20
|
+
readonly ANDROID: "Android";
|
|
21
|
+
readonly IOS: "iOS";
|
|
22
|
+
readonly WEB: "Web";
|
|
23
|
+
};
|
|
24
|
+
export type AppMonitorPlatform =
|
|
25
|
+
(typeof AppMonitorPlatform)[keyof typeof AppMonitorPlatform];
|
|
26
|
+
export declare const StateEnum: {
|
|
27
|
+
readonly ACTIVE: "ACTIVE";
|
|
28
|
+
readonly CREATED: "CREATED";
|
|
29
|
+
readonly DELETING: "DELETING";
|
|
30
|
+
};
|
|
31
|
+
export type StateEnum = (typeof StateEnum)[keyof typeof StateEnum];
|
|
32
|
+
export declare const MetricDestination: {
|
|
33
|
+
readonly CloudWatch: "CloudWatch";
|
|
34
|
+
readonly Evidently: "Evidently";
|
|
35
|
+
};
|
|
36
|
+
export type MetricDestination =
|
|
37
|
+
(typeof MetricDestination)[keyof typeof MetricDestination];
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import {
|
|
3
|
+
AppMonitorPlatform,
|
|
4
|
+
CustomEventsStatus,
|
|
5
|
+
DeobfuscationStatus,
|
|
6
|
+
MetricDestination,
|
|
7
|
+
StateEnum,
|
|
8
|
+
Telemetry,
|
|
9
|
+
} from "./enums";
|
|
8
10
|
export interface AppMonitorConfiguration {
|
|
9
11
|
IdentityPoolId?: string | undefined;
|
|
10
12
|
ExcludedPages?: string[] | undefined;
|
|
@@ -16,12 +18,6 @@ export interface AppMonitorConfiguration {
|
|
|
16
18
|
Telemetries?: Telemetry[] | undefined;
|
|
17
19
|
EnableXRay?: boolean | undefined;
|
|
18
20
|
}
|
|
19
|
-
export declare const CustomEventsStatus: {
|
|
20
|
-
readonly DISABLED: "DISABLED";
|
|
21
|
-
readonly ENABLED: "ENABLED";
|
|
22
|
-
};
|
|
23
|
-
export type CustomEventsStatus =
|
|
24
|
-
(typeof CustomEventsStatus)[keyof typeof CustomEventsStatus];
|
|
25
21
|
export interface CustomEvents {
|
|
26
22
|
Status?: CustomEventsStatus | undefined;
|
|
27
23
|
}
|
|
@@ -32,12 +28,6 @@ export interface CwLog {
|
|
|
32
28
|
export interface DataStorage {
|
|
33
29
|
CwLog?: CwLog | undefined;
|
|
34
30
|
}
|
|
35
|
-
export declare const DeobfuscationStatus: {
|
|
36
|
-
readonly DISABLED: "DISABLED";
|
|
37
|
-
readonly ENABLED: "ENABLED";
|
|
38
|
-
};
|
|
39
|
-
export type DeobfuscationStatus =
|
|
40
|
-
(typeof DeobfuscationStatus)[keyof typeof DeobfuscationStatus];
|
|
41
31
|
export interface JavaScriptSourceMaps {
|
|
42
32
|
Status: DeobfuscationStatus | undefined;
|
|
43
33
|
S3Uri?: string | undefined;
|
|
@@ -45,19 +35,6 @@ export interface JavaScriptSourceMaps {
|
|
|
45
35
|
export interface DeobfuscationConfiguration {
|
|
46
36
|
JavaScriptSourceMaps?: JavaScriptSourceMaps | undefined;
|
|
47
37
|
}
|
|
48
|
-
export declare const AppMonitorPlatform: {
|
|
49
|
-
readonly ANDROID: "Android";
|
|
50
|
-
readonly IOS: "iOS";
|
|
51
|
-
readonly WEB: "Web";
|
|
52
|
-
};
|
|
53
|
-
export type AppMonitorPlatform =
|
|
54
|
-
(typeof AppMonitorPlatform)[keyof typeof AppMonitorPlatform];
|
|
55
|
-
export declare const StateEnum: {
|
|
56
|
-
readonly ACTIVE: "ACTIVE";
|
|
57
|
-
readonly CREATED: "CREATED";
|
|
58
|
-
readonly DELETING: "DELETING";
|
|
59
|
-
};
|
|
60
|
-
export type StateEnum = (typeof StateEnum)[keyof typeof StateEnum];
|
|
61
38
|
export interface AppMonitor {
|
|
62
39
|
Name?: string | undefined;
|
|
63
40
|
Domain?: string | undefined;
|
|
@@ -78,12 +55,6 @@ export interface AppMonitorDetails {
|
|
|
78
55
|
id?: string | undefined;
|
|
79
56
|
version?: string | undefined;
|
|
80
57
|
}
|
|
81
|
-
export declare const MetricDestination: {
|
|
82
|
-
readonly CloudWatch: "CloudWatch";
|
|
83
|
-
readonly Evidently: "Evidently";
|
|
84
|
-
};
|
|
85
|
-
export type MetricDestination =
|
|
86
|
-
(typeof MetricDestination)[keyof typeof MetricDestination];
|
|
87
58
|
export interface MetricDefinitionRequest {
|
|
88
59
|
Name: string | undefined;
|
|
89
60
|
ValueKey?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rum",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rum Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.939.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-rum",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.936.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.939.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.936.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.936.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
30
|
+
"@aws-sdk/types": "3.936.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.936.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.936.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
35
|
"@smithy/core": "^3.18.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.6",
|