@aws-sdk/client-pi 3.47.2 → 3.51.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 +35 -0
- package/README.md +18 -13
- package/dist-cjs/PI.js +45 -0
- package/dist-cjs/commands/GetResourceMetadataCommand.js +36 -0
- package/dist-cjs/commands/ListAvailableResourceDimensionsCommand.js +36 -0
- package/dist-cjs/commands/ListAvailableResourceMetricsCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +77 -1
- package/dist-cjs/pagination/DescribeDimensionKeysPaginator.js +35 -0
- package/dist-cjs/pagination/GetResourceMetricsPaginator.js +35 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAvailableResourceDimensionsPaginator.js +35 -0
- package/dist-cjs/pagination/ListAvailableResourceMetricsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +402 -1
- package/dist-es/PI.js +45 -0
- package/dist-es/commands/GetResourceMetadataCommand.js +39 -0
- package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +39 -0
- package/dist-es/commands/ListAvailableResourceMetricsCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +54 -0
- package/dist-es/pagination/DescribeDimensionKeysPaginator.js +74 -0
- package/dist-es/pagination/GetResourceMetricsPaginator.js +74 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAvailableResourceDimensionsPaginator.js +74 -0
- package/dist-es/pagination/ListAvailableResourceMetricsPaginator.js +74 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +414 -1
- package/dist-types/PI.d.ts +48 -18
- package/dist-types/PIClient.d.ts +22 -14
- package/dist-types/commands/DescribeDimensionKeysCommand.d.ts +2 -2
- package/dist-types/commands/GetDimensionKeyDetailsCommand.d.ts +5 -4
- package/dist-types/commands/GetResourceMetadataCommand.d.ts +37 -0
- package/dist-types/commands/ListAvailableResourceDimensionsCommand.d.ts +35 -0
- package/dist-types/commands/ListAvailableResourceMetricsCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +413 -83
- package/dist-types/pagination/DescribeDimensionKeysPaginator.d.ts +4 -0
- package/dist-types/pagination/GetResourceMetricsPaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAvailableResourceDimensionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListAvailableResourceMetricsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/PI.d.ts +15 -0
- package/dist-types/ts3.4/PIClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/GetResourceMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAvailableResourceDimensionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAvailableResourceMetricsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +142 -0
- package/dist-types/ts3.4/pagination/DescribeDimensionKeysPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/GetResourceMetricsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAvailableResourceDimensionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListAvailableResourceMetricsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
- package/package.json +39 -33
package/dist-types/PIClient.d.ts
CHANGED
|
@@ -8,9 +8,12 @@ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfig
|
|
|
8
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
9
|
import { DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput } from "./commands/DescribeDimensionKeysCommand";
|
|
10
10
|
import { GetDimensionKeyDetailsCommandInput, GetDimensionKeyDetailsCommandOutput } from "./commands/GetDimensionKeyDetailsCommand";
|
|
11
|
+
import { GetResourceMetadataCommandInput, GetResourceMetadataCommandOutput } from "./commands/GetResourceMetadataCommand";
|
|
11
12
|
import { GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput } from "./commands/GetResourceMetricsCommand";
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
import { ListAvailableResourceDimensionsCommandInput, ListAvailableResourceDimensionsCommandOutput } from "./commands/ListAvailableResourceDimensionsCommand";
|
|
14
|
+
import { ListAvailableResourceMetricsCommandInput, ListAvailableResourceMetricsCommandOutput } from "./commands/ListAvailableResourceMetricsCommand";
|
|
15
|
+
export declare type ServiceInputTypes = DescribeDimensionKeysCommandInput | GetDimensionKeyDetailsCommandInput | GetResourceMetadataCommandInput | GetResourceMetricsCommandInput | ListAvailableResourceDimensionsCommandInput | ListAvailableResourceMetricsCommandInput;
|
|
16
|
+
export declare type ServiceOutputTypes = DescribeDimensionKeysCommandOutput | GetDimensionKeyDetailsCommandOutput | GetResourceMetadataCommandOutput | GetResourceMetricsCommandOutput | ListAvailableResourceDimensionsCommandOutput | ListAvailableResourceMetricsCommandOutput;
|
|
14
17
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
15
18
|
/**
|
|
16
19
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -131,24 +134,29 @@ export interface PIClientResolvedConfig extends PIClientResolvedConfigType {
|
|
|
131
134
|
/**
|
|
132
135
|
* <fullname>Amazon RDS Performance Insights</fullname>
|
|
133
136
|
*
|
|
134
|
-
* <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
+
* <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of database load based on
|
|
138
|
+
* data captured from a running DB instance. The guide provides detailed information about Performance Insights
|
|
139
|
+
* data types, parameters and errors.
|
|
140
|
+
* </p>
|
|
137
141
|
*
|
|
138
|
-
* <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance.
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
142
|
+
* <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance.
|
|
143
|
+
* Amazon CloudWatch provides the authoritative source for Amazon Web Services service-vended monitoring metrics.
|
|
144
|
+
* Performance Insights offers a domain-specific view of DB load.
|
|
145
|
+
* </p>
|
|
146
|
+
* <p>DB load is measured as average active sessions. Performance Insights provides the data to API consumers as a two-dimensional
|
|
147
|
+
* time-series dataset. The time dimension provides DB load data for each time point in the
|
|
148
|
+
* queried time range. Each time point decomposes overall load in relation to the requested dimensions,
|
|
149
|
+
* measured at that time point. Examples include SQL, Wait event, User, and Host.
|
|
150
|
+
* </p>
|
|
145
151
|
*
|
|
146
152
|
* <ul>
|
|
147
153
|
* <li>
|
|
148
|
-
* <p>To learn more about Performance Insights and Amazon Aurora DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html">Amazon Aurora User Guide</a
|
|
154
|
+
* <p>To learn more about Performance Insights and Amazon Aurora DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html"> Amazon Aurora User Guide</a>.
|
|
155
|
+
* </p>
|
|
149
156
|
* </li>
|
|
150
157
|
* <li>
|
|
151
|
-
* <p>To learn more about Performance Insights and Amazon RDS DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html">Amazon RDS User Guide</a
|
|
158
|
+
* <p>To learn more about Performance Insights and Amazon RDS DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Amazon RDS User Guide</a>.
|
|
159
|
+
* </p>
|
|
152
160
|
* </li>
|
|
153
161
|
* </ul>
|
|
154
162
|
*/
|
|
@@ -7,8 +7,8 @@ export interface DescribeDimensionKeysCommandInput extends DescribeDimensionKeys
|
|
|
7
7
|
export interface DescribeDimensionKeysCommandOutput extends DescribeDimensionKeysResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a
|
|
11
|
-
*
|
|
10
|
+
* <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a metric.
|
|
11
|
+
* </p>
|
|
12
12
|
* <note>
|
|
13
13
|
* <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
|
|
14
14
|
* only the first 500 bytes are returned.</p>
|
|
@@ -7,10 +7,11 @@ export interface GetDimensionKeyDetailsCommandInput extends GetDimensionKeyDetai
|
|
|
7
7
|
export interface GetDimensionKeyDetailsCommandOutput extends GetDimensionKeyDetailsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Get the attributes of the specified dimension group for a DB instance or data source.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* <p>Get the attributes of the specified dimension group for a DB instance or data source.
|
|
11
|
+
* For example, if you specify a SQL ID, <code>GetDimensionKeyDetails</code> retrieves
|
|
12
|
+
* the full text of the dimension <code>db.sql.statement</code>cassociated with this ID.
|
|
13
|
+
* This operation is useful because <code>GetResourceMetrics</code> and <code>DescribeDimensionKeys</code>
|
|
14
|
+
* don't support retrieval of large SQL statement text.</p>
|
|
14
15
|
* @example
|
|
15
16
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
17
|
* ```javascript
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { GetResourceMetadataRequest, GetResourceMetadataResponse } from "../models/models_0";
|
|
4
|
+
import { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
|
|
5
|
+
export interface GetResourceMetadataCommandInput extends GetResourceMetadataRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetResourceMetadataCommandOutput extends GetResourceMetadataResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Retrieve the metadata for different features. For example, the metadata might indicate
|
|
11
|
+
* that a feature is turned on or off on a specific DB instance.
|
|
12
|
+
* </p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { PIClient, GetResourceMetadataCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
17
|
+
* // const { PIClient, GetResourceMetadataCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
18
|
+
* const client = new PIClient(config);
|
|
19
|
+
* const command = new GetResourceMetadataCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link GetResourceMetadataCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link GetResourceMetadataCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link PIClientResolvedConfig | config} for PIClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class GetResourceMetadataCommand extends $Command<GetResourceMetadataCommandInput, GetResourceMetadataCommandOutput, PIClientResolvedConfig> {
|
|
29
|
+
readonly input: GetResourceMetadataCommandInput;
|
|
30
|
+
constructor(input: GetResourceMetadataCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetResourceMetadataCommandInput, GetResourceMetadataCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -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 { ListAvailableResourceDimensionsRequest, ListAvailableResourceDimensionsResponse } from "../models/models_0";
|
|
4
|
+
import { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
|
|
5
|
+
export interface ListAvailableResourceDimensionsCommandInput extends ListAvailableResourceDimensionsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListAvailableResourceDimensionsCommandOutput extends ListAvailableResourceDimensionsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Retrieve the dimensions that can be queried for each specified metric type on a specified DB instance.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { PIClient, ListAvailableResourceDimensionsCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
15
|
+
* // const { PIClient, ListAvailableResourceDimensionsCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
16
|
+
* const client = new PIClient(config);
|
|
17
|
+
* const command = new ListAvailableResourceDimensionsCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link ListAvailableResourceDimensionsCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link ListAvailableResourceDimensionsCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link PIClientResolvedConfig | config} for PIClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class ListAvailableResourceDimensionsCommand extends $Command<ListAvailableResourceDimensionsCommandInput, ListAvailableResourceDimensionsCommandOutput, PIClientResolvedConfig> {
|
|
27
|
+
readonly input: ListAvailableResourceDimensionsCommandInput;
|
|
28
|
+
constructor(input: ListAvailableResourceDimensionsCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAvailableResourceDimensionsCommandInput, ListAvailableResourceDimensionsCommandOutput>;
|
|
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 { ListAvailableResourceMetricsRequest, ListAvailableResourceMetricsResponse } from "../models/models_0";
|
|
4
|
+
import { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
|
|
5
|
+
export interface ListAvailableResourceMetricsCommandInput extends ListAvailableResourceMetricsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListAvailableResourceMetricsCommandOutput extends ListAvailableResourceMetricsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Retrieve metrics of the specified types that can be queried for a specified DB instance.
|
|
11
|
+
* </p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { PIClient, ListAvailableResourceMetricsCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
16
|
+
* // const { PIClient, ListAvailableResourceMetricsCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
17
|
+
* const client = new PIClient(config);
|
|
18
|
+
* const command = new ListAvailableResourceMetricsCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link ListAvailableResourceMetricsCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link ListAvailableResourceMetricsCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link PIClientResolvedConfig | config} for PIClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ListAvailableResourceMetricsCommand extends $Command<ListAvailableResourceMetricsCommandInput, ListAvailableResourceMetricsCommandOutput, PIClientResolvedConfig> {
|
|
28
|
+
readonly input: ListAvailableResourceMetricsCommandInput;
|
|
29
|
+
constructor(input: ListAvailableResourceMetricsCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAvailableResourceMetricsCommandInput, ListAvailableResourceMetricsCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * from "./DescribeDimensionKeysCommand";
|
|
2
2
|
export * from "./GetDimensionKeyDetailsCommand";
|
|
3
|
+
export * from "./GetResourceMetadataCommand";
|
|
3
4
|
export * from "./GetResourceMetricsCommand";
|
|
5
|
+
export * from "./ListAvailableResourceDimensionsCommand";
|
|
6
|
+
export * from "./ListAvailableResourceMetricsCommand";
|
package/dist-types/index.d.ts
CHANGED