@aws-sdk/client-rum 3.44.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/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +211 -0
- package/dist-cjs/RUM.js +157 -0
- package/dist-cjs/RUMClient.js +35 -0
- package/dist-cjs/commands/CreateAppMonitorCommand.js +36 -0
- package/dist-cjs/commands/DeleteAppMonitorCommand.js +36 -0
- package/dist-cjs/commands/GetAppMonitorCommand.js +36 -0
- package/dist-cjs/commands/GetAppMonitorDataCommand.js +36 -0
- package/dist-cjs/commands/ListAppMonitorsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/PutRumEventsCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateAppMonitorCommand.js +36 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoints.js +130 -0
- package/dist-cjs/index.js +8 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +237 -0
- package/dist-cjs/pagination/GetAppMonitorDataPaginator.js +35 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAppMonitorsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1502 -0
- package/dist-cjs/runtimeConfig.browser.js +40 -0
- package/dist-cjs/runtimeConfig.js +44 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/RUM.js +160 -0
- package/dist-es/RUMClient.js +37 -0
- package/dist-es/commands/CreateAppMonitorCommand.js +39 -0
- package/dist-es/commands/DeleteAppMonitorCommand.js +39 -0
- package/dist-es/commands/GetAppMonitorCommand.js +39 -0
- package/dist-es/commands/GetAppMonitorDataCommand.js +39 -0
- package/dist-es/commands/ListAppMonitorsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/PutRumEventsCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateAppMonitorCommand.js +39 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoints.js +126 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +161 -0
- package/dist-es/pagination/GetAppMonitorDataPaginator.js +74 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAppMonitorsPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1652 -0
- package/dist-es/runtimeConfig.browser.js +17 -0
- package/dist-es/runtimeConfig.js +21 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/RUM.d.ts +120 -0
- package/dist-types/RUMClient.d.ts +158 -0
- package/dist-types/commands/CreateAppMonitorCommand.d.ts +43 -0
- package/dist-types/commands/DeleteAppMonitorCommand.d.ts +35 -0
- package/dist-types/commands/GetAppMonitorCommand.d.ts +35 -0
- package/dist-types/commands/GetAppMonitorDataCommand.d.ts +36 -0
- package/dist-types/commands/ListAppMonitorsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/PutRumEventsCommand.d.ts +38 -0
- package/dist-types/commands/TagResourceCommand.d.ts +48 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateAppMonitorCommand.d.ts +45 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +824 -0
- package/dist-types/pagination/GetAppMonitorDataPaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAppMonitorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +32 -0
- package/dist-types/runtimeConfig.browser.d.ts +39 -0
- package/dist-types/runtimeConfig.d.ts +39 -0
- package/dist-types/runtimeConfig.native.d.ts +38 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/RUM.d.ts +55 -0
- package/dist-types/ts3.4/RUMClient.d.ts +81 -0
- package/dist-types/ts3.4/commands/CreateAppMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAppMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAppMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAppMonitorDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAppMonitorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRumEventsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateAppMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +455 -0
- package/dist-types/ts3.4/pagination/GetAppMonitorDataPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAppMonitorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +32 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +94 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
+
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
9
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
10
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
export var getRuntimeConfig = function (config) {
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
15
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
|
+
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
|
+
export var getRuntimeConfig = function (config) {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
+
export var getRuntimeConfig = function (config) {
|
|
5
|
+
var _a;
|
|
6
|
+
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
|
+
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
+
export var getRuntimeConfig = function (config) {
|
|
4
|
+
var _a, _b, _c, _d, _e;
|
|
5
|
+
return ({
|
|
6
|
+
apiVersion: "2018-05-10",
|
|
7
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
8
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
9
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
|
|
10
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "RUM",
|
|
11
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
+
});
|
|
13
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { CreateAppMonitorCommandInput, CreateAppMonitorCommandOutput } from "./commands/CreateAppMonitorCommand";
|
|
3
|
+
import { DeleteAppMonitorCommandInput, DeleteAppMonitorCommandOutput } from "./commands/DeleteAppMonitorCommand";
|
|
4
|
+
import { GetAppMonitorCommandInput, GetAppMonitorCommandOutput } from "./commands/GetAppMonitorCommand";
|
|
5
|
+
import { GetAppMonitorDataCommandInput, GetAppMonitorDataCommandOutput } from "./commands/GetAppMonitorDataCommand";
|
|
6
|
+
import { ListAppMonitorsCommandInput, ListAppMonitorsCommandOutput } from "./commands/ListAppMonitorsCommand";
|
|
7
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
8
|
+
import { PutRumEventsCommandInput, PutRumEventsCommandOutput } from "./commands/PutRumEventsCommand";
|
|
9
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
10
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
11
|
+
import { UpdateAppMonitorCommandInput, UpdateAppMonitorCommandOutput } from "./commands/UpdateAppMonitorCommand";
|
|
12
|
+
import { RUMClient } from "./RUMClient";
|
|
13
|
+
/**
|
|
14
|
+
* <p>With Amazon CloudWatch RUM, you can perform real-user monitoring to collect client-side data about
|
|
15
|
+
* your web application performance from actual user sessions in real time. The data collected includes page load
|
|
16
|
+
* times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and
|
|
17
|
+
* also see breakdowns by the browsers and devices that your customers use.</p>
|
|
18
|
+
*
|
|
19
|
+
* <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch
|
|
20
|
+
* RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error
|
|
21
|
+
* messages, stack traces, and user sessions. You can also use RUM to
|
|
22
|
+
* understand the range of end-user impact including the number of users, geolocations, and browsers used.</p>
|
|
23
|
+
*/
|
|
24
|
+
export declare class RUM extends RUMClient {
|
|
25
|
+
/**
|
|
26
|
+
* <p>Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that
|
|
27
|
+
* data to RUM. The data includes performance and reliability information such as page load time, client-side errors,
|
|
28
|
+
* and user behavior.</p>
|
|
29
|
+
* <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>
|
|
30
|
+
* <p>After you create an app monitor, sign in to the CloudWatch RUM console to get
|
|
31
|
+
* the JavaScript code snippet to add to your web application. For more information, see
|
|
32
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-find-code-snippet.html">How do I find a code snippet
|
|
33
|
+
* that I've already generated?</a>
|
|
34
|
+
* </p>
|
|
35
|
+
*/
|
|
36
|
+
createAppMonitor(args: CreateAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<CreateAppMonitorCommandOutput>;
|
|
37
|
+
createAppMonitor(args: CreateAppMonitorCommandInput, cb: (err: any, data?: CreateAppMonitorCommandOutput) => void): void;
|
|
38
|
+
createAppMonitor(args: CreateAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAppMonitorCommandOutput) => void): void;
|
|
39
|
+
/**
|
|
40
|
+
* <p>Deletes an existing app monitor. This immediately stops the collection of data.</p>
|
|
41
|
+
*/
|
|
42
|
+
deleteAppMonitor(args: DeleteAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAppMonitorCommandOutput>;
|
|
43
|
+
deleteAppMonitor(args: DeleteAppMonitorCommandInput, cb: (err: any, data?: DeleteAppMonitorCommandOutput) => void): void;
|
|
44
|
+
deleteAppMonitor(args: DeleteAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAppMonitorCommandOutput) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* <p>Retrieves the complete configuration information for one app monitor.</p>
|
|
47
|
+
*/
|
|
48
|
+
getAppMonitor(args: GetAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<GetAppMonitorCommandOutput>;
|
|
49
|
+
getAppMonitor(args: GetAppMonitorCommandInput, cb: (err: any, data?: GetAppMonitorCommandOutput) => void): void;
|
|
50
|
+
getAppMonitor(args: GetAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAppMonitorCommandOutput) => void): void;
|
|
51
|
+
/**
|
|
52
|
+
* <p>Retrieves the raw performance events that RUM has collected from your web application,
|
|
53
|
+
* so that you can do your own processing or analysis of this data.</p>
|
|
54
|
+
*/
|
|
55
|
+
getAppMonitorData(args: GetAppMonitorDataCommandInput, options?: __HttpHandlerOptions): Promise<GetAppMonitorDataCommandOutput>;
|
|
56
|
+
getAppMonitorData(args: GetAppMonitorDataCommandInput, cb: (err: any, data?: GetAppMonitorDataCommandOutput) => void): void;
|
|
57
|
+
getAppMonitorData(args: GetAppMonitorDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAppMonitorDataCommandOutput) => void): void;
|
|
58
|
+
/**
|
|
59
|
+
* <p>Returns a list of the Amazon CloudWatch RUM app monitors in the account.</p>
|
|
60
|
+
*/
|
|
61
|
+
listAppMonitors(args: ListAppMonitorsCommandInput, options?: __HttpHandlerOptions): Promise<ListAppMonitorsCommandOutput>;
|
|
62
|
+
listAppMonitors(args: ListAppMonitorsCommandInput, cb: (err: any, data?: ListAppMonitorsCommandOutput) => void): void;
|
|
63
|
+
listAppMonitors(args: ListAppMonitorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAppMonitorsCommandOutput) => void): void;
|
|
64
|
+
/**
|
|
65
|
+
* <p>Displays the tags associated with a CloudWatch RUM resource.</p>
|
|
66
|
+
*/
|
|
67
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
68
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
69
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* <p>Sends telemetry events about your application performance and user behavior to CloudWatch RUM. The code
|
|
72
|
+
* snippet that RUM generates for you to add to your application includes <code>PutRumEvents</code> operations to
|
|
73
|
+
* send this data to RUM.</p>
|
|
74
|
+
* <p>Each <code>PutRumEvents</code> operation can send a batch of events from one user session.</p>
|
|
75
|
+
*/
|
|
76
|
+
putRumEvents(args: PutRumEventsCommandInput, options?: __HttpHandlerOptions): Promise<PutRumEventsCommandOutput>;
|
|
77
|
+
putRumEvents(args: PutRumEventsCommandInput, cb: (err: any, data?: PutRumEventsCommandOutput) => void): void;
|
|
78
|
+
putRumEvents(args: PutRumEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRumEventsCommandOutput) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently,
|
|
81
|
+
* the only resources that
|
|
82
|
+
* can be tagged app monitors.</p>
|
|
83
|
+
* <p>Tags can help you organize and categorize your resources. You can also use them to scope user
|
|
84
|
+
* permissions by granting a user
|
|
85
|
+
* permission to access or change only resources with certain tag values.</p>
|
|
86
|
+
* <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
|
|
87
|
+
* <p>You can use the <code>TagResource</code> action with a resource that already has tags.
|
|
88
|
+
* If you specify a new tag key for the resource,
|
|
89
|
+
* this tag is appended to the list of tags associated
|
|
90
|
+
* with the alarm. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces
|
|
91
|
+
* the previous value for that tag.</p>
|
|
92
|
+
* <p>You can associate as many as 50 tags with a resource.</p>
|
|
93
|
+
* <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>
|
|
94
|
+
*/
|
|
95
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
96
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
97
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
98
|
+
/**
|
|
99
|
+
* <p>Removes one or more tags from the specified resource.</p>
|
|
100
|
+
*/
|
|
101
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
102
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
103
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
104
|
+
/**
|
|
105
|
+
* <p>Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor
|
|
106
|
+
* configuration that you specify in this operation are changed. For any parameters that you omit, the existing
|
|
107
|
+
* values are kept.</p>
|
|
108
|
+
* <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
|
|
109
|
+
* <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
|
|
110
|
+
* <p>To create a new app monitor, use <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_CreateAppMonitor.html">CreateAppMonitor</a>.</p>
|
|
111
|
+
* <p>After you update an app monitor, sign in to the CloudWatch RUM console to get
|
|
112
|
+
* the updated JavaScript code snippet to add to your web application. For more information, see
|
|
113
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-find-code-snippet.html">How do I find a code snippet
|
|
114
|
+
* that I've already generated?</a>
|
|
115
|
+
* </p>
|
|
116
|
+
*/
|
|
117
|
+
updateAppMonitor(args: UpdateAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAppMonitorCommandOutput>;
|
|
118
|
+
updateAppMonitor(args: UpdateAppMonitorCommandInput, cb: (err: any, data?: UpdateAppMonitorCommandOutput) => void): void;
|
|
119
|
+
updateAppMonitor(args: UpdateAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAppMonitorCommandOutput) => void): void;
|
|
120
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { CreateAppMonitorCommandInput, CreateAppMonitorCommandOutput } from "./commands/CreateAppMonitorCommand";
|
|
10
|
+
import { DeleteAppMonitorCommandInput, DeleteAppMonitorCommandOutput } from "./commands/DeleteAppMonitorCommand";
|
|
11
|
+
import { GetAppMonitorCommandInput, GetAppMonitorCommandOutput } from "./commands/GetAppMonitorCommand";
|
|
12
|
+
import { GetAppMonitorDataCommandInput, GetAppMonitorDataCommandOutput } from "./commands/GetAppMonitorDataCommand";
|
|
13
|
+
import { ListAppMonitorsCommandInput, ListAppMonitorsCommandOutput } from "./commands/ListAppMonitorsCommand";
|
|
14
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
15
|
+
import { PutRumEventsCommandInput, PutRumEventsCommandOutput } from "./commands/PutRumEventsCommand";
|
|
16
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
17
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
18
|
+
import { UpdateAppMonitorCommandInput, UpdateAppMonitorCommandOutput } from "./commands/UpdateAppMonitorCommand";
|
|
19
|
+
export declare type ServiceInputTypes = CreateAppMonitorCommandInput | DeleteAppMonitorCommandInput | GetAppMonitorCommandInput | GetAppMonitorDataCommandInput | ListAppMonitorsCommandInput | ListTagsForResourceCommandInput | PutRumEventsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAppMonitorCommandInput;
|
|
20
|
+
export declare type ServiceOutputTypes = CreateAppMonitorCommandOutput | DeleteAppMonitorCommandOutput | GetAppMonitorCommandOutput | GetAppMonitorDataCommandOutput | ListAppMonitorsCommandOutput | ListTagsForResourceCommandOutput | PutRumEventsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAppMonitorCommandOutput;
|
|
21
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
22
|
+
/**
|
|
23
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
24
|
+
*/
|
|
25
|
+
requestHandler?: __HttpHandler;
|
|
26
|
+
/**
|
|
27
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
28
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
sha256?: __HashConstructor;
|
|
32
|
+
/**
|
|
33
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
urlParser?: __UrlParser;
|
|
37
|
+
/**
|
|
38
|
+
* A function that can calculate the length of a request body.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* A function that converts a stream into an array of bytes.
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
streamCollector?: __StreamCollector;
|
|
47
|
+
/**
|
|
48
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
base64Decoder?: __Decoder;
|
|
52
|
+
/**
|
|
53
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
base64Encoder?: __Encoder;
|
|
57
|
+
/**
|
|
58
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
utf8Decoder?: __Decoder;
|
|
62
|
+
/**
|
|
63
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
utf8Encoder?: __Encoder;
|
|
67
|
+
/**
|
|
68
|
+
* The runtime environment.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
runtime?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
74
|
+
* trait of an operation.
|
|
75
|
+
*/
|
|
76
|
+
disableHostPrefix?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
79
|
+
*/
|
|
80
|
+
maxAttempts?: number | __Provider<number>;
|
|
81
|
+
/**
|
|
82
|
+
* Specifies which retry algorithm to use.
|
|
83
|
+
*/
|
|
84
|
+
retryMode?: string | __Provider<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Optional logger for logging debug/info/warn/error.
|
|
87
|
+
*/
|
|
88
|
+
logger?: __Logger;
|
|
89
|
+
/**
|
|
90
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
91
|
+
*/
|
|
92
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* Enables FIPS compatible endpoints.
|
|
95
|
+
*/
|
|
96
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* Unique service identifier.
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
serviceId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* The AWS region to which this client will send requests
|
|
104
|
+
*/
|
|
105
|
+
region?: string | __Provider<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Default credentials provider; Not available in browser runtime.
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
111
|
+
/**
|
|
112
|
+
* Fetch related hostname, signing name or signing region with given region.
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
116
|
+
/**
|
|
117
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
121
|
+
}
|
|
122
|
+
declare type RUMClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
123
|
+
/**
|
|
124
|
+
* The configuration interface of RUMClient class constructor that set the region, credentials and other options.
|
|
125
|
+
*/
|
|
126
|
+
export interface RUMClientConfig extends RUMClientConfigType {
|
|
127
|
+
}
|
|
128
|
+
declare type RUMClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
129
|
+
/**
|
|
130
|
+
* The resolved configuration interface of RUMClient class. This is resolved and normalized from the {@link RUMClientConfig | constructor configuration interface}.
|
|
131
|
+
*/
|
|
132
|
+
export interface RUMClientResolvedConfig extends RUMClientResolvedConfigType {
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* <p>With Amazon CloudWatch RUM, you can perform real-user monitoring to collect client-side data about
|
|
136
|
+
* your web application performance from actual user sessions in real time. The data collected includes page load
|
|
137
|
+
* times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and
|
|
138
|
+
* also see breakdowns by the browsers and devices that your customers use.</p>
|
|
139
|
+
*
|
|
140
|
+
* <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch
|
|
141
|
+
* RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error
|
|
142
|
+
* messages, stack traces, and user sessions. You can also use RUM to
|
|
143
|
+
* understand the range of end-user impact including the number of users, geolocations, and browsers used.</p>
|
|
144
|
+
*/
|
|
145
|
+
export declare class RUMClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RUMClientResolvedConfig> {
|
|
146
|
+
/**
|
|
147
|
+
* The resolved configuration of RUMClient class. This is resolved and normalized from the {@link RUMClientConfig | constructor configuration interface}.
|
|
148
|
+
*/
|
|
149
|
+
readonly config: RUMClientResolvedConfig;
|
|
150
|
+
constructor(configuration: RUMClientConfig);
|
|
151
|
+
/**
|
|
152
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
153
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
154
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
155
|
+
*/
|
|
156
|
+
destroy(): void;
|
|
157
|
+
}
|
|
158
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { CreateAppMonitorRequest, CreateAppMonitorResponse } from "../models/models_0";
|
|
4
|
+
import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
|
|
5
|
+
export interface CreateAppMonitorCommandInput extends CreateAppMonitorRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateAppMonitorCommandOutput extends CreateAppMonitorResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that
|
|
11
|
+
* data to RUM. The data includes performance and reliability information such as page load time, client-side errors,
|
|
12
|
+
* and user behavior.</p>
|
|
13
|
+
* <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>
|
|
14
|
+
* <p>After you create an app monitor, sign in to the CloudWatch RUM console to get
|
|
15
|
+
* the JavaScript code snippet to add to your web application. For more information, see
|
|
16
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-find-code-snippet.html">How do I find a code snippet
|
|
17
|
+
* that I've already generated?</a>
|
|
18
|
+
* </p>
|
|
19
|
+
* @example
|
|
20
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
+
* ```javascript
|
|
22
|
+
* import { RUMClient, CreateAppMonitorCommand } from "@aws-sdk/client-rum"; // ES Modules import
|
|
23
|
+
* // const { RUMClient, CreateAppMonitorCommand } = require("@aws-sdk/client-rum"); // CommonJS import
|
|
24
|
+
* const client = new RUMClient(config);
|
|
25
|
+
* const command = new CreateAppMonitorCommand(input);
|
|
26
|
+
* const response = await client.send(command);
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @see {@link CreateAppMonitorCommandInput} for command's `input` shape.
|
|
30
|
+
* @see {@link CreateAppMonitorCommandOutput} for command's `response` shape.
|
|
31
|
+
* @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class CreateAppMonitorCommand extends $Command<CreateAppMonitorCommandInput, CreateAppMonitorCommandOutput, RUMClientResolvedConfig> {
|
|
35
|
+
readonly input: CreateAppMonitorCommandInput;
|
|
36
|
+
constructor(input: CreateAppMonitorCommandInput);
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAppMonitorCommandInput, CreateAppMonitorCommandOutput>;
|
|
41
|
+
private serialize;
|
|
42
|
+
private deserialize;
|
|
43
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { DeleteAppMonitorRequest, DeleteAppMonitorResponse } from "../models/models_0";
|
|
4
|
+
import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
|
|
5
|
+
export interface DeleteAppMonitorCommandInput extends DeleteAppMonitorRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteAppMonitorCommandOutput extends DeleteAppMonitorResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Deletes an existing app monitor. This immediately stops the collection of data.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { RUMClient, DeleteAppMonitorCommand } from "@aws-sdk/client-rum"; // ES Modules import
|
|
15
|
+
* // const { RUMClient, DeleteAppMonitorCommand } = require("@aws-sdk/client-rum"); // CommonJS import
|
|
16
|
+
* const client = new RUMClient(config);
|
|
17
|
+
* const command = new DeleteAppMonitorCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link DeleteAppMonitorCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link DeleteAppMonitorCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class DeleteAppMonitorCommand extends $Command<DeleteAppMonitorCommandInput, DeleteAppMonitorCommandOutput, RUMClientResolvedConfig> {
|
|
27
|
+
readonly input: DeleteAppMonitorCommandInput;
|
|
28
|
+
constructor(input: DeleteAppMonitorCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteAppMonitorCommandInput, DeleteAppMonitorCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetAppMonitorRequest, GetAppMonitorResponse } from "../models/models_0";
|
|
4
|
+
import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
|
|
5
|
+
export interface GetAppMonitorCommandInput extends GetAppMonitorRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetAppMonitorCommandOutput extends GetAppMonitorResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Retrieves the complete configuration information for one app monitor.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { RUMClient, GetAppMonitorCommand } from "@aws-sdk/client-rum"; // ES Modules import
|
|
15
|
+
* // const { RUMClient, GetAppMonitorCommand } = require("@aws-sdk/client-rum"); // CommonJS import
|
|
16
|
+
* const client = new RUMClient(config);
|
|
17
|
+
* const command = new GetAppMonitorCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link GetAppMonitorCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link GetAppMonitorCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class GetAppMonitorCommand extends $Command<GetAppMonitorCommandInput, GetAppMonitorCommandOutput, RUMClientResolvedConfig> {
|
|
27
|
+
readonly input: GetAppMonitorCommandInput;
|
|
28
|
+
constructor(input: GetAppMonitorCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAppMonitorCommandInput, GetAppMonitorCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetAppMonitorDataRequest, GetAppMonitorDataResponse } from "../models/models_0";
|
|
4
|
+
import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
|
|
5
|
+
export interface GetAppMonitorDataCommandInput extends GetAppMonitorDataRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetAppMonitorDataCommandOutput extends GetAppMonitorDataResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Retrieves the raw performance events that RUM has collected from your web application,
|
|
11
|
+
* so that you can do your own processing or analysis of this data.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { RUMClient, GetAppMonitorDataCommand } from "@aws-sdk/client-rum"; // ES Modules import
|
|
16
|
+
* // const { RUMClient, GetAppMonitorDataCommand } = require("@aws-sdk/client-rum"); // CommonJS import
|
|
17
|
+
* const client = new RUMClient(config);
|
|
18
|
+
* const command = new GetAppMonitorDataCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link GetAppMonitorDataCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link GetAppMonitorDataCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class GetAppMonitorDataCommand extends $Command<GetAppMonitorDataCommandInput, GetAppMonitorDataCommandOutput, RUMClientResolvedConfig> {
|
|
28
|
+
readonly input: GetAppMonitorDataCommandInput;
|
|
29
|
+
constructor(input: GetAppMonitorDataCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAppMonitorDataCommandInput, GetAppMonitorDataCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ListAppMonitorsRequest, ListAppMonitorsResponse } from "../models/models_0";
|
|
4
|
+
import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
|
|
5
|
+
export interface ListAppMonitorsCommandInput extends ListAppMonitorsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListAppMonitorsCommandOutput extends ListAppMonitorsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Returns a list of the Amazon CloudWatch RUM app monitors in the account.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { RUMClient, ListAppMonitorsCommand } from "@aws-sdk/client-rum"; // ES Modules import
|
|
15
|
+
* // const { RUMClient, ListAppMonitorsCommand } = require("@aws-sdk/client-rum"); // CommonJS import
|
|
16
|
+
* const client = new RUMClient(config);
|
|
17
|
+
* const command = new ListAppMonitorsCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link ListAppMonitorsCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link ListAppMonitorsCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class ListAppMonitorsCommand extends $Command<ListAppMonitorsCommandInput, ListAppMonitorsCommandOutput, RUMClientResolvedConfig> {
|
|
27
|
+
readonly input: ListAppMonitorsCommandInput;
|
|
28
|
+
constructor(input: ListAppMonitorsCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAppMonitorsCommandInput, ListAppMonitorsCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
4
|
+
import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
|
|
5
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Displays the tags associated with a CloudWatch RUM resource.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { RUMClient, ListTagsForResourceCommand } from "@aws-sdk/client-rum"; // ES Modules import
|
|
15
|
+
* // const { RUMClient, ListTagsForResourceCommand } = require("@aws-sdk/client-rum"); // CommonJS import
|
|
16
|
+
* const client = new RUMClient(config);
|
|
17
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, RUMClientResolvedConfig> {
|
|
27
|
+
readonly input: ListTagsForResourceCommandInput;
|
|
28
|
+
constructor(input: ListTagsForResourceCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { PutRumEventsRequest, PutRumEventsResponse } from "../models/models_0";
|
|
4
|
+
import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
|
|
5
|
+
export interface PutRumEventsCommandInput extends PutRumEventsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface PutRumEventsCommandOutput extends PutRumEventsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Sends telemetry events about your application performance and user behavior to CloudWatch RUM. The code
|
|
11
|
+
* snippet that RUM generates for you to add to your application includes <code>PutRumEvents</code> operations to
|
|
12
|
+
* send this data to RUM.</p>
|
|
13
|
+
* <p>Each <code>PutRumEvents</code> operation can send a batch of events from one user session.</p>
|
|
14
|
+
* @example
|
|
15
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
+
* ```javascript
|
|
17
|
+
* import { RUMClient, PutRumEventsCommand } from "@aws-sdk/client-rum"; // ES Modules import
|
|
18
|
+
* // const { RUMClient, PutRumEventsCommand } = require("@aws-sdk/client-rum"); // CommonJS import
|
|
19
|
+
* const client = new RUMClient(config);
|
|
20
|
+
* const command = new PutRumEventsCommand(input);
|
|
21
|
+
* const response = await client.send(command);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @see {@link PutRumEventsCommandInput} for command's `input` shape.
|
|
25
|
+
* @see {@link PutRumEventsCommandOutput} for command's `response` shape.
|
|
26
|
+
* @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class PutRumEventsCommand extends $Command<PutRumEventsCommandInput, PutRumEventsCommandOutput, RUMClientResolvedConfig> {
|
|
30
|
+
readonly input: PutRumEventsCommandInput;
|
|
31
|
+
constructor(input: PutRumEventsCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutRumEventsCommandInput, PutRumEventsCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|