@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,569 @@
|
|
|
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.DMSMetrics = 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/DMS
|
|
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 DMSMetrics {
|
|
47
|
+
}
|
|
48
|
+
exports.DMSMetrics = DMSMetrics;
|
|
49
|
+
(function (DMSMetrics) {
|
|
50
|
+
/**
|
|
51
|
+
* Metrics for dimension set: ReplicationTask {ReplicationInstanceIdentifier, ReplicationTaskIdentifier}
|
|
52
|
+
*
|
|
53
|
+
* @stability external
|
|
54
|
+
*/
|
|
55
|
+
class ReplicationTaskMetrics {
|
|
56
|
+
dimensions;
|
|
57
|
+
constructor(props) {
|
|
58
|
+
this.dimensions = {
|
|
59
|
+
ReplicationInstanceIdentifier: props.replicationInstanceIdentifier,
|
|
60
|
+
ReplicationTaskIdentifier: props.replicationTaskIdentifier
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Sum of the CPUAllocated metric
|
|
65
|
+
*
|
|
66
|
+
* @default - Sum over 5 minutes
|
|
67
|
+
*/
|
|
68
|
+
cpuAllocated(options) {
|
|
69
|
+
return new cloudwatch.Metric({
|
|
70
|
+
namespace: "AWS/DMS",
|
|
71
|
+
metricName: "CPUAllocated",
|
|
72
|
+
dimensionsMap: this.dimensions,
|
|
73
|
+
statistic: "Sum",
|
|
74
|
+
...options
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Average of the CPUUtilization metric
|
|
79
|
+
*
|
|
80
|
+
* @default - Average over 5 minutes
|
|
81
|
+
*/
|
|
82
|
+
cpuUtilization(options) {
|
|
83
|
+
return new cloudwatch.Metric({
|
|
84
|
+
namespace: "AWS/DMS",
|
|
85
|
+
metricName: "CPUUtilization",
|
|
86
|
+
dimensionsMap: this.dimensions,
|
|
87
|
+
statistic: "Average",
|
|
88
|
+
...options
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Average of the MemoryUsage metric
|
|
93
|
+
*
|
|
94
|
+
* @default - Average over 5 minutes
|
|
95
|
+
*/
|
|
96
|
+
memoryUsage(options) {
|
|
97
|
+
return new cloudwatch.Metric({
|
|
98
|
+
namespace: "AWS/DMS",
|
|
99
|
+
metricName: "MemoryUsage",
|
|
100
|
+
dimensionsMap: this.dimensions,
|
|
101
|
+
statistic: "Average",
|
|
102
|
+
...options
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Average of the SwapUsage metric
|
|
107
|
+
*
|
|
108
|
+
* @default - Average over 5 minutes
|
|
109
|
+
*/
|
|
110
|
+
swapUsage(options) {
|
|
111
|
+
return new cloudwatch.Metric({
|
|
112
|
+
namespace: "AWS/DMS",
|
|
113
|
+
metricName: "SwapUsage",
|
|
114
|
+
dimensionsMap: this.dimensions,
|
|
115
|
+
statistic: "Average",
|
|
116
|
+
...options
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Sum of the CDCLatencyTarget metric
|
|
121
|
+
*
|
|
122
|
+
* @default - Sum over 5 minutes
|
|
123
|
+
*/
|
|
124
|
+
cdcLatencyTarget(options) {
|
|
125
|
+
return new cloudwatch.Metric({
|
|
126
|
+
namespace: "AWS/DMS",
|
|
127
|
+
metricName: "CDCLatencyTarget",
|
|
128
|
+
dimensionsMap: this.dimensions,
|
|
129
|
+
statistic: "Sum",
|
|
130
|
+
...options
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Sum of the CDCLatencySource metric
|
|
135
|
+
*
|
|
136
|
+
* @default - Sum over 5 minutes
|
|
137
|
+
*/
|
|
138
|
+
cdcLatencySource(options) {
|
|
139
|
+
return new cloudwatch.Metric({
|
|
140
|
+
namespace: "AWS/DMS",
|
|
141
|
+
metricName: "CDCLatencySource",
|
|
142
|
+
dimensionsMap: this.dimensions,
|
|
143
|
+
statistic: "Sum",
|
|
144
|
+
...options
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Sum of the CDCChangesDiskTarget metric
|
|
149
|
+
*
|
|
150
|
+
* @default - Sum over 5 minutes
|
|
151
|
+
*/
|
|
152
|
+
cdcChangesDiskTarget(options) {
|
|
153
|
+
return new cloudwatch.Metric({
|
|
154
|
+
namespace: "AWS/DMS",
|
|
155
|
+
metricName: "CDCChangesDiskTarget",
|
|
156
|
+
dimensionsMap: this.dimensions,
|
|
157
|
+
statistic: "Sum",
|
|
158
|
+
...options
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Sum of the CDCChangesDiskSource metric
|
|
163
|
+
*
|
|
164
|
+
* @default - Sum over 5 minutes
|
|
165
|
+
*/
|
|
166
|
+
cdcChangesDiskSource(options) {
|
|
167
|
+
return new cloudwatch.Metric({
|
|
168
|
+
namespace: "AWS/DMS",
|
|
169
|
+
metricName: "CDCChangesDiskSource",
|
|
170
|
+
dimensionsMap: this.dimensions,
|
|
171
|
+
statistic: "Sum",
|
|
172
|
+
...options
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Sum of the CDCChangesMemorySource metric
|
|
177
|
+
*
|
|
178
|
+
* @default - Sum over 5 minutes
|
|
179
|
+
*/
|
|
180
|
+
cdcChangesMemorySource(options) {
|
|
181
|
+
return new cloudwatch.Metric({
|
|
182
|
+
namespace: "AWS/DMS",
|
|
183
|
+
metricName: "CDCChangesMemorySource",
|
|
184
|
+
dimensionsMap: this.dimensions,
|
|
185
|
+
statistic: "Sum",
|
|
186
|
+
...options
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Sum of the CDCChangesMemoryTarget metric
|
|
191
|
+
*
|
|
192
|
+
* @default - Sum over 5 minutes
|
|
193
|
+
*/
|
|
194
|
+
cdcChangesMemoryTarget(options) {
|
|
195
|
+
return new cloudwatch.Metric({
|
|
196
|
+
namespace: "AWS/DMS",
|
|
197
|
+
metricName: "CDCChangesMemoryTarget",
|
|
198
|
+
dimensionsMap: this.dimensions,
|
|
199
|
+
statistic: "Sum",
|
|
200
|
+
...options
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Sum of the CDCIncomingChanges metric
|
|
205
|
+
*
|
|
206
|
+
* @default - Sum over 5 minutes
|
|
207
|
+
*/
|
|
208
|
+
cdcIncomingChanges(options) {
|
|
209
|
+
return new cloudwatch.Metric({
|
|
210
|
+
namespace: "AWS/DMS",
|
|
211
|
+
metricName: "CDCIncomingChanges",
|
|
212
|
+
dimensionsMap: this.dimensions,
|
|
213
|
+
statistic: "Sum",
|
|
214
|
+
...options
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Sum of the CDCThroughputBandwidthSource metric
|
|
219
|
+
*
|
|
220
|
+
* @default - Sum over 5 minutes
|
|
221
|
+
*/
|
|
222
|
+
cdcThroughputBandwidthSource(options) {
|
|
223
|
+
return new cloudwatch.Metric({
|
|
224
|
+
namespace: "AWS/DMS",
|
|
225
|
+
metricName: "CDCThroughputBandwidthSource",
|
|
226
|
+
dimensionsMap: this.dimensions,
|
|
227
|
+
statistic: "Sum",
|
|
228
|
+
...options
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Sum of the CDCThroughputBandwidthTarget metric
|
|
233
|
+
*
|
|
234
|
+
* @default - Sum over 5 minutes
|
|
235
|
+
*/
|
|
236
|
+
cdcThroughputBandwidthTarget(options) {
|
|
237
|
+
return new cloudwatch.Metric({
|
|
238
|
+
namespace: "AWS/DMS",
|
|
239
|
+
metricName: "CDCThroughputBandwidthTarget",
|
|
240
|
+
dimensionsMap: this.dimensions,
|
|
241
|
+
statistic: "Sum",
|
|
242
|
+
...options
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Sum of the CDCThroughputRowsSource metric
|
|
247
|
+
*
|
|
248
|
+
* @default - Sum over 5 minutes
|
|
249
|
+
*/
|
|
250
|
+
cdcThroughputRowsSource(options) {
|
|
251
|
+
return new cloudwatch.Metric({
|
|
252
|
+
namespace: "AWS/DMS",
|
|
253
|
+
metricName: "CDCThroughputRowsSource",
|
|
254
|
+
dimensionsMap: this.dimensions,
|
|
255
|
+
statistic: "Sum",
|
|
256
|
+
...options
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Sum of the CDCThroughputRowsTarget metric
|
|
261
|
+
*
|
|
262
|
+
* @default - Sum over 5 minutes
|
|
263
|
+
*/
|
|
264
|
+
cdcThroughputRowsTarget(options) {
|
|
265
|
+
return new cloudwatch.Metric({
|
|
266
|
+
namespace: "AWS/DMS",
|
|
267
|
+
metricName: "CDCThroughputRowsTarget",
|
|
268
|
+
dimensionsMap: this.dimensions,
|
|
269
|
+
statistic: "Sum",
|
|
270
|
+
...options
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Sum of the FullLoadThroughputBandwidthSource metric
|
|
275
|
+
*
|
|
276
|
+
* @default - Sum over 5 minutes
|
|
277
|
+
*/
|
|
278
|
+
fullLoadThroughputBandwidthSource(options) {
|
|
279
|
+
return new cloudwatch.Metric({
|
|
280
|
+
namespace: "AWS/DMS",
|
|
281
|
+
metricName: "FullLoadThroughputBandwidthSource",
|
|
282
|
+
dimensionsMap: this.dimensions,
|
|
283
|
+
statistic: "Sum",
|
|
284
|
+
...options
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Sum of the FullLoadThroughputBandwidthTarget metric
|
|
289
|
+
*
|
|
290
|
+
* @default - Sum over 5 minutes
|
|
291
|
+
*/
|
|
292
|
+
fullLoadThroughputBandwidthTarget(options) {
|
|
293
|
+
return new cloudwatch.Metric({
|
|
294
|
+
namespace: "AWS/DMS",
|
|
295
|
+
metricName: "FullLoadThroughputBandwidthTarget",
|
|
296
|
+
dimensionsMap: this.dimensions,
|
|
297
|
+
statistic: "Sum",
|
|
298
|
+
...options
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Sum of the FullLoadThroughputRowsSource metric
|
|
303
|
+
*
|
|
304
|
+
* @default - Sum over 5 minutes
|
|
305
|
+
*/
|
|
306
|
+
fullLoadThroughputRowsSource(options) {
|
|
307
|
+
return new cloudwatch.Metric({
|
|
308
|
+
namespace: "AWS/DMS",
|
|
309
|
+
metricName: "FullLoadThroughputRowsSource",
|
|
310
|
+
dimensionsMap: this.dimensions,
|
|
311
|
+
statistic: "Sum",
|
|
312
|
+
...options
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Sum of the FullLoadThroughputRowsTarget metric
|
|
317
|
+
*
|
|
318
|
+
* @default - Sum over 5 minutes
|
|
319
|
+
*/
|
|
320
|
+
fullLoadThroughputRowsTarget(options) {
|
|
321
|
+
return new cloudwatch.Metric({
|
|
322
|
+
namespace: "AWS/DMS",
|
|
323
|
+
metricName: "FullLoadThroughputRowsTarget",
|
|
324
|
+
dimensionsMap: this.dimensions,
|
|
325
|
+
statistic: "Sum",
|
|
326
|
+
...options
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Average of the MemoryAllocated metric
|
|
331
|
+
*
|
|
332
|
+
* @default - Average over 5 minutes
|
|
333
|
+
*/
|
|
334
|
+
memoryAllocated(options) {
|
|
335
|
+
return new cloudwatch.Metric({
|
|
336
|
+
namespace: "AWS/DMS",
|
|
337
|
+
metricName: "MemoryAllocated",
|
|
338
|
+
dimensionsMap: this.dimensions,
|
|
339
|
+
statistic: "Average",
|
|
340
|
+
...options
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
DMSMetrics.ReplicationTaskMetrics = ReplicationTaskMetrics;
|
|
345
|
+
/**
|
|
346
|
+
* Metrics for dimension set: ReplicationInstanceExternalResource {ReplicationInstanceExternalResourceId}
|
|
347
|
+
*
|
|
348
|
+
* @stability external
|
|
349
|
+
*/
|
|
350
|
+
class ReplicationInstanceExternalResourceMetrics {
|
|
351
|
+
dimensions;
|
|
352
|
+
constructor(props) {
|
|
353
|
+
this.dimensions = {
|
|
354
|
+
ReplicationInstanceExternalResourceId: props.replicationInstanceExternalResourceId
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Average of the CPUUtilization metric
|
|
359
|
+
*
|
|
360
|
+
* @default - Average over 5 minutes
|
|
361
|
+
*/
|
|
362
|
+
cpuUtilization(options) {
|
|
363
|
+
return new cloudwatch.Metric({
|
|
364
|
+
namespace: "AWS/DMS",
|
|
365
|
+
metricName: "CPUUtilization",
|
|
366
|
+
dimensionsMap: this.dimensions,
|
|
367
|
+
statistic: "Average",
|
|
368
|
+
...options
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Average of the SwapUsage metric
|
|
373
|
+
*
|
|
374
|
+
* @default - Average over 5 minutes
|
|
375
|
+
*/
|
|
376
|
+
swapUsage(options) {
|
|
377
|
+
return new cloudwatch.Metric({
|
|
378
|
+
namespace: "AWS/DMS",
|
|
379
|
+
metricName: "SwapUsage",
|
|
380
|
+
dimensionsMap: this.dimensions,
|
|
381
|
+
statistic: "Average",
|
|
382
|
+
...options
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Sum of the AvailableMemory metric
|
|
387
|
+
*
|
|
388
|
+
* @default - Sum over 5 minutes
|
|
389
|
+
*/
|
|
390
|
+
availableMemory(options) {
|
|
391
|
+
return new cloudwatch.Metric({
|
|
392
|
+
namespace: "AWS/DMS",
|
|
393
|
+
metricName: "AvailableMemory",
|
|
394
|
+
dimensionsMap: this.dimensions,
|
|
395
|
+
statistic: "Sum",
|
|
396
|
+
...options
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Sum of the DiskQueueDepth metric
|
|
401
|
+
*
|
|
402
|
+
* @default - Sum over 5 minutes
|
|
403
|
+
*/
|
|
404
|
+
diskQueueDepth(options) {
|
|
405
|
+
return new cloudwatch.Metric({
|
|
406
|
+
namespace: "AWS/DMS",
|
|
407
|
+
metricName: "DiskQueueDepth",
|
|
408
|
+
dimensionsMap: this.dimensions,
|
|
409
|
+
statistic: "Sum",
|
|
410
|
+
...options
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Average of the FreeStorageSpace metric
|
|
415
|
+
*
|
|
416
|
+
* @default - Average over 5 minutes
|
|
417
|
+
*/
|
|
418
|
+
freeStorageSpace(options) {
|
|
419
|
+
return new cloudwatch.Metric({
|
|
420
|
+
namespace: "AWS/DMS",
|
|
421
|
+
metricName: "FreeStorageSpace",
|
|
422
|
+
dimensionsMap: this.dimensions,
|
|
423
|
+
statistic: "Average",
|
|
424
|
+
...options
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Average of the FreeMemory metric
|
|
429
|
+
*
|
|
430
|
+
* @default - Average over 5 minutes
|
|
431
|
+
*/
|
|
432
|
+
freeMemory(options) {
|
|
433
|
+
return new cloudwatch.Metric({
|
|
434
|
+
namespace: "AWS/DMS",
|
|
435
|
+
metricName: "FreeMemory",
|
|
436
|
+
dimensionsMap: this.dimensions,
|
|
437
|
+
statistic: "Average",
|
|
438
|
+
...options
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Average of the FreeableMemory metric
|
|
443
|
+
*
|
|
444
|
+
* @default - Average over 5 minutes
|
|
445
|
+
*/
|
|
446
|
+
freeableMemory(options) {
|
|
447
|
+
return new cloudwatch.Metric({
|
|
448
|
+
namespace: "AWS/DMS",
|
|
449
|
+
metricName: "FreeableMemory",
|
|
450
|
+
dimensionsMap: this.dimensions,
|
|
451
|
+
statistic: "Average",
|
|
452
|
+
...options
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Average of the WriteIOPS metric
|
|
457
|
+
*
|
|
458
|
+
* @default - Average over 5 minutes
|
|
459
|
+
*/
|
|
460
|
+
writeIops(options) {
|
|
461
|
+
return new cloudwatch.Metric({
|
|
462
|
+
namespace: "AWS/DMS",
|
|
463
|
+
metricName: "WriteIOPS",
|
|
464
|
+
dimensionsMap: this.dimensions,
|
|
465
|
+
statistic: "Average",
|
|
466
|
+
...options
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Average of the ReadIOPS metric
|
|
471
|
+
*
|
|
472
|
+
* @default - Average over 5 minutes
|
|
473
|
+
*/
|
|
474
|
+
readIops(options) {
|
|
475
|
+
return new cloudwatch.Metric({
|
|
476
|
+
namespace: "AWS/DMS",
|
|
477
|
+
metricName: "ReadIOPS",
|
|
478
|
+
dimensionsMap: this.dimensions,
|
|
479
|
+
statistic: "Average",
|
|
480
|
+
...options
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Average of the WriteThroughput metric
|
|
485
|
+
*
|
|
486
|
+
* @default - Average over 5 minutes
|
|
487
|
+
*/
|
|
488
|
+
writeThroughput(options) {
|
|
489
|
+
return new cloudwatch.Metric({
|
|
490
|
+
namespace: "AWS/DMS",
|
|
491
|
+
metricName: "WriteThroughput",
|
|
492
|
+
dimensionsMap: this.dimensions,
|
|
493
|
+
statistic: "Average",
|
|
494
|
+
...options
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Average of the ReadThroughput metric
|
|
499
|
+
*
|
|
500
|
+
* @default - Average over 5 minutes
|
|
501
|
+
*/
|
|
502
|
+
readThroughput(options) {
|
|
503
|
+
return new cloudwatch.Metric({
|
|
504
|
+
namespace: "AWS/DMS",
|
|
505
|
+
metricName: "ReadThroughput",
|
|
506
|
+
dimensionsMap: this.dimensions,
|
|
507
|
+
statistic: "Average",
|
|
508
|
+
...options
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Average of the WriteLatency metric
|
|
513
|
+
*
|
|
514
|
+
* @default - Average over 5 minutes
|
|
515
|
+
*/
|
|
516
|
+
writeLatency(options) {
|
|
517
|
+
return new cloudwatch.Metric({
|
|
518
|
+
namespace: "AWS/DMS",
|
|
519
|
+
metricName: "WriteLatency",
|
|
520
|
+
dimensionsMap: this.dimensions,
|
|
521
|
+
statistic: "Average",
|
|
522
|
+
...options
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Average of the ReadLatency metric
|
|
527
|
+
*
|
|
528
|
+
* @default - Average over 5 minutes
|
|
529
|
+
*/
|
|
530
|
+
readLatency(options) {
|
|
531
|
+
return new cloudwatch.Metric({
|
|
532
|
+
namespace: "AWS/DMS",
|
|
533
|
+
metricName: "ReadLatency",
|
|
534
|
+
dimensionsMap: this.dimensions,
|
|
535
|
+
statistic: "Average",
|
|
536
|
+
...options
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Average of the NetworkTransmitThroughput metric
|
|
541
|
+
*
|
|
542
|
+
* @default - Average over 5 minutes
|
|
543
|
+
*/
|
|
544
|
+
networkTransmitThroughput(options) {
|
|
545
|
+
return new cloudwatch.Metric({
|
|
546
|
+
namespace: "AWS/DMS",
|
|
547
|
+
metricName: "NetworkTransmitThroughput",
|
|
548
|
+
dimensionsMap: this.dimensions,
|
|
549
|
+
statistic: "Average",
|
|
550
|
+
...options
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Average of the NetworkReceiveThroughput metric
|
|
555
|
+
*
|
|
556
|
+
* @default - Average over 5 minutes
|
|
557
|
+
*/
|
|
558
|
+
networkReceiveThroughput(options) {
|
|
559
|
+
return new cloudwatch.Metric({
|
|
560
|
+
namespace: "AWS/DMS",
|
|
561
|
+
metricName: "NetworkReceiveThroughput",
|
|
562
|
+
dimensionsMap: this.dimensions,
|
|
563
|
+
statistic: "Average",
|
|
564
|
+
...options
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
DMSMetrics.ReplicationInstanceExternalResourceMetrics = ReplicationInstanceExternalResourceMetrics;
|
|
569
|
+
})(DMSMetrics || (exports.DMSMetrics = DMSMetrics = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"targets": {
|
|
3
|
+
"java": {
|
|
4
|
+
"package": "software.amazon.awscdk.metricsfacade.alpha.services.docdb"
|
|
5
|
+
},
|
|
6
|
+
"dotnet": {
|
|
7
|
+
"namespace": "Amazon.CDK.MetricsFacade.Alpha.AWS.DocDB"
|
|
8
|
+
},
|
|
9
|
+
"python": {
|
|
10
|
+
"module": "aws_cdk.metrics_facade_alpha.aws_docdb"
|
|
11
|
+
},
|
|
12
|
+
"go": {
|
|
13
|
+
"packageName": "metricsfacadealphaawsdocdb"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './metrics.generated';
|
|
@@ -0,0 +1,17 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./metrics.generated"), exports);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as cloudwatch from "aws-cdk-lib/aws-cloudwatch";
|
|
2
|
+
/**
|
|
3
|
+
* CloudWatch metrics facade for AWS/DocDB
|
|
4
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
5
|
+
* for selected resources if available.
|
|
6
|
+
*
|
|
7
|
+
* @stability external
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class DocDBMetrics {
|
|
10
|
+
}
|
|
11
|
+
export declare namespace DocDBMetrics {
|
|
12
|
+
/**
|
|
13
|
+
* Metrics for dimension set: DatabaseInstance {DBInstanceIdentifier}
|
|
14
|
+
*
|
|
15
|
+
* @stability external
|
|
16
|
+
*/
|
|
17
|
+
class DatabaseInstanceMetrics {
|
|
18
|
+
private readonly dimensions;
|
|
19
|
+
constructor(props: DocDBMetrics.DatabaseInstanceMetricsProps);
|
|
20
|
+
/**
|
|
21
|
+
* Average of the CPUUtilization metric
|
|
22
|
+
*
|
|
23
|
+
* @default - Average over 5 minutes
|
|
24
|
+
*/
|
|
25
|
+
cpuUtilization(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
26
|
+
/**
|
|
27
|
+
* Average of the DatabaseConnections metric
|
|
28
|
+
*
|
|
29
|
+
* @default - Average over 5 minutes
|
|
30
|
+
*/
|
|
31
|
+
databaseConnections(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
32
|
+
/**
|
|
33
|
+
* Average of the EngineUptime metric
|
|
34
|
+
*
|
|
35
|
+
* @default - Average over 5 minutes
|
|
36
|
+
*/
|
|
37
|
+
engineUptime(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
38
|
+
/**
|
|
39
|
+
* Sum of the ReadThroughput metric
|
|
40
|
+
*
|
|
41
|
+
* @default - Sum over 5 minutes
|
|
42
|
+
*/
|
|
43
|
+
readThroughput(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
44
|
+
/**
|
|
45
|
+
* Sum of the WriteThroughput metric
|
|
46
|
+
*
|
|
47
|
+
* @default - Sum over 5 minutes
|
|
48
|
+
*/
|
|
49
|
+
writeThroughput(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Dimensions for DatabaseInstanceMetrics
|
|
53
|
+
*
|
|
54
|
+
* @struct
|
|
55
|
+
* @stability external
|
|
56
|
+
*/
|
|
57
|
+
interface DatabaseInstanceMetricsProps {
|
|
58
|
+
/**
|
|
59
|
+
* The DBInstanceIdentifier dimension
|
|
60
|
+
*/
|
|
61
|
+
readonly dbInstanceIdentifier: string;
|
|
62
|
+
}
|
|
63
|
+
}
|