Skip to content

Commit 0932dce

Browse files
author
awstools
committed
feat(client-rum): CloudWatch RUM now supports Extended CloudWatch Metrics with Additional Dimensions
1 parent d7d6077 commit 0932dce

33 files changed

+5617
-445
lines changed

clients/client-rum/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ using your favorite package manager:
3434

3535
The AWS SDK is modulized by clients and commands.
3636
To send a request, you only need to import the `RUMClient` and
37-
the commands you need, for example `CreateAppMonitorCommand`:
37+
the commands you need, for example `BatchCreateRumMetricDefinitionsCommand`:
3838

3939
```js
4040
// ES5 example
41-
const { RUMClient, CreateAppMonitorCommand } = require("@aws-sdk/client-rum");
41+
const { RUMClient, BatchCreateRumMetricDefinitionsCommand } = require("@aws-sdk/client-rum");
4242
```
4343

4444
```ts
4545
// ES6+ example
46-
import { RUMClient, CreateAppMonitorCommand } from "@aws-sdk/client-rum";
46+
import { RUMClient, BatchCreateRumMetricDefinitionsCommand } from "@aws-sdk/client-rum";
4747
```
4848

4949
### Usage
@@ -62,7 +62,7 @@ const client = new RUMClient({ region: "REGION" });
6262
const params = {
6363
/** input parameters */
6464
};
65-
const command = new CreateAppMonitorCommand(params);
65+
const command = new BatchCreateRumMetricDefinitionsCommand(params);
6666
```
6767

6868
#### Async/await
@@ -141,15 +141,15 @@ const client = new AWS.RUM({ region: "REGION" });
141141

142142
// async/await.
143143
try {
144-
const data = await client.createAppMonitor(params);
144+
const data = await client.batchCreateRumMetricDefinitions(params);
145145
// process data.
146146
} catch (error) {
147147
// error handling.
148148
}
149149

150150
// Promises.
151151
client
152-
.createAppMonitor(params)
152+
.batchCreateRumMetricDefinitions(params)
153153
.then((data) => {
154154
// process data.
155155
})
@@ -158,7 +158,7 @@ client
158158
});
159159

160160
// callbacks.
161-
client.createAppMonitor(params, (err, data) => {
161+
client.batchCreateRumMetricDefinitions(params, (err, data) => {
162162
// process err and data.
163163
});
164164
```

clients/client-rum/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@aws-sdk/hash-node": "*",
2727
"@aws-sdk/invalid-dependency": "*",
2828
"@aws-sdk/middleware-content-length": "*",
29+
"@aws-sdk/middleware-endpoint": "*",
2930
"@aws-sdk/middleware-host-header": "*",
3031
"@aws-sdk/middleware-logger": "*",
3132
"@aws-sdk/middleware-recursion-detection": "*",
@@ -46,6 +47,7 @@
4647
"@aws-sdk/util-body-length-node": "*",
4748
"@aws-sdk/util-defaults-mode-browser": "*",
4849
"@aws-sdk/util-defaults-mode-node": "*",
50+
"@aws-sdk/util-endpoints": "*",
4951
"@aws-sdk/util-user-agent-browser": "*",
5052
"@aws-sdk/util-user-agent-node": "*",
5153
"@aws-sdk/util-utf8-browser": "*",

0 commit comments

Comments
 (0)