@aws-sdk/client-rum 3.315.0 → 3.319.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/RUM.js +21 -238
- package/dist-es/RUM.js +21 -238
- package/dist-types/RUM.d.ts +32 -132
- package/dist-types/ts3.4/RUM.d.ts +2 -1
- package/package.json +8 -8
package/dist-cjs/RUM.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RUM = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const BatchCreateRumMetricDefinitionsCommand_1 = require("./commands/BatchCreateRumMetricDefinitionsCommand");
|
|
5
6
|
const BatchDeleteRumMetricDefinitionsCommand_1 = require("./commands/BatchDeleteRumMetricDefinitionsCommand");
|
|
6
7
|
const BatchGetRumMetricDefinitionsCommand_1 = require("./commands/BatchGetRumMetricDefinitionsCommand");
|
|
@@ -19,244 +20,26 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
19
20
|
const UpdateAppMonitorCommand_1 = require("./commands/UpdateAppMonitorCommand");
|
|
20
21
|
const UpdateRumMetricDefinitionCommand_1 = require("./commands/UpdateRumMetricDefinitionCommand");
|
|
21
22
|
const RUMClient_1 = require("./RUMClient");
|
|
23
|
+
const commands = {
|
|
24
|
+
BatchCreateRumMetricDefinitionsCommand: BatchCreateRumMetricDefinitionsCommand_1.BatchCreateRumMetricDefinitionsCommand,
|
|
25
|
+
BatchDeleteRumMetricDefinitionsCommand: BatchDeleteRumMetricDefinitionsCommand_1.BatchDeleteRumMetricDefinitionsCommand,
|
|
26
|
+
BatchGetRumMetricDefinitionsCommand: BatchGetRumMetricDefinitionsCommand_1.BatchGetRumMetricDefinitionsCommand,
|
|
27
|
+
CreateAppMonitorCommand: CreateAppMonitorCommand_1.CreateAppMonitorCommand,
|
|
28
|
+
DeleteAppMonitorCommand: DeleteAppMonitorCommand_1.DeleteAppMonitorCommand,
|
|
29
|
+
DeleteRumMetricsDestinationCommand: DeleteRumMetricsDestinationCommand_1.DeleteRumMetricsDestinationCommand,
|
|
30
|
+
GetAppMonitorCommand: GetAppMonitorCommand_1.GetAppMonitorCommand,
|
|
31
|
+
GetAppMonitorDataCommand: GetAppMonitorDataCommand_1.GetAppMonitorDataCommand,
|
|
32
|
+
ListAppMonitorsCommand: ListAppMonitorsCommand_1.ListAppMonitorsCommand,
|
|
33
|
+
ListRumMetricsDestinationsCommand: ListRumMetricsDestinationsCommand_1.ListRumMetricsDestinationsCommand,
|
|
34
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
35
|
+
PutRumEventsCommand: PutRumEventsCommand_1.PutRumEventsCommand,
|
|
36
|
+
PutRumMetricsDestinationCommand: PutRumMetricsDestinationCommand_1.PutRumMetricsDestinationCommand,
|
|
37
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
38
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
39
|
+
UpdateAppMonitorCommand: UpdateAppMonitorCommand_1.UpdateAppMonitorCommand,
|
|
40
|
+
UpdateRumMetricDefinitionCommand: UpdateRumMetricDefinitionCommand_1.UpdateRumMetricDefinitionCommand,
|
|
41
|
+
};
|
|
22
42
|
class RUM extends RUMClient_1.RUMClient {
|
|
23
|
-
batchCreateRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
24
|
-
const command = new BatchCreateRumMetricDefinitionsCommand_1.BatchCreateRumMetricDefinitionsCommand(args);
|
|
25
|
-
if (typeof optionsOrCb === "function") {
|
|
26
|
-
this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof cb === "function") {
|
|
29
|
-
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
batchDeleteRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new BatchDeleteRumMetricDefinitionsCommand_1.BatchDeleteRumMetricDefinitionsCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
batchGetRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
52
|
-
const command = new BatchGetRumMetricDefinitionsCommand_1.BatchGetRumMetricDefinitionsCommand(args);
|
|
53
|
-
if (typeof optionsOrCb === "function") {
|
|
54
|
-
this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
else if (typeof cb === "function") {
|
|
57
|
-
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
createAppMonitor(args, optionsOrCb, cb) {
|
|
66
|
-
const command = new CreateAppMonitorCommand_1.CreateAppMonitorCommand(args);
|
|
67
|
-
if (typeof optionsOrCb === "function") {
|
|
68
|
-
this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
else if (typeof cb === "function") {
|
|
71
|
-
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
deleteAppMonitor(args, optionsOrCb, cb) {
|
|
80
|
-
const command = new DeleteAppMonitorCommand_1.DeleteAppMonitorCommand(args);
|
|
81
|
-
if (typeof optionsOrCb === "function") {
|
|
82
|
-
this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
else if (typeof cb === "function") {
|
|
85
|
-
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
deleteRumMetricsDestination(args, optionsOrCb, cb) {
|
|
94
|
-
const command = new DeleteRumMetricsDestinationCommand_1.DeleteRumMetricsDestinationCommand(args);
|
|
95
|
-
if (typeof optionsOrCb === "function") {
|
|
96
|
-
this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
else if (typeof cb === "function") {
|
|
99
|
-
if (typeof optionsOrCb !== "object")
|
|
100
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
return this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
getAppMonitor(args, optionsOrCb, cb) {
|
|
108
|
-
const command = new GetAppMonitorCommand_1.GetAppMonitorCommand(args);
|
|
109
|
-
if (typeof optionsOrCb === "function") {
|
|
110
|
-
this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
else if (typeof cb === "function") {
|
|
113
|
-
if (typeof optionsOrCb !== "object")
|
|
114
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
115
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
return this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
getAppMonitorData(args, optionsOrCb, cb) {
|
|
122
|
-
const command = new GetAppMonitorDataCommand_1.GetAppMonitorDataCommand(args);
|
|
123
|
-
if (typeof optionsOrCb === "function") {
|
|
124
|
-
this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
else if (typeof cb === "function") {
|
|
127
|
-
if (typeof optionsOrCb !== "object")
|
|
128
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
return this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
listAppMonitors(args, optionsOrCb, cb) {
|
|
136
|
-
const command = new ListAppMonitorsCommand_1.ListAppMonitorsCommand(args);
|
|
137
|
-
if (typeof optionsOrCb === "function") {
|
|
138
|
-
this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
else if (typeof cb === "function") {
|
|
141
|
-
if (typeof optionsOrCb !== "object")
|
|
142
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
return this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
listRumMetricsDestinations(args, optionsOrCb, cb) {
|
|
150
|
-
const command = new ListRumMetricsDestinationsCommand_1.ListRumMetricsDestinationsCommand(args);
|
|
151
|
-
if (typeof optionsOrCb === "function") {
|
|
152
|
-
this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
else if (typeof cb === "function") {
|
|
155
|
-
if (typeof optionsOrCb !== "object")
|
|
156
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
return this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
164
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
165
|
-
if (typeof optionsOrCb === "function") {
|
|
166
|
-
this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
else if (typeof cb === "function") {
|
|
169
|
-
if (typeof optionsOrCb !== "object")
|
|
170
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
return this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
putRumEvents(args, optionsOrCb, cb) {
|
|
178
|
-
const command = new PutRumEventsCommand_1.PutRumEventsCommand(args);
|
|
179
|
-
if (typeof optionsOrCb === "function") {
|
|
180
|
-
this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
else if (typeof cb === "function") {
|
|
183
|
-
if (typeof optionsOrCb !== "object")
|
|
184
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
185
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
return this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
putRumMetricsDestination(args, optionsOrCb, cb) {
|
|
192
|
-
const command = new PutRumMetricsDestinationCommand_1.PutRumMetricsDestinationCommand(args);
|
|
193
|
-
if (typeof optionsOrCb === "function") {
|
|
194
|
-
this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
else if (typeof cb === "function") {
|
|
197
|
-
if (typeof optionsOrCb !== "object")
|
|
198
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
return this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
tagResource(args, optionsOrCb, cb) {
|
|
206
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
207
|
-
if (typeof optionsOrCb === "function") {
|
|
208
|
-
this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
else if (typeof cb === "function") {
|
|
211
|
-
if (typeof optionsOrCb !== "object")
|
|
212
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
213
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
return this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
untagResource(args, optionsOrCb, cb) {
|
|
220
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
221
|
-
if (typeof optionsOrCb === "function") {
|
|
222
|
-
this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
else if (typeof cb === "function") {
|
|
225
|
-
if (typeof optionsOrCb !== "object")
|
|
226
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
227
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
return this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
updateAppMonitor(args, optionsOrCb, cb) {
|
|
234
|
-
const command = new UpdateAppMonitorCommand_1.UpdateAppMonitorCommand(args);
|
|
235
|
-
if (typeof optionsOrCb === "function") {
|
|
236
|
-
this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
else if (typeof cb === "function") {
|
|
239
|
-
if (typeof optionsOrCb !== "object")
|
|
240
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
241
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
return this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
updateRumMetricDefinition(args, optionsOrCb, cb) {
|
|
248
|
-
const command = new UpdateRumMetricDefinitionCommand_1.UpdateRumMetricDefinitionCommand(args);
|
|
249
|
-
if (typeof optionsOrCb === "function") {
|
|
250
|
-
this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
else if (typeof cb === "function") {
|
|
253
|
-
if (typeof optionsOrCb !== "object")
|
|
254
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
return this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
43
|
}
|
|
262
44
|
exports.RUM = RUM;
|
|
45
|
+
(0, smithy_client_1.createAggregatedClient)(commands, RUM);
|
package/dist-es/RUM.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { BatchCreateRumMetricDefinitionsCommand, } from "./commands/BatchCreateRumMetricDefinitionsCommand";
|
|
2
3
|
import { BatchDeleteRumMetricDefinitionsCommand, } from "./commands/BatchDeleteRumMetricDefinitionsCommand";
|
|
3
4
|
import { BatchGetRumMetricDefinitionsCommand, } from "./commands/BatchGetRumMetricDefinitionsCommand";
|
|
@@ -16,243 +17,25 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
16
17
|
import { UpdateAppMonitorCommand, } from "./commands/UpdateAppMonitorCommand";
|
|
17
18
|
import { UpdateRumMetricDefinitionCommand, } from "./commands/UpdateRumMetricDefinitionCommand";
|
|
18
19
|
import { RUMClient } from "./RUMClient";
|
|
20
|
+
const commands = {
|
|
21
|
+
BatchCreateRumMetricDefinitionsCommand,
|
|
22
|
+
BatchDeleteRumMetricDefinitionsCommand,
|
|
23
|
+
BatchGetRumMetricDefinitionsCommand,
|
|
24
|
+
CreateAppMonitorCommand,
|
|
25
|
+
DeleteAppMonitorCommand,
|
|
26
|
+
DeleteRumMetricsDestinationCommand,
|
|
27
|
+
GetAppMonitorCommand,
|
|
28
|
+
GetAppMonitorDataCommand,
|
|
29
|
+
ListAppMonitorsCommand,
|
|
30
|
+
ListRumMetricsDestinationsCommand,
|
|
31
|
+
ListTagsForResourceCommand,
|
|
32
|
+
PutRumEventsCommand,
|
|
33
|
+
PutRumMetricsDestinationCommand,
|
|
34
|
+
TagResourceCommand,
|
|
35
|
+
UntagResourceCommand,
|
|
36
|
+
UpdateAppMonitorCommand,
|
|
37
|
+
UpdateRumMetricDefinitionCommand,
|
|
38
|
+
};
|
|
19
39
|
export class RUM extends RUMClient {
|
|
20
|
-
batchCreateRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
21
|
-
const command = new BatchCreateRumMetricDefinitionsCommand(args);
|
|
22
|
-
if (typeof optionsOrCb === "function") {
|
|
23
|
-
this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
else if (typeof cb === "function") {
|
|
26
|
-
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
batchDeleteRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new BatchDeleteRumMetricDefinitionsCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
batchGetRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
49
|
-
const command = new BatchGetRumMetricDefinitionsCommand(args);
|
|
50
|
-
if (typeof optionsOrCb === "function") {
|
|
51
|
-
this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
else if (typeof cb === "function") {
|
|
54
|
-
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
createAppMonitor(args, optionsOrCb, cb) {
|
|
63
|
-
const command = new CreateAppMonitorCommand(args);
|
|
64
|
-
if (typeof optionsOrCb === "function") {
|
|
65
|
-
this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
else if (typeof cb === "function") {
|
|
68
|
-
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
deleteAppMonitor(args, optionsOrCb, cb) {
|
|
77
|
-
const command = new DeleteAppMonitorCommand(args);
|
|
78
|
-
if (typeof optionsOrCb === "function") {
|
|
79
|
-
this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof cb === "function") {
|
|
82
|
-
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
deleteRumMetricsDestination(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new DeleteRumMetricsDestinationCommand(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
getAppMonitor(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new GetAppMonitorCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
getAppMonitorData(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new GetAppMonitorDataCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
listAppMonitors(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new ListAppMonitorsCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
listRumMetricsDestinations(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new ListRumMetricsDestinationsCommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new ListTagsForResourceCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
putRumEvents(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new PutRumEventsCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
putRumMetricsDestination(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new PutRumMetricsDestinationCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
tagResource(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new TagResourceCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
untagResource(args, optionsOrCb, cb) {
|
|
217
|
-
const command = new UntagResourceCommand(args);
|
|
218
|
-
if (typeof optionsOrCb === "function") {
|
|
219
|
-
this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
else if (typeof cb === "function") {
|
|
222
|
-
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
updateAppMonitor(args, optionsOrCb, cb) {
|
|
231
|
-
const command = new UpdateAppMonitorCommand(args);
|
|
232
|
-
if (typeof optionsOrCb === "function") {
|
|
233
|
-
this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
else if (typeof cb === "function") {
|
|
236
|
-
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
updateRumMetricDefinition(args, optionsOrCb, cb) {
|
|
245
|
-
const command = new UpdateRumMetricDefinitionCommand(args);
|
|
246
|
-
if (typeof optionsOrCb === "function") {
|
|
247
|
-
this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
else if (typeof cb === "function") {
|
|
250
|
-
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
40
|
}
|
|
41
|
+
createAggregatedClient(commands, RUM);
|
package/dist-types/RUM.d.ts
CHANGED
|
@@ -17,220 +17,120 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
17
17
|
import { UpdateAppMonitorCommandInput, UpdateAppMonitorCommandOutput } from "./commands/UpdateAppMonitorCommand";
|
|
18
18
|
import { UpdateRumMetricDefinitionCommandInput, UpdateRumMetricDefinitionCommandOutput } from "./commands/UpdateRumMetricDefinitionCommand";
|
|
19
19
|
import { RUMClient } from "./RUMClient";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* your web application performance from actual user sessions in real time. The data collected includes page load
|
|
24
|
-
* times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and
|
|
25
|
-
* also see breakdowns by the browsers and devices that your customers use.</p>
|
|
26
|
-
* <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch
|
|
27
|
-
* RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error
|
|
28
|
-
* messages, stack traces, and user sessions. You can also use RUM to
|
|
29
|
-
* understand the range of end-user impact including the number of users, geolocations, and browsers used.</p>
|
|
30
|
-
*/
|
|
31
|
-
export declare class RUM extends RUMClient {
|
|
32
|
-
/**
|
|
33
|
-
* @public
|
|
34
|
-
* <p>Specifies the extended metrics and custom metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid
|
|
35
|
-
* destinations include CloudWatch and Evidently.</p>
|
|
36
|
-
* <p>By default, RUM app monitors send some metrics to CloudWatch. These default metrics
|
|
37
|
-
* are listed in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-metrics.html">CloudWatch metrics that you can collect
|
|
38
|
-
* with CloudWatch RUM</a>.</p>
|
|
39
|
-
* <p>In addition to these default metrics, you can choose to send extended metrics or custom metrics or both.</p>
|
|
40
|
-
* <ul>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>Extended metrics enable you to send metrics with additional dimensions not included
|
|
43
|
-
* in the default metrics. You can also send extended metrics to Evidently as well as CloudWatch.
|
|
44
|
-
* The valid dimension names for the additional dimensions for extended metrics are
|
|
45
|
-
* <code>BrowserName</code>, <code>CountryCode</code>, <code>DeviceType</code>,
|
|
46
|
-
* <code>FileType</code>, <code>OSName</code>, and <code>PageId</code>. For more information, see
|
|
47
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-vended-metrics.html">
|
|
48
|
-
* Extended metrics that you can send to CloudWatch and CloudWatch Evidently</a>.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>Custom metrics are metrics that you define. You can send custom metrics to CloudWatch or
|
|
52
|
-
* to CloudWatch Evidently or to both. With custom metrics,
|
|
53
|
-
* you can use any metric name and namespace, and to derive the metrics you can use any custom events, built-in events,
|
|
54
|
-
* custom attributes, or default attributes. </p>
|
|
55
|
-
* <p>You can't send custom metrics to the <code>AWS/RUM</code> namespace. You must send custom metrics to a
|
|
56
|
-
* custom namespace that you define. The namespace that you use can't start with <code>AWS/</code>.
|
|
57
|
-
* CloudWatch RUM prepends <code>RUM/CustomMetrics/</code> to the custom namespace that you define,
|
|
58
|
-
* so the final namespace for your metrics in CloudWatch is
|
|
59
|
-
* <code>RUM/CustomMetrics/<i>your-custom-namespace</i>
|
|
60
|
-
* </code>.</p>
|
|
61
|
-
* </li>
|
|
62
|
-
* </ul>
|
|
63
|
-
* <p>The maximum number of metric definitions that you can specify in one
|
|
64
|
-
* <code>BatchCreateRumMetricDefinitions</code> operation is 200.</p>
|
|
65
|
-
* <p>The maximum number of metric definitions that one destination can contain is 2000.</p>
|
|
66
|
-
* <p>Extended metrics sent to CloudWatch and RUM custom metrics are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension
|
|
67
|
-
* value counts as a custom metric. For more information, see
|
|
68
|
-
* <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>.</p>
|
|
69
|
-
* <p>You must have
|
|
70
|
-
* already created a destination for the metrics before you send them. For more information, see
|
|
71
|
-
* <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html">PutRumMetricsDestination</a>.</p>
|
|
72
|
-
* <p>If some metric definitions specified in a <code>BatchCreateRumMetricDefinitions</code> operations are not valid,
|
|
73
|
-
* those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.</p>
|
|
20
|
+
export interface RUM {
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link BatchCreateRumMetricDefinitionsCommand}
|
|
74
23
|
*/
|
|
75
24
|
batchCreateRumMetricDefinitions(args: BatchCreateRumMetricDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<BatchCreateRumMetricDefinitionsCommandOutput>;
|
|
76
25
|
batchCreateRumMetricDefinitions(args: BatchCreateRumMetricDefinitionsCommandInput, cb: (err: any, data?: BatchCreateRumMetricDefinitionsCommandOutput) => void): void;
|
|
77
26
|
batchCreateRumMetricDefinitions(args: BatchCreateRumMetricDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchCreateRumMetricDefinitionsCommandOutput) => void): void;
|
|
78
27
|
/**
|
|
79
|
-
* @
|
|
80
|
-
* <p>Removes the specified metrics from being sent to an extended metrics destination.</p>
|
|
81
|
-
* <p>If some metric definition IDs specified in a <code>BatchDeleteRumMetricDefinitions</code> operations are not valid,
|
|
82
|
-
* those metric definitions fail and return errors, but all valid metric definition IDs in the same operation are still
|
|
83
|
-
* deleted.</p>
|
|
84
|
-
* <p>The maximum number of metric definitions that you can specify in one
|
|
85
|
-
* <code>BatchDeleteRumMetricDefinitions</code> operation is 200.</p>
|
|
28
|
+
* @see {@link BatchDeleteRumMetricDefinitionsCommand}
|
|
86
29
|
*/
|
|
87
30
|
batchDeleteRumMetricDefinitions(args: BatchDeleteRumMetricDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteRumMetricDefinitionsCommandOutput>;
|
|
88
31
|
batchDeleteRumMetricDefinitions(args: BatchDeleteRumMetricDefinitionsCommandInput, cb: (err: any, data?: BatchDeleteRumMetricDefinitionsCommandOutput) => void): void;
|
|
89
32
|
batchDeleteRumMetricDefinitions(args: BatchDeleteRumMetricDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteRumMetricDefinitionsCommandOutput) => void): void;
|
|
90
33
|
/**
|
|
91
|
-
* @
|
|
92
|
-
* <p>Retrieves the list of metrics and dimensions that a RUM app monitor is sending to a single destination.</p>
|
|
34
|
+
* @see {@link BatchGetRumMetricDefinitionsCommand}
|
|
93
35
|
*/
|
|
94
36
|
batchGetRumMetricDefinitions(args: BatchGetRumMetricDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetRumMetricDefinitionsCommandOutput>;
|
|
95
37
|
batchGetRumMetricDefinitions(args: BatchGetRumMetricDefinitionsCommandInput, cb: (err: any, data?: BatchGetRumMetricDefinitionsCommandOutput) => void): void;
|
|
96
38
|
batchGetRumMetricDefinitions(args: BatchGetRumMetricDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetRumMetricDefinitionsCommandOutput) => void): void;
|
|
97
39
|
/**
|
|
98
|
-
* @
|
|
99
|
-
* <p>Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that
|
|
100
|
-
* data to RUM. The data includes performance and reliability information such as page load time, client-side errors,
|
|
101
|
-
* and user behavior.</p>
|
|
102
|
-
* <p>You use this operation only to create a new app monitor. To update an existing app monitor, use <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_UpdateAppMonitor.html">UpdateAppMonitor</a> instead.</p>
|
|
103
|
-
* <p>After you create an app monitor, sign in to the CloudWatch RUM console to get
|
|
104
|
-
* the JavaScript code snippet to add to your web application. For more information, see
|
|
105
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-find-code-snippet.html">How do I find a code snippet
|
|
106
|
-
* that I've already generated?</a>
|
|
107
|
-
* </p>
|
|
40
|
+
* @see {@link CreateAppMonitorCommand}
|
|
108
41
|
*/
|
|
109
42
|
createAppMonitor(args: CreateAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<CreateAppMonitorCommandOutput>;
|
|
110
43
|
createAppMonitor(args: CreateAppMonitorCommandInput, cb: (err: any, data?: CreateAppMonitorCommandOutput) => void): void;
|
|
111
44
|
createAppMonitor(args: CreateAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAppMonitorCommandOutput) => void): void;
|
|
112
45
|
/**
|
|
113
|
-
* @
|
|
114
|
-
* <p>Deletes an existing app monitor. This immediately stops the collection of data.</p>
|
|
46
|
+
* @see {@link DeleteAppMonitorCommand}
|
|
115
47
|
*/
|
|
116
48
|
deleteAppMonitor(args: DeleteAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAppMonitorCommandOutput>;
|
|
117
49
|
deleteAppMonitor(args: DeleteAppMonitorCommandInput, cb: (err: any, data?: DeleteAppMonitorCommandOutput) => void): void;
|
|
118
50
|
deleteAppMonitor(args: DeleteAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAppMonitorCommandOutput) => void): void;
|
|
119
51
|
/**
|
|
120
|
-
* @
|
|
121
|
-
* <p>Deletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops
|
|
122
|
-
* sending extended metrics to that destination.</p>
|
|
52
|
+
* @see {@link DeleteRumMetricsDestinationCommand}
|
|
123
53
|
*/
|
|
124
54
|
deleteRumMetricsDestination(args: DeleteRumMetricsDestinationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRumMetricsDestinationCommandOutput>;
|
|
125
55
|
deleteRumMetricsDestination(args: DeleteRumMetricsDestinationCommandInput, cb: (err: any, data?: DeleteRumMetricsDestinationCommandOutput) => void): void;
|
|
126
56
|
deleteRumMetricsDestination(args: DeleteRumMetricsDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRumMetricsDestinationCommandOutput) => void): void;
|
|
127
57
|
/**
|
|
128
|
-
* @
|
|
129
|
-
* <p>Retrieves the complete configuration information for one app monitor.</p>
|
|
58
|
+
* @see {@link GetAppMonitorCommand}
|
|
130
59
|
*/
|
|
131
60
|
getAppMonitor(args: GetAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<GetAppMonitorCommandOutput>;
|
|
132
61
|
getAppMonitor(args: GetAppMonitorCommandInput, cb: (err: any, data?: GetAppMonitorCommandOutput) => void): void;
|
|
133
62
|
getAppMonitor(args: GetAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAppMonitorCommandOutput) => void): void;
|
|
134
63
|
/**
|
|
135
|
-
* @
|
|
136
|
-
* <p>Retrieves the raw performance events that RUM has collected from your web application,
|
|
137
|
-
* so that you can do your own processing or analysis of this data.</p>
|
|
64
|
+
* @see {@link GetAppMonitorDataCommand}
|
|
138
65
|
*/
|
|
139
66
|
getAppMonitorData(args: GetAppMonitorDataCommandInput, options?: __HttpHandlerOptions): Promise<GetAppMonitorDataCommandOutput>;
|
|
140
67
|
getAppMonitorData(args: GetAppMonitorDataCommandInput, cb: (err: any, data?: GetAppMonitorDataCommandOutput) => void): void;
|
|
141
68
|
getAppMonitorData(args: GetAppMonitorDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAppMonitorDataCommandOutput) => void): void;
|
|
142
69
|
/**
|
|
143
|
-
* @
|
|
144
|
-
* <p>Returns a list of the Amazon CloudWatch RUM app monitors in the account.</p>
|
|
70
|
+
* @see {@link ListAppMonitorsCommand}
|
|
145
71
|
*/
|
|
146
72
|
listAppMonitors(args: ListAppMonitorsCommandInput, options?: __HttpHandlerOptions): Promise<ListAppMonitorsCommandOutput>;
|
|
147
73
|
listAppMonitors(args: ListAppMonitorsCommandInput, cb: (err: any, data?: ListAppMonitorsCommandOutput) => void): void;
|
|
148
74
|
listAppMonitors(args: ListAppMonitorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAppMonitorsCommandOutput) => void): void;
|
|
149
75
|
/**
|
|
150
|
-
* @
|
|
151
|
-
* <p>Returns a list of destinations that you have created to receive RUM extended metrics,
|
|
152
|
-
* for the specified app monitor.</p>
|
|
153
|
-
* <p>For more information about extended metrics, see <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_AddRumMetrcs.html">AddRumMetrics</a>.</p>
|
|
76
|
+
* @see {@link ListRumMetricsDestinationsCommand}
|
|
154
77
|
*/
|
|
155
78
|
listRumMetricsDestinations(args: ListRumMetricsDestinationsCommandInput, options?: __HttpHandlerOptions): Promise<ListRumMetricsDestinationsCommandOutput>;
|
|
156
79
|
listRumMetricsDestinations(args: ListRumMetricsDestinationsCommandInput, cb: (err: any, data?: ListRumMetricsDestinationsCommandOutput) => void): void;
|
|
157
80
|
listRumMetricsDestinations(args: ListRumMetricsDestinationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRumMetricsDestinationsCommandOutput) => void): void;
|
|
158
81
|
/**
|
|
159
|
-
* @
|
|
160
|
-
* <p>Displays the tags associated with a CloudWatch RUM resource.</p>
|
|
82
|
+
* @see {@link ListTagsForResourceCommand}
|
|
161
83
|
*/
|
|
162
84
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
163
85
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
164
86
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
165
87
|
/**
|
|
166
|
-
* @
|
|
167
|
-
* <p>Sends telemetry events about your application performance and user behavior to CloudWatch RUM. The code
|
|
168
|
-
* snippet that RUM generates for you to add to your application includes <code>PutRumEvents</code> operations to
|
|
169
|
-
* send this data to RUM.</p>
|
|
170
|
-
* <p>Each <code>PutRumEvents</code> operation can send a batch of events from one user session.</p>
|
|
88
|
+
* @see {@link PutRumEventsCommand}
|
|
171
89
|
*/
|
|
172
90
|
putRumEvents(args: PutRumEventsCommandInput, options?: __HttpHandlerOptions): Promise<PutRumEventsCommandOutput>;
|
|
173
91
|
putRumEvents(args: PutRumEventsCommandInput, cb: (err: any, data?: PutRumEventsCommandOutput) => void): void;
|
|
174
92
|
putRumEvents(args: PutRumEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRumEventsCommandOutput) => void): void;
|
|
175
93
|
/**
|
|
176
|
-
* @
|
|
177
|
-
* <p>Creates or updates a destination to receive extended metrics from CloudWatch RUM. You can send
|
|
178
|
-
* extended metrics to CloudWatch or to a CloudWatch Evidently experiment.</p>
|
|
179
|
-
* <p>For more information about extended metrics, see <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_BatchCreateRumMetricDefinitions.html">BatchCreateRumMetricDefinitions</a>.</p>
|
|
94
|
+
* @see {@link PutRumMetricsDestinationCommand}
|
|
180
95
|
*/
|
|
181
96
|
putRumMetricsDestination(args: PutRumMetricsDestinationCommandInput, options?: __HttpHandlerOptions): Promise<PutRumMetricsDestinationCommandOutput>;
|
|
182
97
|
putRumMetricsDestination(args: PutRumMetricsDestinationCommandInput, cb: (err: any, data?: PutRumMetricsDestinationCommandOutput) => void): void;
|
|
183
98
|
putRumMetricsDestination(args: PutRumMetricsDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRumMetricsDestinationCommandOutput) => void): void;
|
|
184
99
|
/**
|
|
185
|
-
* @
|
|
186
|
-
* <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently,
|
|
187
|
-
* the only resources that
|
|
188
|
-
* can be tagged app monitors.</p>
|
|
189
|
-
* <p>Tags can help you organize and categorize your resources. You can also use them to scope user
|
|
190
|
-
* permissions by granting a user
|
|
191
|
-
* permission to access or change only resources with certain tag values.</p>
|
|
192
|
-
* <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
|
|
193
|
-
* <p>You can use the <code>TagResource</code> action with a resource that already has tags.
|
|
194
|
-
* If you specify a new tag key for the resource,
|
|
195
|
-
* this tag is appended to the list of tags associated
|
|
196
|
-
* with the alarm. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces
|
|
197
|
-
* the previous value for that tag.</p>
|
|
198
|
-
* <p>You can associate as many as 50 tags with a resource.</p>
|
|
199
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>
|
|
100
|
+
* @see {@link TagResourceCommand}
|
|
200
101
|
*/
|
|
201
102
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
202
103
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
203
104
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
204
105
|
/**
|
|
205
|
-
* @
|
|
206
|
-
* <p>Removes one or more tags from the specified resource.</p>
|
|
106
|
+
* @see {@link UntagResourceCommand}
|
|
207
107
|
*/
|
|
208
108
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
209
109
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
210
110
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
211
111
|
/**
|
|
212
|
-
* @
|
|
213
|
-
* <p>Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor
|
|
214
|
-
* configuration that you specify in this operation are changed. For any parameters that you omit, the existing
|
|
215
|
-
* values are kept.</p>
|
|
216
|
-
* <p>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
|
|
217
|
-
* <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
|
|
218
|
-
* <p>To create a new app monitor, use <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_CreateAppMonitor.html">CreateAppMonitor</a>.</p>
|
|
219
|
-
* <p>After you update an app monitor, sign in to the CloudWatch RUM console to get
|
|
220
|
-
* the updated JavaScript code snippet to add to your web application. For more information, see
|
|
221
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-find-code-snippet.html">How do I find a code snippet
|
|
222
|
-
* that I've already generated?</a>
|
|
223
|
-
* </p>
|
|
112
|
+
* @see {@link UpdateAppMonitorCommand}
|
|
224
113
|
*/
|
|
225
114
|
updateAppMonitor(args: UpdateAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAppMonitorCommandOutput>;
|
|
226
115
|
updateAppMonitor(args: UpdateAppMonitorCommandInput, cb: (err: any, data?: UpdateAppMonitorCommandOutput) => void): void;
|
|
227
116
|
updateAppMonitor(args: UpdateAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAppMonitorCommandOutput) => void): void;
|
|
228
117
|
/**
|
|
229
|
-
* @
|
|
230
|
-
* <p>Modifies one existing metric definition for CloudWatch RUM extended metrics. For
|
|
231
|
-
* more information about extended metrics, see <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_BatchCreateRumMetricsDefinitions.html">BatchCreateRumMetricsDefinitions</a>.</p>
|
|
118
|
+
* @see {@link UpdateRumMetricDefinitionCommand}
|
|
232
119
|
*/
|
|
233
120
|
updateRumMetricDefinition(args: UpdateRumMetricDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRumMetricDefinitionCommandOutput>;
|
|
234
121
|
updateRumMetricDefinition(args: UpdateRumMetricDefinitionCommandInput, cb: (err: any, data?: UpdateRumMetricDefinitionCommandOutput) => void): void;
|
|
235
122
|
updateRumMetricDefinition(args: UpdateRumMetricDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRumMetricDefinitionCommandOutput) => void): void;
|
|
236
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
* <p>With Amazon CloudWatch RUM, you can perform real-user monitoring to collect client-side data about
|
|
127
|
+
* your web application performance from actual user sessions in real time. The data collected includes page load
|
|
128
|
+
* times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and
|
|
129
|
+
* also see breakdowns by the browsers and devices that your customers use.</p>
|
|
130
|
+
* <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch
|
|
131
|
+
* RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error
|
|
132
|
+
* messages, stack traces, and user sessions. You can also use RUM to
|
|
133
|
+
* understand the range of end-user impact including the number of users, geolocations, and browsers used.</p>
|
|
134
|
+
*/
|
|
135
|
+
export declare class RUM extends RUMClient implements RUM {
|
|
136
|
+
}
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
UpdateRumMetricDefinitionCommandOutput,
|
|
69
69
|
} from "./commands/UpdateRumMetricDefinitionCommand";
|
|
70
70
|
import { RUMClient } from "./RUMClient";
|
|
71
|
-
export
|
|
71
|
+
export interface RUM {
|
|
72
72
|
batchCreateRumMetricDefinitions(
|
|
73
73
|
args: BatchCreateRumMetricDefinitionsCommandInput,
|
|
74
74
|
options?: __HttpHandlerOptions
|
|
@@ -291,3 +291,4 @@ export declare class RUM extends RUMClient {
|
|
|
291
291
|
cb: (err: any, data?: UpdateRumMetricDefinitionCommandOutput) => void
|
|
292
292
|
): void;
|
|
293
293
|
}
|
|
294
|
+
export declare class RUM extends RUMClient implements RUM {}
|
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.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|