@aws-cdk/metrics-facade-alpha 2.261.0-alpha.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/.jsii +1 -0
- package/.jsii.gz +0 -0
- package/.jsii.tabl.json.gz +0 -0
- package/.warnings.jsii.js +50 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +123 -0
- package/awslint.json +4 -0
- package/eslint-suppressions.json +2 -0
- package/jest.config.js +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/services/aws-amazonmq/.jsiirc.json +16 -0
- package/lib/services/aws-amazonmq/index.d.ts +1 -0
- package/lib/services/aws-amazonmq/index.js +17 -0
- package/lib/services/aws-amazonmq/metrics.generated.d.ts +141 -0
- package/lib/services/aws-amazonmq/metrics.generated.js +316 -0
- package/lib/services/aws-apigateway/.jsiirc.json +16 -0
- package/lib/services/aws-apigateway/index.d.ts +1 -0
- package/lib/services/aws-apigateway/index.js +17 -0
- package/lib/services/aws-apigateway/metrics.generated.d.ts +358 -0
- package/lib/services/aws-apigateway/metrics.generated.js +589 -0
- package/lib/services/aws-apigatewayv2/.jsiirc.json +16 -0
- package/lib/services/aws-apigatewayv2/index.d.ts +1 -0
- package/lib/services/aws-apigatewayv2/index.js +17 -0
- package/lib/services/aws-apigatewayv2/metrics.generated.d.ts +441 -0
- package/lib/services/aws-apigatewayv2/metrics.generated.js +779 -0
- package/lib/services/aws-appstream/.jsiirc.json +16 -0
- package/lib/services/aws-appstream/index.d.ts +1 -0
- package/lib/services/aws-appstream/index.js +17 -0
- package/lib/services/aws-appstream/metrics.generated.d.ts +255 -0
- package/lib/services/aws-appstream/metrics.generated.js +487 -0
- package/lib/services/aws-appsync/.jsiirc.json +16 -0
- package/lib/services/aws-appsync/index.d.ts +1 -0
- package/lib/services/aws-appsync/index.js +17 -0
- package/lib/services/aws-appsync/metrics.generated.d.ts +51 -0
- package/lib/services/aws-appsync/metrics.generated.js +106 -0
- package/lib/services/aws-autoscaling/.jsiirc.json +16 -0
- package/lib/services/aws-autoscaling/index.d.ts +1 -0
- package/lib/services/aws-autoscaling/index.js +17 -0
- package/lib/services/aws-autoscaling/metrics.generated.d.ts +86 -0
- package/lib/services/aws-autoscaling/metrics.generated.js +184 -0
- package/lib/services/aws-bedrock/.jsiirc.json +16 -0
- package/lib/services/aws-bedrock/index.d.ts +1 -0
- package/lib/services/aws-bedrock/index.js +17 -0
- package/lib/services/aws-bedrock/metrics.generated.d.ts +312 -0
- package/lib/services/aws-bedrock/metrics.generated.js +563 -0
- package/lib/services/aws-cloudfront/.jsiirc.json +16 -0
- package/lib/services/aws-cloudfront/index.d.ts +1 -0
- package/lib/services/aws-cloudfront/index.js +17 -0
- package/lib/services/aws-cloudfront/metrics.generated.d.ts +80 -0
- package/lib/services/aws-cloudfront/metrics.generated.js +157 -0
- package/lib/services/aws-cloudwatch/.jsiirc.json +16 -0
- package/lib/services/aws-cloudwatch/index.d.ts +1 -0
- package/lib/services/aws-cloudwatch/index.js +17 -0
- package/lib/services/aws-cloudwatch/metrics.generated.d.ts +56 -0
- package/lib/services/aws-cloudwatch/metrics.generated.js +114 -0
- package/lib/services/aws-codebuild/.jsiirc.json +16 -0
- package/lib/services/aws-codebuild/index.d.ts +1 -0
- package/lib/services/aws-codebuild/index.js +17 -0
- package/lib/services/aws-codebuild/metrics.generated.d.ts +62 -0
- package/lib/services/aws-codebuild/metrics.generated.js +128 -0
- package/lib/services/aws-codepipeline/.jsiirc.json +16 -0
- package/lib/services/aws-codepipeline/index.d.ts +1 -0
- package/lib/services/aws-codepipeline/index.js +17 -0
- package/lib/services/aws-codepipeline/metrics.generated.d.ts +27 -0
- package/lib/services/aws-codepipeline/metrics.generated.js +76 -0
- package/lib/services/aws-cognito/.jsiirc.json +16 -0
- package/lib/services/aws-cognito/index.d.ts +1 -0
- package/lib/services/aws-cognito/index.js +17 -0
- package/lib/services/aws-cognito/metrics.generated.d.ts +49 -0
- package/lib/services/aws-cognito/metrics.generated.js +93 -0
- package/lib/services/aws-datasync/.jsiirc.json +16 -0
- package/lib/services/aws-datasync/index.d.ts +1 -0
- package/lib/services/aws-datasync/index.js +17 -0
- package/lib/services/aws-datasync/metrics.generated.d.ts +138 -0
- package/lib/services/aws-datasync/metrics.generated.js +274 -0
- package/lib/services/aws-dax/.jsiirc.json +16 -0
- package/lib/services/aws-dax/index.d.ts +1 -0
- package/lib/services/aws-dax/index.js +17 -0
- package/lib/services/aws-dax/metrics.generated.d.ts +105 -0
- package/lib/services/aws-dax/metrics.generated.js +258 -0
- package/lib/services/aws-dms/.jsiirc.json +16 -0
- package/lib/services/aws-dms/index.d.ts +1 -0
- package/lib/services/aws-dms/index.js +17 -0
- package/lib/services/aws-dms/metrics.generated.d.ts +268 -0
- package/lib/services/aws-dms/metrics.generated.js +569 -0
- package/lib/services/aws-docdb/.jsiirc.json +16 -0
- package/lib/services/aws-docdb/index.d.ts +1 -0
- package/lib/services/aws-docdb/index.js +17 -0
- package/lib/services/aws-docdb/metrics.generated.d.ts +63 -0
- package/lib/services/aws-docdb/metrics.generated.js +134 -0
- package/lib/services/aws-dynamodb/.jsiirc.json +16 -0
- package/lib/services/aws-dynamodb/index.d.ts +1 -0
- package/lib/services/aws-dynamodb/index.js +17 -0
- package/lib/services/aws-dynamodb/metrics.generated.d.ts +444 -0
- package/lib/services/aws-dynamodb/metrics.generated.js +734 -0
- package/lib/services/aws-ec2/.jsiirc.json +16 -0
- package/lib/services/aws-ec2/index.d.ts +1 -0
- package/lib/services/aws-ec2/index.js +17 -0
- package/lib/services/aws-ec2/metrics.generated.d.ts +1226 -0
- package/lib/services/aws-ec2/metrics.generated.js +2434 -0
- package/lib/services/aws-ecs/.jsiirc.json +16 -0
- package/lib/services/aws-ecs/index.d.ts +1 -0
- package/lib/services/aws-ecs/index.js +17 -0
- package/lib/services/aws-ecs/metrics.generated.d.ts +105 -0
- package/lib/services/aws-ecs/metrics.generated.js +185 -0
- package/lib/services/aws-efs/.jsiirc.json +16 -0
- package/lib/services/aws-efs/index.d.ts +1 -0
- package/lib/services/aws-efs/index.js +17 -0
- package/lib/services/aws-efs/metrics.generated.d.ts +130 -0
- package/lib/services/aws-efs/metrics.generated.js +235 -0
- package/lib/services/aws-eks/.jsiirc.json +16 -0
- package/lib/services/aws-eks/index.d.ts +1 -0
- package/lib/services/aws-eks/index.js +17 -0
- package/lib/services/aws-eks/metrics.generated.d.ts +146 -0
- package/lib/services/aws-eks/metrics.generated.js +324 -0
- package/lib/services/aws-elasticache/.jsiirc.json +16 -0
- package/lib/services/aws-elasticache/index.d.ts +1 -0
- package/lib/services/aws-elasticache/index.js +17 -0
- package/lib/services/aws-elasticache/metrics.generated.d.ts +1729 -0
- package/lib/services/aws-elasticache/metrics.generated.js +3969 -0
- package/lib/services/aws-elasticbeanstalk/.jsiirc.json +16 -0
- package/lib/services/aws-elasticbeanstalk/index.d.ts +1 -0
- package/lib/services/aws-elasticbeanstalk/index.js +17 -0
- package/lib/services/aws-elasticbeanstalk/metrics.generated.d.ts +68 -0
- package/lib/services/aws-elasticbeanstalk/metrics.generated.js +142 -0
- package/lib/services/aws-elasticloadbalancing/.jsiirc.json +16 -0
- package/lib/services/aws-elasticloadbalancing/index.d.ts +1 -0
- package/lib/services/aws-elasticloadbalancing/index.js +17 -0
- package/lib/services/aws-elasticloadbalancing/metrics.generated.d.ts +231 -0
- package/lib/services/aws-elasticloadbalancing/metrics.generated.js +479 -0
- package/lib/services/aws-elasticloadbalancingv2/.jsiirc.json +16 -0
- package/lib/services/aws-elasticloadbalancingv2/index.d.ts +1 -0
- package/lib/services/aws-elasticloadbalancingv2/index.js +17 -0
- package/lib/services/aws-elasticloadbalancingv2/metrics.generated.d.ts +1110 -0
- package/lib/services/aws-elasticloadbalancingv2/metrics.generated.js +2168 -0
- package/lib/services/aws-emr/.jsiirc.json +16 -0
- package/lib/services/aws-emr/index.d.ts +1 -0
- package/lib/services/aws-emr/index.js +17 -0
- package/lib/services/aws-emr/metrics.generated.d.ts +333 -0
- package/lib/services/aws-emr/metrics.generated.js +764 -0
- package/lib/services/aws-events/.jsiirc.json +16 -0
- package/lib/services/aws-events/index.d.ts +1 -0
- package/lib/services/aws-events/index.js +17 -0
- package/lib/services/aws-events/metrics.generated.d.ts +75 -0
- package/lib/services/aws-events/metrics.generated.js +162 -0
- package/lib/services/aws-fsx/.jsiirc.json +16 -0
- package/lib/services/aws-fsx/index.d.ts +1 -0
- package/lib/services/aws-fsx/index.js +17 -0
- package/lib/services/aws-fsx/metrics.generated.d.ts +134 -0
- package/lib/services/aws-fsx/metrics.generated.js +296 -0
- package/lib/services/aws-gamelift/.jsiirc.json +16 -0
- package/lib/services/aws-gamelift/index.d.ts +1 -0
- package/lib/services/aws-gamelift/index.js +17 -0
- package/lib/services/aws-gamelift/metrics.generated.d.ts +80 -0
- package/lib/services/aws-gamelift/metrics.generated.js +170 -0
- package/lib/services/aws-iot/.jsiirc.json +16 -0
- package/lib/services/aws-iot/index.d.ts +1 -0
- package/lib/services/aws-iot/index.js +17 -0
- package/lib/services/aws-iot/metrics.generated.d.ts +62 -0
- package/lib/services/aws-iot/metrics.generated.js +128 -0
- package/lib/services/aws-kinesis/.jsiirc.json +16 -0
- package/lib/services/aws-kinesis/index.d.ts +1 -0
- package/lib/services/aws-kinesis/index.js +17 -0
- package/lib/services/aws-kinesis/metrics.generated.d.ts +110 -0
- package/lib/services/aws-kinesis/metrics.generated.js +240 -0
- package/lib/services/aws-kinesisanalytics/.jsiirc.json +16 -0
- package/lib/services/aws-kinesisanalytics/index.d.ts +1 -0
- package/lib/services/aws-kinesisanalytics/index.js +17 -0
- package/lib/services/aws-kinesisanalytics/metrics.generated.d.ts +39 -0
- package/lib/services/aws-kinesisanalytics/metrics.generated.js +78 -0
- package/lib/services/aws-kinesisfirehose/.jsiirc.json +16 -0
- package/lib/services/aws-kinesisfirehose/index.d.ts +1 -0
- package/lib/services/aws-kinesisfirehose/index.js +17 -0
- package/lib/services/aws-kinesisfirehose/metrics.generated.d.ts +182 -0
- package/lib/services/aws-kinesisfirehose/metrics.generated.js +408 -0
- package/lib/services/aws-kinesisvideo/.jsiirc.json +16 -0
- package/lib/services/aws-kinesisvideo/index.d.ts +1 -0
- package/lib/services/aws-kinesisvideo/index.js +17 -0
- package/lib/services/aws-kinesisvideo/metrics.generated.d.ts +86 -0
- package/lib/services/aws-kinesisvideo/metrics.generated.js +184 -0
- package/lib/services/aws-kms/.jsiirc.json +16 -0
- package/lib/services/aws-kms/index.d.ts +1 -0
- package/lib/services/aws-kms/index.js +17 -0
- package/lib/services/aws-kms/metrics.generated.d.ts +44 -0
- package/lib/services/aws-kms/metrics.generated.js +86 -0
- package/lib/services/aws-lambda/.jsiirc.json +16 -0
- package/lib/services/aws-lambda/index.d.ts +1 -0
- package/lib/services/aws-lambda/index.js +17 -0
- package/lib/services/aws-lambda/metrics.generated.d.ts +395 -0
- package/lib/services/aws-lambda/metrics.generated.js +801 -0
- package/lib/services/aws-lex/.jsiirc.json +16 -0
- package/lib/services/aws-lex/index.d.ts +1 -0
- package/lib/services/aws-lex/index.js +17 -0
- package/lib/services/aws-lex/metrics.generated.d.ts +95 -0
- package/lib/services/aws-lex/metrics.generated.js +192 -0
- package/lib/services/aws-logs/.jsiirc.json +16 -0
- package/lib/services/aws-logs/index.d.ts +1 -0
- package/lib/services/aws-logs/index.js +17 -0
- package/lib/services/aws-logs/metrics.generated.d.ts +110 -0
- package/lib/services/aws-logs/metrics.generated.js +240 -0
- package/lib/services/aws-mediaconvert/.jsiirc.json +16 -0
- package/lib/services/aws-mediaconvert/index.d.ts +1 -0
- package/lib/services/aws-mediaconvert/index.js +17 -0
- package/lib/services/aws-mediaconvert/metrics.generated.d.ts +87 -0
- package/lib/services/aws-mediaconvert/metrics.generated.js +190 -0
- package/lib/services/aws-medialive/.jsiirc.json +16 -0
- package/lib/services/aws-medialive/index.d.ts +1 -0
- package/lib/services/aws-medialive/index.js +17 -0
- package/lib/services/aws-medialive/metrics.generated.d.ts +121 -0
- package/lib/services/aws-medialive/metrics.generated.js +261 -0
- package/lib/services/aws-mediapackage/.jsiirc.json +16 -0
- package/lib/services/aws-mediapackage/index.d.ts +1 -0
- package/lib/services/aws-mediapackage/index.js +17 -0
- package/lib/services/aws-mediapackage/metrics.generated.d.ts +51 -0
- package/lib/services/aws-mediapackage/metrics.generated.js +106 -0
- package/lib/services/aws-mediastore/.jsiirc.json +16 -0
- package/lib/services/aws-mediastore/index.d.ts +1 -0
- package/lib/services/aws-mediastore/index.js +17 -0
- package/lib/services/aws-mediastore/metrics.generated.d.ts +79 -0
- package/lib/services/aws-mediastore/metrics.generated.js +163 -0
- package/lib/services/aws-memorydb/.jsiirc.json +16 -0
- package/lib/services/aws-memorydb/index.d.ts +1 -0
- package/lib/services/aws-memorydb/index.js +17 -0
- package/lib/services/aws-memorydb/metrics.generated.d.ts +236 -0
- package/lib/services/aws-memorydb/metrics.generated.js +534 -0
- package/lib/services/aws-neptune/.jsiirc.json +16 -0
- package/lib/services/aws-neptune/index.d.ts +1 -0
- package/lib/services/aws-neptune/index.js +17 -0
- package/lib/services/aws-neptune/metrics.generated.d.ts +116 -0
- package/lib/services/aws-neptune/metrics.generated.js +254 -0
- package/lib/services/aws-opsworks/.jsiirc.json +16 -0
- package/lib/services/aws-opsworks/index.d.ts +1 -0
- package/lib/services/aws-opsworks/index.js +17 -0
- package/lib/services/aws-opsworks/metrics.generated.d.ts +376 -0
- package/lib/services/aws-opsworks/metrics.generated.js +788 -0
- package/lib/services/aws-qldb/.jsiirc.json +16 -0
- package/lib/services/aws-qldb/index.d.ts +1 -0
- package/lib/services/aws-qldb/index.js +17 -0
- package/lib/services/aws-qldb/metrics.generated.d.ts +93 -0
- package/lib/services/aws-qldb/metrics.generated.js +204 -0
- package/lib/services/aws-quicksight/.jsiirc.json +16 -0
- package/lib/services/aws-quicksight/index.d.ts +1 -0
- package/lib/services/aws-quicksight/index.js +17 -0
- package/lib/services/aws-quicksight/metrics.generated.d.ts +217 -0
- package/lib/services/aws-quicksight/metrics.generated.js +394 -0
- package/lib/services/aws-rds/.jsiirc.json +16 -0
- package/lib/services/aws-rds/index.d.ts +1 -0
- package/lib/services/aws-rds/index.js +17 -0
- package/lib/services/aws-rds/metrics.generated.d.ts +189 -0
- package/lib/services/aws-rds/metrics.generated.js +388 -0
- package/lib/services/aws-redshift/.jsiirc.json +16 -0
- package/lib/services/aws-redshift/index.d.ts +1 -0
- package/lib/services/aws-redshift/index.js +17 -0
- package/lib/services/aws-redshift/metrics.generated.d.ts +594 -0
- package/lib/services/aws-redshift/metrics.generated.js +911 -0
- package/lib/services/aws-route53/.jsiirc.json +16 -0
- package/lib/services/aws-route53/index.d.ts +1 -0
- package/lib/services/aws-route53/index.js +17 -0
- package/lib/services/aws-route53/metrics.generated.d.ts +74 -0
- package/lib/services/aws-route53/metrics.generated.js +156 -0
- package/lib/services/aws-route53resolver/.jsiirc.json +16 -0
- package/lib/services/aws-route53resolver/index.d.ts +1 -0
- package/lib/services/aws-route53resolver/index.js +17 -0
- package/lib/services/aws-route53resolver/metrics.generated.d.ts +51 -0
- package/lib/services/aws-route53resolver/metrics.generated.js +106 -0
- package/lib/services/aws-s3/.jsiirc.json +16 -0
- package/lib/services/aws-s3/index.d.ts +1 -0
- package/lib/services/aws-s3/index.js +17 -0
- package/lib/services/aws-s3/metrics.generated.d.ts +58 -0
- package/lib/services/aws-s3/metrics.generated.js +103 -0
- package/lib/services/aws-sagemaker/.jsiirc.json +16 -0
- package/lib/services/aws-sagemaker/index.d.ts +1 -0
- package/lib/services/aws-sagemaker/index.js +17 -0
- package/lib/services/aws-sagemaker/metrics.generated.d.ts +73 -0
- package/lib/services/aws-sagemaker/metrics.generated.js +149 -0
- package/lib/services/aws-servicecatalog/.jsiirc.json +16 -0
- package/lib/services/aws-servicecatalog/index.d.ts +1 -0
- package/lib/services/aws-servicecatalog/index.js +17 -0
- package/lib/services/aws-servicecatalog/metrics.generated.d.ts +39 -0
- package/lib/services/aws-servicecatalog/metrics.generated.js +78 -0
- package/lib/services/aws-ses/.jsiirc.json +16 -0
- package/lib/services/aws-ses/index.d.ts +1 -0
- package/lib/services/aws-ses/index.js +17 -0
- package/lib/services/aws-ses/metrics.generated.d.ts +162 -0
- package/lib/services/aws-ses/metrics.generated.js +356 -0
- package/lib/services/aws-sns/.jsiirc.json +16 -0
- package/lib/services/aws-sns/index.d.ts +1 -0
- package/lib/services/aws-sns/index.js +17 -0
- package/lib/services/aws-sns/metrics.generated.d.ts +130 -0
- package/lib/services/aws-sns/metrics.generated.js +203 -0
- package/lib/services/aws-sqs/.jsiirc.json +16 -0
- package/lib/services/aws-sqs/index.d.ts +1 -0
- package/lib/services/aws-sqs/index.js +17 -0
- package/lib/services/aws-sqs/metrics.generated.d.ts +87 -0
- package/lib/services/aws-sqs/metrics.generated.js +190 -0
- package/lib/services/aws-stepfunctions/.jsiirc.json +16 -0
- package/lib/services/aws-stepfunctions/index.d.ts +1 -0
- package/lib/services/aws-stepfunctions/index.js +17 -0
- package/lib/services/aws-stepfunctions/metrics.generated.d.ts +159 -0
- package/lib/services/aws-stepfunctions/metrics.generated.js +318 -0
- package/lib/services/aws-synthetics/.jsiirc.json +16 -0
- package/lib/services/aws-synthetics/index.d.ts +1 -0
- package/lib/services/aws-synthetics/index.js +17 -0
- package/lib/services/aws-synthetics/metrics.generated.d.ts +80 -0
- package/lib/services/aws-synthetics/metrics.generated.js +170 -0
- package/lib/services/aws-timestream/.jsiirc.json +16 -0
- package/lib/services/aws-timestream/index.d.ts +1 -0
- package/lib/services/aws-timestream/index.js +17 -0
- package/lib/services/aws-timestream/metrics.generated.d.ts +54 -0
- package/lib/services/aws-timestream/metrics.generated.js +88 -0
- package/lib/services/aws-transfer/.jsiirc.json +16 -0
- package/lib/services/aws-transfer/index.d.ts +1 -0
- package/lib/services/aws-transfer/index.js +17 -0
- package/lib/services/aws-transfer/metrics.generated.d.ts +45 -0
- package/lib/services/aws-transfer/metrics.generated.js +92 -0
- package/lib/services/aws-workspaces/.jsiirc.json +16 -0
- package/lib/services/aws-workspaces/index.d.ts +1 -0
- package/lib/services/aws-workspaces/index.js +17 -0
- package/lib/services/aws-workspaces/metrics.generated.d.ts +836 -0
- package/lib/services/aws-workspaces/metrics.generated.js +1724 -0
- package/lib/services/index.d.ts +62 -0
- package/lib/services/index.js +99 -0
- package/package.json +189 -0
- package/rosetta/_generated.ts-fixture +6 -0
- package/rosetta/default.ts-fixture +5 -0
- package/scripts/config.d.ts +6 -0
- package/scripts/config.js +9 -0
- package/scripts/gen.d.ts +1 -0
- package/scripts/gen.js +133 -0
|
@@ -0,0 +1,734 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.DynamoDBMetrics = void 0;
|
|
37
|
+
/* eslint-disable @stylistic/max-len, eol-last */
|
|
38
|
+
const cloudwatch = __importStar(require("aws-cdk-lib/aws-cloudwatch"));
|
|
39
|
+
/**
|
|
40
|
+
* CloudWatch metrics facade for AWS/DynamoDB
|
|
41
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
42
|
+
* for selected resources if available.
|
|
43
|
+
*
|
|
44
|
+
* @stability external
|
|
45
|
+
*/
|
|
46
|
+
class DynamoDBMetrics {
|
|
47
|
+
/**
|
|
48
|
+
* Create TableMetrics from a Table reference
|
|
49
|
+
*/
|
|
50
|
+
static fromTable(ref) {
|
|
51
|
+
return new DynamoDBMetrics.TableMetrics({
|
|
52
|
+
tableName: ref.tableRef.tableName
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.DynamoDBMetrics = DynamoDBMetrics;
|
|
57
|
+
(function (DynamoDBMetrics) {
|
|
58
|
+
/**
|
|
59
|
+
* Metrics for dimension set: Table {TableName}
|
|
60
|
+
*
|
|
61
|
+
* @stability external
|
|
62
|
+
*/
|
|
63
|
+
class TableMetrics {
|
|
64
|
+
dimensions;
|
|
65
|
+
constructor(props) {
|
|
66
|
+
this.dimensions = {
|
|
67
|
+
TableName: props.tableName
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Sum of the ConditionalCheckFailedRequests metric
|
|
72
|
+
*
|
|
73
|
+
* @default - Sum over 5 minutes
|
|
74
|
+
*/
|
|
75
|
+
conditionalCheckFailedRequests(options) {
|
|
76
|
+
return new cloudwatch.Metric({
|
|
77
|
+
namespace: "AWS/DynamoDB",
|
|
78
|
+
metricName: "ConditionalCheckFailedRequests",
|
|
79
|
+
dimensionsMap: this.dimensions,
|
|
80
|
+
statistic: "Sum",
|
|
81
|
+
...options
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Sum of the ConsumedReadCapacityUnits metric
|
|
86
|
+
*
|
|
87
|
+
* @default - Sum over 5 minutes
|
|
88
|
+
*/
|
|
89
|
+
consumedReadCapacityUnits(options) {
|
|
90
|
+
return new cloudwatch.Metric({
|
|
91
|
+
namespace: "AWS/DynamoDB",
|
|
92
|
+
metricName: "ConsumedReadCapacityUnits",
|
|
93
|
+
dimensionsMap: this.dimensions,
|
|
94
|
+
statistic: "Sum",
|
|
95
|
+
...options
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Sum of the ConsumedWriteCapacityUnits metric
|
|
100
|
+
*
|
|
101
|
+
* @default - Sum over 5 minutes
|
|
102
|
+
*/
|
|
103
|
+
consumedWriteCapacityUnits(options) {
|
|
104
|
+
return new cloudwatch.Metric({
|
|
105
|
+
namespace: "AWS/DynamoDB",
|
|
106
|
+
metricName: "ConsumedWriteCapacityUnits",
|
|
107
|
+
dimensionsMap: this.dimensions,
|
|
108
|
+
statistic: "Sum",
|
|
109
|
+
...options
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Average of the ProvisionedReadCapacityUnits metric
|
|
114
|
+
*
|
|
115
|
+
* @default - Average over 5 minutes
|
|
116
|
+
*/
|
|
117
|
+
provisionedReadCapacityUnits(options) {
|
|
118
|
+
return new cloudwatch.Metric({
|
|
119
|
+
namespace: "AWS/DynamoDB",
|
|
120
|
+
metricName: "ProvisionedReadCapacityUnits",
|
|
121
|
+
dimensionsMap: this.dimensions,
|
|
122
|
+
statistic: "Average",
|
|
123
|
+
...options
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Average of the ProvisionedWriteCapacityUnits metric
|
|
128
|
+
*
|
|
129
|
+
* @default - Average over 5 minutes
|
|
130
|
+
*/
|
|
131
|
+
provisionedWriteCapacityUnits(options) {
|
|
132
|
+
return new cloudwatch.Metric({
|
|
133
|
+
namespace: "AWS/DynamoDB",
|
|
134
|
+
metricName: "ProvisionedWriteCapacityUnits",
|
|
135
|
+
dimensionsMap: this.dimensions,
|
|
136
|
+
statistic: "Average",
|
|
137
|
+
...options
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Sum of the ReadThrottleEvents metric
|
|
142
|
+
*
|
|
143
|
+
* @default - Sum over 5 minutes
|
|
144
|
+
*/
|
|
145
|
+
readThrottleEvents(options) {
|
|
146
|
+
return new cloudwatch.Metric({
|
|
147
|
+
namespace: "AWS/DynamoDB",
|
|
148
|
+
metricName: "ReadThrottleEvents",
|
|
149
|
+
dimensionsMap: this.dimensions,
|
|
150
|
+
statistic: "Sum",
|
|
151
|
+
...options
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Sum of the TimeToLiveDeletedItemCount metric
|
|
156
|
+
*
|
|
157
|
+
* @default - Sum over 5 minutes
|
|
158
|
+
*/
|
|
159
|
+
timeToLiveDeletedItemCount(options) {
|
|
160
|
+
return new cloudwatch.Metric({
|
|
161
|
+
namespace: "AWS/DynamoDB",
|
|
162
|
+
metricName: "TimeToLiveDeletedItemCount",
|
|
163
|
+
dimensionsMap: this.dimensions,
|
|
164
|
+
statistic: "Sum",
|
|
165
|
+
...options
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Average of the TransactionConflict metric
|
|
170
|
+
*
|
|
171
|
+
* @default - Average over 5 minutes
|
|
172
|
+
*/
|
|
173
|
+
transactionConflict(options) {
|
|
174
|
+
return new cloudwatch.Metric({
|
|
175
|
+
namespace: "AWS/DynamoDB",
|
|
176
|
+
metricName: "TransactionConflict",
|
|
177
|
+
dimensionsMap: this.dimensions,
|
|
178
|
+
statistic: "Average",
|
|
179
|
+
...options
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Sum of the WriteThrottleEvents metric
|
|
184
|
+
*
|
|
185
|
+
* @default - Sum over 5 minutes
|
|
186
|
+
*/
|
|
187
|
+
writeThrottleEvents(options) {
|
|
188
|
+
return new cloudwatch.Metric({
|
|
189
|
+
namespace: "AWS/DynamoDB",
|
|
190
|
+
metricName: "WriteThrottleEvents",
|
|
191
|
+
dimensionsMap: this.dimensions,
|
|
192
|
+
statistic: "Sum",
|
|
193
|
+
...options
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
DynamoDBMetrics.TableMetrics = TableMetrics;
|
|
198
|
+
/**
|
|
199
|
+
* Metrics for dimension set: GlobalSecondaryIndex {TableName, GlobalSecondaryIndexName}
|
|
200
|
+
*
|
|
201
|
+
* @stability external
|
|
202
|
+
*/
|
|
203
|
+
class GlobalSecondaryIndexMetrics {
|
|
204
|
+
dimensions;
|
|
205
|
+
constructor(props) {
|
|
206
|
+
this.dimensions = {
|
|
207
|
+
TableName: props.tableName,
|
|
208
|
+
GlobalSecondaryIndexName: props.globalSecondaryIndexName
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Sum of the ConsumedReadCapacityUnits metric
|
|
213
|
+
*
|
|
214
|
+
* @default - Sum over 5 minutes
|
|
215
|
+
*/
|
|
216
|
+
consumedReadCapacityUnits(options) {
|
|
217
|
+
return new cloudwatch.Metric({
|
|
218
|
+
namespace: "AWS/DynamoDB",
|
|
219
|
+
metricName: "ConsumedReadCapacityUnits",
|
|
220
|
+
dimensionsMap: this.dimensions,
|
|
221
|
+
statistic: "Sum",
|
|
222
|
+
...options
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Sum of the ConsumedWriteCapacityUnits metric
|
|
227
|
+
*
|
|
228
|
+
* @default - Sum over 5 minutes
|
|
229
|
+
*/
|
|
230
|
+
consumedWriteCapacityUnits(options) {
|
|
231
|
+
return new cloudwatch.Metric({
|
|
232
|
+
namespace: "AWS/DynamoDB",
|
|
233
|
+
metricName: "ConsumedWriteCapacityUnits",
|
|
234
|
+
dimensionsMap: this.dimensions,
|
|
235
|
+
statistic: "Sum",
|
|
236
|
+
...options
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Average of the ProvisionedReadCapacityUnits metric
|
|
241
|
+
*
|
|
242
|
+
* @default - Average over 5 minutes
|
|
243
|
+
*/
|
|
244
|
+
provisionedReadCapacityUnits(options) {
|
|
245
|
+
return new cloudwatch.Metric({
|
|
246
|
+
namespace: "AWS/DynamoDB",
|
|
247
|
+
metricName: "ProvisionedReadCapacityUnits",
|
|
248
|
+
dimensionsMap: this.dimensions,
|
|
249
|
+
statistic: "Average",
|
|
250
|
+
...options
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Average of the ProvisionedWriteCapacityUnits metric
|
|
255
|
+
*
|
|
256
|
+
* @default - Average over 5 minutes
|
|
257
|
+
*/
|
|
258
|
+
provisionedWriteCapacityUnits(options) {
|
|
259
|
+
return new cloudwatch.Metric({
|
|
260
|
+
namespace: "AWS/DynamoDB",
|
|
261
|
+
metricName: "ProvisionedWriteCapacityUnits",
|
|
262
|
+
dimensionsMap: this.dimensions,
|
|
263
|
+
statistic: "Average",
|
|
264
|
+
...options
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Sum of the ReadThrottleEvents metric
|
|
269
|
+
*
|
|
270
|
+
* @default - Sum over 5 minutes
|
|
271
|
+
*/
|
|
272
|
+
readThrottleEvents(options) {
|
|
273
|
+
return new cloudwatch.Metric({
|
|
274
|
+
namespace: "AWS/DynamoDB",
|
|
275
|
+
metricName: "ReadThrottleEvents",
|
|
276
|
+
dimensionsMap: this.dimensions,
|
|
277
|
+
statistic: "Sum",
|
|
278
|
+
...options
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Sum of the WriteThrottleEvents metric
|
|
283
|
+
*
|
|
284
|
+
* @default - Sum over 5 minutes
|
|
285
|
+
*/
|
|
286
|
+
writeThrottleEvents(options) {
|
|
287
|
+
return new cloudwatch.Metric({
|
|
288
|
+
namespace: "AWS/DynamoDB",
|
|
289
|
+
metricName: "WriteThrottleEvents",
|
|
290
|
+
dimensionsMap: this.dimensions,
|
|
291
|
+
statistic: "Sum",
|
|
292
|
+
...options
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Sum of the OnlineIndexConsumedWriteCapacity metric
|
|
297
|
+
*
|
|
298
|
+
* @default - Sum over 5 minutes
|
|
299
|
+
*/
|
|
300
|
+
onlineIndexConsumedWriteCapacity(options) {
|
|
301
|
+
return new cloudwatch.Metric({
|
|
302
|
+
namespace: "AWS/DynamoDB",
|
|
303
|
+
metricName: "OnlineIndexConsumedWriteCapacity",
|
|
304
|
+
dimensionsMap: this.dimensions,
|
|
305
|
+
statistic: "Sum",
|
|
306
|
+
...options
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Average of the OnlineIndexPercentageProgress metric
|
|
311
|
+
*
|
|
312
|
+
* @default - Average over 5 minutes
|
|
313
|
+
*/
|
|
314
|
+
onlineIndexPercentageProgress(options) {
|
|
315
|
+
return new cloudwatch.Metric({
|
|
316
|
+
namespace: "AWS/DynamoDB",
|
|
317
|
+
metricName: "OnlineIndexPercentageProgress",
|
|
318
|
+
dimensionsMap: this.dimensions,
|
|
319
|
+
statistic: "Average",
|
|
320
|
+
...options
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Sum of the OnlineIndexThrottleEvents metric
|
|
325
|
+
*
|
|
326
|
+
* @default - Sum over 5 minutes
|
|
327
|
+
*/
|
|
328
|
+
onlineIndexThrottleEvents(options) {
|
|
329
|
+
return new cloudwatch.Metric({
|
|
330
|
+
namespace: "AWS/DynamoDB",
|
|
331
|
+
metricName: "OnlineIndexThrottleEvents",
|
|
332
|
+
dimensionsMap: this.dimensions,
|
|
333
|
+
statistic: "Sum",
|
|
334
|
+
...options
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
DynamoDBMetrics.GlobalSecondaryIndexMetrics = GlobalSecondaryIndexMetrics;
|
|
339
|
+
/**
|
|
340
|
+
* Known values for the GlobalSecondaryIndexName dimension
|
|
341
|
+
*/
|
|
342
|
+
let GlobalSecondaryIndexMetricsGlobalSecondaryIndexName;
|
|
343
|
+
(function (GlobalSecondaryIndexMetricsGlobalSecondaryIndexName) {
|
|
344
|
+
/** GlobalSecondaryIndexName = GlobalSecondaryIndexName */
|
|
345
|
+
GlobalSecondaryIndexMetricsGlobalSecondaryIndexName["GLOBAL_SECONDARY_INDEX_NAME"] = "GlobalSecondaryIndexName";
|
|
346
|
+
})(GlobalSecondaryIndexMetricsGlobalSecondaryIndexName = DynamoDBMetrics.GlobalSecondaryIndexMetricsGlobalSecondaryIndexName || (DynamoDBMetrics.GlobalSecondaryIndexMetricsGlobalSecondaryIndexName = {}));
|
|
347
|
+
/**
|
|
348
|
+
* Metrics for dimension set: Operation {TableName, Operation}
|
|
349
|
+
*
|
|
350
|
+
* @stability external
|
|
351
|
+
*/
|
|
352
|
+
class OperationMetrics {
|
|
353
|
+
dimensions;
|
|
354
|
+
constructor(props) {
|
|
355
|
+
this.dimensions = {
|
|
356
|
+
TableName: props.tableName,
|
|
357
|
+
Operation: props.operation
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Sum of the ReturnedItemCount metric
|
|
362
|
+
*
|
|
363
|
+
* @default - Sum over 5 minutes
|
|
364
|
+
*/
|
|
365
|
+
returnedItemCount(options) {
|
|
366
|
+
return new cloudwatch.Metric({
|
|
367
|
+
namespace: "AWS/DynamoDB",
|
|
368
|
+
metricName: "ReturnedItemCount",
|
|
369
|
+
dimensionsMap: this.dimensions,
|
|
370
|
+
statistic: "Sum",
|
|
371
|
+
...options
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Average of the SuccessfulRequestLatency metric
|
|
376
|
+
*
|
|
377
|
+
* @default - Average over 5 minutes
|
|
378
|
+
*/
|
|
379
|
+
successfulRequestLatency(options) {
|
|
380
|
+
return new cloudwatch.Metric({
|
|
381
|
+
namespace: "AWS/DynamoDB",
|
|
382
|
+
metricName: "SuccessfulRequestLatency",
|
|
383
|
+
dimensionsMap: this.dimensions,
|
|
384
|
+
statistic: "Average",
|
|
385
|
+
...options
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Sum of the SystemErrors metric
|
|
390
|
+
*
|
|
391
|
+
* @default - Sum over 5 minutes
|
|
392
|
+
*/
|
|
393
|
+
systemErrors(options) {
|
|
394
|
+
return new cloudwatch.Metric({
|
|
395
|
+
namespace: "AWS/DynamoDB",
|
|
396
|
+
metricName: "SystemErrors",
|
|
397
|
+
dimensionsMap: this.dimensions,
|
|
398
|
+
statistic: "Sum",
|
|
399
|
+
...options
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Sum of the ThrottledRequests metric
|
|
404
|
+
*
|
|
405
|
+
* @default - Sum over 5 minutes
|
|
406
|
+
*/
|
|
407
|
+
throttledRequests(options) {
|
|
408
|
+
return new cloudwatch.Metric({
|
|
409
|
+
namespace: "AWS/DynamoDB",
|
|
410
|
+
metricName: "ThrottledRequests",
|
|
411
|
+
dimensionsMap: this.dimensions,
|
|
412
|
+
statistic: "Sum",
|
|
413
|
+
...options
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
DynamoDBMetrics.OperationMetrics = OperationMetrics;
|
|
418
|
+
/**
|
|
419
|
+
* Known values for the Operation dimension
|
|
420
|
+
*/
|
|
421
|
+
let OperationMetricsOperation;
|
|
422
|
+
(function (OperationMetricsOperation) {
|
|
423
|
+
/** Operation = GetItem */
|
|
424
|
+
OperationMetricsOperation["GET_ITEM"] = "GetItem";
|
|
425
|
+
/** Operation = PutItem */
|
|
426
|
+
OperationMetricsOperation["PUT_ITEM"] = "PutItem";
|
|
427
|
+
/** Operation = Scan */
|
|
428
|
+
OperationMetricsOperation["SCAN"] = "Scan";
|
|
429
|
+
/** Operation = BatchExecuteStatement */
|
|
430
|
+
OperationMetricsOperation["BATCH_EXECUTE_STATEMENT"] = "BatchExecuteStatement";
|
|
431
|
+
/** Operation = BatchGetItem */
|
|
432
|
+
OperationMetricsOperation["BATCH_GET_ITEM"] = "BatchGetItem";
|
|
433
|
+
/** Operation = BatchWriteItem */
|
|
434
|
+
OperationMetricsOperation["BATCH_WRITE_ITEM"] = "BatchWriteItem";
|
|
435
|
+
/** Operation = DeleteItem */
|
|
436
|
+
OperationMetricsOperation["DELETE_ITEM"] = "DeleteItem";
|
|
437
|
+
/** Operation = ExecuteStatement */
|
|
438
|
+
OperationMetricsOperation["EXECUTE_STATEMENT"] = "ExecuteStatement";
|
|
439
|
+
/** Operation = ExecuteTransaction */
|
|
440
|
+
OperationMetricsOperation["EXECUTE_TRANSACTION"] = "ExecuteTransaction";
|
|
441
|
+
/** Operation = Query */
|
|
442
|
+
OperationMetricsOperation["QUERY"] = "Query";
|
|
443
|
+
/** Operation = TransactGetItems */
|
|
444
|
+
OperationMetricsOperation["TRANSACT_GET_ITEMS"] = "TransactGetItems";
|
|
445
|
+
/** Operation = TransactWriteItems */
|
|
446
|
+
OperationMetricsOperation["TRANSACT_WRITE_ITEMS"] = "TransactWriteItems";
|
|
447
|
+
/** Operation = UpdateItem */
|
|
448
|
+
OperationMetricsOperation["UPDATE_ITEM"] = "UpdateItem";
|
|
449
|
+
/** Operation = GetRecords */
|
|
450
|
+
OperationMetricsOperation["GET_RECORDS"] = "GetRecords";
|
|
451
|
+
})(OperationMetricsOperation = DynamoDBMetrics.OperationMetricsOperation || (DynamoDBMetrics.OperationMetricsOperation = {}));
|
|
452
|
+
/**
|
|
453
|
+
* Metrics for dimension set: DelegatedOperation {TableName, DelegatedOperation}
|
|
454
|
+
*
|
|
455
|
+
* @stability external
|
|
456
|
+
*/
|
|
457
|
+
class DelegatedOperationMetrics {
|
|
458
|
+
dimensions;
|
|
459
|
+
constructor(props) {
|
|
460
|
+
this.dimensions = {
|
|
461
|
+
TableName: props.tableName,
|
|
462
|
+
DelegatedOperation: props.delegatedOperation
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Average of the AgeOfOldestUnreplicatedRecord metric
|
|
467
|
+
*
|
|
468
|
+
* @default - Average over 5 minutes
|
|
469
|
+
*/
|
|
470
|
+
ageOfOldestUnreplicatedRecord(options) {
|
|
471
|
+
return new cloudwatch.Metric({
|
|
472
|
+
namespace: "AWS/DynamoDB",
|
|
473
|
+
metricName: "AgeOfOldestUnreplicatedRecord",
|
|
474
|
+
dimensionsMap: this.dimensions,
|
|
475
|
+
statistic: "Average",
|
|
476
|
+
...options
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Average of the ConsumedChangeDataCaptureUnits metric
|
|
481
|
+
*
|
|
482
|
+
* @default - Average over 5 minutes
|
|
483
|
+
*/
|
|
484
|
+
consumedChangeDataCaptureUnits(options) {
|
|
485
|
+
return new cloudwatch.Metric({
|
|
486
|
+
namespace: "AWS/DynamoDB",
|
|
487
|
+
metricName: "ConsumedChangeDataCaptureUnits",
|
|
488
|
+
dimensionsMap: this.dimensions,
|
|
489
|
+
statistic: "Average",
|
|
490
|
+
...options
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Average of the ThrottledPutRecordCount metric
|
|
495
|
+
*
|
|
496
|
+
* @default - Average over 5 minutes
|
|
497
|
+
*/
|
|
498
|
+
throttledPutRecordCount(options) {
|
|
499
|
+
return new cloudwatch.Metric({
|
|
500
|
+
namespace: "AWS/DynamoDB",
|
|
501
|
+
metricName: "ThrottledPutRecordCount",
|
|
502
|
+
dimensionsMap: this.dimensions,
|
|
503
|
+
statistic: "Average",
|
|
504
|
+
...options
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
DynamoDBMetrics.DelegatedOperationMetrics = DelegatedOperationMetrics;
|
|
509
|
+
/**
|
|
510
|
+
* Metrics for dimension set: ReceivingRegion {TableName, ReceivingRegion}
|
|
511
|
+
*
|
|
512
|
+
* @stability external
|
|
513
|
+
*/
|
|
514
|
+
class ReceivingRegionMetrics {
|
|
515
|
+
dimensions;
|
|
516
|
+
constructor(props) {
|
|
517
|
+
this.dimensions = {
|
|
518
|
+
TableName: props.tableName,
|
|
519
|
+
ReceivingRegion: props.receivingRegion
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Average of the PendingReplicationCount metric
|
|
524
|
+
*
|
|
525
|
+
* @default - Average over 5 minutes
|
|
526
|
+
*/
|
|
527
|
+
pendingReplicationCount(options) {
|
|
528
|
+
return new cloudwatch.Metric({
|
|
529
|
+
namespace: "AWS/DynamoDB",
|
|
530
|
+
metricName: "PendingReplicationCount",
|
|
531
|
+
dimensionsMap: this.dimensions,
|
|
532
|
+
statistic: "Average",
|
|
533
|
+
...options
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Average of the ReplicationLatency metric
|
|
538
|
+
*
|
|
539
|
+
* @default - Average over 5 minutes
|
|
540
|
+
*/
|
|
541
|
+
replicationLatency(options) {
|
|
542
|
+
return new cloudwatch.Metric({
|
|
543
|
+
namespace: "AWS/DynamoDB",
|
|
544
|
+
metricName: "ReplicationLatency",
|
|
545
|
+
dimensionsMap: this.dimensions,
|
|
546
|
+
statistic: "Average",
|
|
547
|
+
...options
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
DynamoDBMetrics.ReceivingRegionMetrics = ReceivingRegionMetrics;
|
|
552
|
+
/**
|
|
553
|
+
* Metrics for dimension set: OperationPerStream {TableName, StreamLabel, Operation}
|
|
554
|
+
*
|
|
555
|
+
* @stability external
|
|
556
|
+
*/
|
|
557
|
+
class OperationPerStreamMetrics {
|
|
558
|
+
dimensions;
|
|
559
|
+
constructor(props) {
|
|
560
|
+
this.dimensions = {
|
|
561
|
+
TableName: props.tableName,
|
|
562
|
+
StreamLabel: props.streamLabel,
|
|
563
|
+
Operation: props.operation
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Average of the ReturnedBytes metric
|
|
568
|
+
*
|
|
569
|
+
* @default - Average over 5 minutes
|
|
570
|
+
*/
|
|
571
|
+
returnedBytes(options) {
|
|
572
|
+
return new cloudwatch.Metric({
|
|
573
|
+
namespace: "AWS/DynamoDB",
|
|
574
|
+
metricName: "ReturnedBytes",
|
|
575
|
+
dimensionsMap: this.dimensions,
|
|
576
|
+
statistic: "Average",
|
|
577
|
+
...options
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Average of the ReturnedRecordsCount metric
|
|
582
|
+
*
|
|
583
|
+
* @default - Average over 5 minutes
|
|
584
|
+
*/
|
|
585
|
+
returnedRecordsCount(options) {
|
|
586
|
+
return new cloudwatch.Metric({
|
|
587
|
+
namespace: "AWS/DynamoDB",
|
|
588
|
+
metricName: "ReturnedRecordsCount",
|
|
589
|
+
dimensionsMap: this.dimensions,
|
|
590
|
+
statistic: "Average",
|
|
591
|
+
...options
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
DynamoDBMetrics.OperationPerStreamMetrics = OperationPerStreamMetrics;
|
|
596
|
+
/**
|
|
597
|
+
* Metrics for dimension set: Account {no dimensions}
|
|
598
|
+
*
|
|
599
|
+
* @stability external
|
|
600
|
+
*/
|
|
601
|
+
class AccountMetrics {
|
|
602
|
+
dimensions;
|
|
603
|
+
constructor() {
|
|
604
|
+
this.dimensions = {};
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Maximum of the AccountMaxReads metric
|
|
608
|
+
*
|
|
609
|
+
* @default - Maximum over 5 minutes
|
|
610
|
+
*/
|
|
611
|
+
accountMaxReads(options) {
|
|
612
|
+
return new cloudwatch.Metric({
|
|
613
|
+
namespace: "AWS/DynamoDB",
|
|
614
|
+
metricName: "AccountMaxReads",
|
|
615
|
+
dimensionsMap: this.dimensions,
|
|
616
|
+
statistic: "Maximum",
|
|
617
|
+
...options
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Maximum of the AccountMaxTableLevelReads metric
|
|
622
|
+
*
|
|
623
|
+
* @default - Maximum over 5 minutes
|
|
624
|
+
*/
|
|
625
|
+
accountMaxTableLevelReads(options) {
|
|
626
|
+
return new cloudwatch.Metric({
|
|
627
|
+
namespace: "AWS/DynamoDB",
|
|
628
|
+
metricName: "AccountMaxTableLevelReads",
|
|
629
|
+
dimensionsMap: this.dimensions,
|
|
630
|
+
statistic: "Maximum",
|
|
631
|
+
...options
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Maximum of the AccountMaxTableLevelWrites metric
|
|
636
|
+
*
|
|
637
|
+
* @default - Maximum over 5 minutes
|
|
638
|
+
*/
|
|
639
|
+
accountMaxTableLevelWrites(options) {
|
|
640
|
+
return new cloudwatch.Metric({
|
|
641
|
+
namespace: "AWS/DynamoDB",
|
|
642
|
+
metricName: "AccountMaxTableLevelWrites",
|
|
643
|
+
dimensionsMap: this.dimensions,
|
|
644
|
+
statistic: "Maximum",
|
|
645
|
+
...options
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Maximum of the AccountMaxWrites metric
|
|
650
|
+
*
|
|
651
|
+
* @default - Maximum over 5 minutes
|
|
652
|
+
*/
|
|
653
|
+
accountMaxWrites(options) {
|
|
654
|
+
return new cloudwatch.Metric({
|
|
655
|
+
namespace: "AWS/DynamoDB",
|
|
656
|
+
metricName: "AccountMaxWrites",
|
|
657
|
+
dimensionsMap: this.dimensions,
|
|
658
|
+
statistic: "Maximum",
|
|
659
|
+
...options
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Average of the AccountProvisionedReadCapacityUtilization metric
|
|
664
|
+
*
|
|
665
|
+
* @default - Average over 5 minutes
|
|
666
|
+
*/
|
|
667
|
+
accountProvisionedReadCapacityUtilization(options) {
|
|
668
|
+
return new cloudwatch.Metric({
|
|
669
|
+
namespace: "AWS/DynamoDB",
|
|
670
|
+
metricName: "AccountProvisionedReadCapacityUtilization",
|
|
671
|
+
dimensionsMap: this.dimensions,
|
|
672
|
+
statistic: "Average",
|
|
673
|
+
...options
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Average of the AccountProvisionedWriteCapacityUtilization metric
|
|
678
|
+
*
|
|
679
|
+
* @default - Average over 5 minutes
|
|
680
|
+
*/
|
|
681
|
+
accountProvisionedWriteCapacityUtilization(options) {
|
|
682
|
+
return new cloudwatch.Metric({
|
|
683
|
+
namespace: "AWS/DynamoDB",
|
|
684
|
+
metricName: "AccountProvisionedWriteCapacityUtilization",
|
|
685
|
+
dimensionsMap: this.dimensions,
|
|
686
|
+
statistic: "Average",
|
|
687
|
+
...options
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Average of the MaxProvisionedTableReadCapacityUtilization metric
|
|
692
|
+
*
|
|
693
|
+
* @default - Average over 5 minutes
|
|
694
|
+
*/
|
|
695
|
+
maxProvisionedTableReadCapacityUtilization(options) {
|
|
696
|
+
return new cloudwatch.Metric({
|
|
697
|
+
namespace: "AWS/DynamoDB",
|
|
698
|
+
metricName: "MaxProvisionedTableReadCapacityUtilization",
|
|
699
|
+
dimensionsMap: this.dimensions,
|
|
700
|
+
statistic: "Average",
|
|
701
|
+
...options
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Average of the MaxProvisionedTableWriteCapacityUtilization metric
|
|
706
|
+
*
|
|
707
|
+
* @default - Average over 5 minutes
|
|
708
|
+
*/
|
|
709
|
+
maxProvisionedTableWriteCapacityUtilization(options) {
|
|
710
|
+
return new cloudwatch.Metric({
|
|
711
|
+
namespace: "AWS/DynamoDB",
|
|
712
|
+
metricName: "MaxProvisionedTableWriteCapacityUtilization",
|
|
713
|
+
dimensionsMap: this.dimensions,
|
|
714
|
+
statistic: "Average",
|
|
715
|
+
...options
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Sum of the UserErrors metric
|
|
720
|
+
*
|
|
721
|
+
* @default - Sum over 5 minutes
|
|
722
|
+
*/
|
|
723
|
+
userErrors(options) {
|
|
724
|
+
return new cloudwatch.Metric({
|
|
725
|
+
namespace: "AWS/DynamoDB",
|
|
726
|
+
metricName: "UserErrors",
|
|
727
|
+
dimensionsMap: this.dimensions,
|
|
728
|
+
statistic: "Sum",
|
|
729
|
+
...options
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
DynamoDBMetrics.AccountMetrics = AccountMetrics;
|
|
734
|
+
})(DynamoDBMetrics || (exports.DynamoDBMetrics = DynamoDBMetrics = {}));
|