@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,911 @@
|
|
|
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.RedshiftMetrics = 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/Redshift
|
|
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 RedshiftMetrics {
|
|
47
|
+
/**
|
|
48
|
+
* Create ClusterMetrics from a Cluster reference
|
|
49
|
+
*/
|
|
50
|
+
static fromCluster(ref) {
|
|
51
|
+
return new RedshiftMetrics.ClusterMetrics({
|
|
52
|
+
clusterIdentifier: ref.clusterRef.clusterIdentifier
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.RedshiftMetrics = RedshiftMetrics;
|
|
57
|
+
(function (RedshiftMetrics) {
|
|
58
|
+
/**
|
|
59
|
+
* Metrics for dimension set: Cluster {ClusterIdentifier}
|
|
60
|
+
*
|
|
61
|
+
* @stability external
|
|
62
|
+
*/
|
|
63
|
+
class ClusterMetrics {
|
|
64
|
+
dimensions;
|
|
65
|
+
constructor(props) {
|
|
66
|
+
this.dimensions = {
|
|
67
|
+
ClusterIdentifier: props.clusterIdentifier
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Average of the CommitQueueLength metric
|
|
72
|
+
*
|
|
73
|
+
* @default - Average over 5 minutes
|
|
74
|
+
*/
|
|
75
|
+
commitQueueLength(options) {
|
|
76
|
+
return new cloudwatch.Metric({
|
|
77
|
+
namespace: "AWS/Redshift",
|
|
78
|
+
metricName: "CommitQueueLength",
|
|
79
|
+
dimensionsMap: this.dimensions,
|
|
80
|
+
statistic: "Average",
|
|
81
|
+
...options
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Average of the ConcurrencyScalingActiveClusters metric
|
|
86
|
+
*
|
|
87
|
+
* @default - Average over 5 minutes
|
|
88
|
+
*/
|
|
89
|
+
concurrencyScalingActiveClusters(options) {
|
|
90
|
+
return new cloudwatch.Metric({
|
|
91
|
+
namespace: "AWS/Redshift",
|
|
92
|
+
metricName: "ConcurrencyScalingActiveClusters",
|
|
93
|
+
dimensionsMap: this.dimensions,
|
|
94
|
+
statistic: "Average",
|
|
95
|
+
...options
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Average of the ConcurrencyScalingSeconds metric
|
|
100
|
+
*
|
|
101
|
+
* @default - Average over 5 minutes
|
|
102
|
+
*/
|
|
103
|
+
concurrencyScalingSeconds(options) {
|
|
104
|
+
return new cloudwatch.Metric({
|
|
105
|
+
namespace: "AWS/Redshift",
|
|
106
|
+
metricName: "ConcurrencyScalingSeconds",
|
|
107
|
+
dimensionsMap: this.dimensions,
|
|
108
|
+
statistic: "Average",
|
|
109
|
+
...options
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Average of the CPUUtilization metric
|
|
114
|
+
*
|
|
115
|
+
* @default - Average over 5 minutes
|
|
116
|
+
*/
|
|
117
|
+
cpuUtilization(options) {
|
|
118
|
+
return new cloudwatch.Metric({
|
|
119
|
+
namespace: "AWS/Redshift",
|
|
120
|
+
metricName: "CPUUtilization",
|
|
121
|
+
dimensionsMap: this.dimensions,
|
|
122
|
+
statistic: "Average",
|
|
123
|
+
...options
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Average of the DatabaseConnections metric
|
|
128
|
+
*
|
|
129
|
+
* @default - Average over 5 minutes
|
|
130
|
+
*/
|
|
131
|
+
databaseConnections(options) {
|
|
132
|
+
return new cloudwatch.Metric({
|
|
133
|
+
namespace: "AWS/Redshift",
|
|
134
|
+
metricName: "DatabaseConnections",
|
|
135
|
+
dimensionsMap: this.dimensions,
|
|
136
|
+
statistic: "Average",
|
|
137
|
+
...options
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Sum of the HealthStatus metric
|
|
142
|
+
*
|
|
143
|
+
* @default - Sum over 5 minutes
|
|
144
|
+
*/
|
|
145
|
+
healthStatus(options) {
|
|
146
|
+
return new cloudwatch.Metric({
|
|
147
|
+
namespace: "AWS/Redshift",
|
|
148
|
+
metricName: "HealthStatus",
|
|
149
|
+
dimensionsMap: this.dimensions,
|
|
150
|
+
statistic: "Sum",
|
|
151
|
+
...options
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Sum of the MaintenanceMode metric
|
|
156
|
+
*
|
|
157
|
+
* @default - Sum over 5 minutes
|
|
158
|
+
*/
|
|
159
|
+
maintenanceMode(options) {
|
|
160
|
+
return new cloudwatch.Metric({
|
|
161
|
+
namespace: "AWS/Redshift",
|
|
162
|
+
metricName: "MaintenanceMode",
|
|
163
|
+
dimensionsMap: this.dimensions,
|
|
164
|
+
statistic: "Sum",
|
|
165
|
+
...options
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Sum of the MaxConfiguredConcurrencyScalingClusters metric
|
|
170
|
+
*
|
|
171
|
+
* @default - Sum over 5 minutes
|
|
172
|
+
*/
|
|
173
|
+
maxConfiguredConcurrencyScalingClusters(options) {
|
|
174
|
+
return new cloudwatch.Metric({
|
|
175
|
+
namespace: "AWS/Redshift",
|
|
176
|
+
metricName: "MaxConfiguredConcurrencyScalingClusters",
|
|
177
|
+
dimensionsMap: this.dimensions,
|
|
178
|
+
statistic: "Sum",
|
|
179
|
+
...options
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Sum of the NetworkReceiveThroughput metric
|
|
184
|
+
*
|
|
185
|
+
* @default - Sum over 5 minutes
|
|
186
|
+
*/
|
|
187
|
+
networkReceiveThroughput(options) {
|
|
188
|
+
return new cloudwatch.Metric({
|
|
189
|
+
namespace: "AWS/Redshift",
|
|
190
|
+
metricName: "NetworkReceiveThroughput",
|
|
191
|
+
dimensionsMap: this.dimensions,
|
|
192
|
+
statistic: "Sum",
|
|
193
|
+
...options
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Sum of the NetworkTransmitThroughput metric
|
|
198
|
+
*
|
|
199
|
+
* @default - Sum over 5 minutes
|
|
200
|
+
*/
|
|
201
|
+
networkTransmitThroughput(options) {
|
|
202
|
+
return new cloudwatch.Metric({
|
|
203
|
+
namespace: "AWS/Redshift",
|
|
204
|
+
metricName: "NetworkTransmitThroughput",
|
|
205
|
+
dimensionsMap: this.dimensions,
|
|
206
|
+
statistic: "Sum",
|
|
207
|
+
...options
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Average of the NumExceededSchemaQuotas metric
|
|
212
|
+
*
|
|
213
|
+
* @default - Average over 5 minutes
|
|
214
|
+
*/
|
|
215
|
+
numExceededSchemaQuotas(options) {
|
|
216
|
+
return new cloudwatch.Metric({
|
|
217
|
+
namespace: "AWS/Redshift",
|
|
218
|
+
metricName: "NumExceededSchemaQuotas",
|
|
219
|
+
dimensionsMap: this.dimensions,
|
|
220
|
+
statistic: "Average",
|
|
221
|
+
...options
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Average of the PercentageDiskSpaceUsed metric
|
|
226
|
+
*
|
|
227
|
+
* @default - Average over 5 minutes
|
|
228
|
+
*/
|
|
229
|
+
percentageDiskSpaceUsed(options) {
|
|
230
|
+
return new cloudwatch.Metric({
|
|
231
|
+
namespace: "AWS/Redshift",
|
|
232
|
+
metricName: "PercentageDiskSpaceUsed",
|
|
233
|
+
dimensionsMap: this.dimensions,
|
|
234
|
+
statistic: "Average",
|
|
235
|
+
...options
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Sum of the ReadIOPS metric
|
|
240
|
+
*
|
|
241
|
+
* @default - Sum over 5 minutes
|
|
242
|
+
*/
|
|
243
|
+
readIops(options) {
|
|
244
|
+
return new cloudwatch.Metric({
|
|
245
|
+
namespace: "AWS/Redshift",
|
|
246
|
+
metricName: "ReadIOPS",
|
|
247
|
+
dimensionsMap: this.dimensions,
|
|
248
|
+
statistic: "Sum",
|
|
249
|
+
...options
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Average of the ReadLatency metric
|
|
254
|
+
*
|
|
255
|
+
* @default - Average over 5 minutes
|
|
256
|
+
*/
|
|
257
|
+
readLatency(options) {
|
|
258
|
+
return new cloudwatch.Metric({
|
|
259
|
+
namespace: "AWS/Redshift",
|
|
260
|
+
metricName: "ReadLatency",
|
|
261
|
+
dimensionsMap: this.dimensions,
|
|
262
|
+
statistic: "Average",
|
|
263
|
+
...options
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Sum of the ReadThroughput metric
|
|
268
|
+
*
|
|
269
|
+
* @default - Sum over 5 minutes
|
|
270
|
+
*/
|
|
271
|
+
readThroughput(options) {
|
|
272
|
+
return new cloudwatch.Metric({
|
|
273
|
+
namespace: "AWS/Redshift",
|
|
274
|
+
metricName: "ReadThroughput",
|
|
275
|
+
dimensionsMap: this.dimensions,
|
|
276
|
+
statistic: "Sum",
|
|
277
|
+
...options
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Average of the RedshiftManagedStorageTotalCapacity metric
|
|
282
|
+
*
|
|
283
|
+
* @default - Average over 5 minutes
|
|
284
|
+
*/
|
|
285
|
+
redshiftManagedStorageTotalCapacity(options) {
|
|
286
|
+
return new cloudwatch.Metric({
|
|
287
|
+
namespace: "AWS/Redshift",
|
|
288
|
+
metricName: "RedshiftManagedStorageTotalCapacity",
|
|
289
|
+
dimensionsMap: this.dimensions,
|
|
290
|
+
statistic: "Average",
|
|
291
|
+
...options
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Average of the TotalTableCount metric
|
|
296
|
+
*
|
|
297
|
+
* @default - Average over 5 minutes
|
|
298
|
+
*/
|
|
299
|
+
totalTableCount(options) {
|
|
300
|
+
return new cloudwatch.Metric({
|
|
301
|
+
namespace: "AWS/Redshift",
|
|
302
|
+
metricName: "TotalTableCount",
|
|
303
|
+
dimensionsMap: this.dimensions,
|
|
304
|
+
statistic: "Average",
|
|
305
|
+
...options
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Average of the WLMQueueLength metric
|
|
310
|
+
*
|
|
311
|
+
* @default - Average over 5 minutes
|
|
312
|
+
*/
|
|
313
|
+
wlmQueueLength(options) {
|
|
314
|
+
return new cloudwatch.Metric({
|
|
315
|
+
namespace: "AWS/Redshift",
|
|
316
|
+
metricName: "WLMQueueLength",
|
|
317
|
+
dimensionsMap: this.dimensions,
|
|
318
|
+
statistic: "Average",
|
|
319
|
+
...options
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Sum of the WriteIOPS metric
|
|
324
|
+
*
|
|
325
|
+
* @default - Sum over 5 minutes
|
|
326
|
+
*/
|
|
327
|
+
writeIops(options) {
|
|
328
|
+
return new cloudwatch.Metric({
|
|
329
|
+
namespace: "AWS/Redshift",
|
|
330
|
+
metricName: "WriteIOPS",
|
|
331
|
+
dimensionsMap: this.dimensions,
|
|
332
|
+
statistic: "Sum",
|
|
333
|
+
...options
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Average of the WriteLatency metric
|
|
338
|
+
*
|
|
339
|
+
* @default - Average over 5 minutes
|
|
340
|
+
*/
|
|
341
|
+
writeLatency(options) {
|
|
342
|
+
return new cloudwatch.Metric({
|
|
343
|
+
namespace: "AWS/Redshift",
|
|
344
|
+
metricName: "WriteLatency",
|
|
345
|
+
dimensionsMap: this.dimensions,
|
|
346
|
+
statistic: "Average",
|
|
347
|
+
...options
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Sum of the WriteThroughput metric
|
|
352
|
+
*
|
|
353
|
+
* @default - Sum over 5 minutes
|
|
354
|
+
*/
|
|
355
|
+
writeThroughput(options) {
|
|
356
|
+
return new cloudwatch.Metric({
|
|
357
|
+
namespace: "AWS/Redshift",
|
|
358
|
+
metricName: "WriteThroughput",
|
|
359
|
+
dimensionsMap: this.dimensions,
|
|
360
|
+
statistic: "Sum",
|
|
361
|
+
...options
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
RedshiftMetrics.ClusterMetrics = ClusterMetrics;
|
|
366
|
+
/**
|
|
367
|
+
* Metrics for dimension set: Node {ClusterIdentifier, NodeID}
|
|
368
|
+
*
|
|
369
|
+
* @stability external
|
|
370
|
+
*/
|
|
371
|
+
class NodeMetrics {
|
|
372
|
+
dimensions;
|
|
373
|
+
constructor(props) {
|
|
374
|
+
this.dimensions = {
|
|
375
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
376
|
+
NodeID: props.nodeId
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Average of the CPUUtilization metric
|
|
381
|
+
*
|
|
382
|
+
* @default - Average over 5 minutes
|
|
383
|
+
*/
|
|
384
|
+
cpuUtilization(options) {
|
|
385
|
+
return new cloudwatch.Metric({
|
|
386
|
+
namespace: "AWS/Redshift",
|
|
387
|
+
metricName: "CPUUtilization",
|
|
388
|
+
dimensionsMap: this.dimensions,
|
|
389
|
+
statistic: "Average",
|
|
390
|
+
...options
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Average of the ReadLatency metric
|
|
395
|
+
*
|
|
396
|
+
* @default - Average over 5 minutes
|
|
397
|
+
*/
|
|
398
|
+
readLatency(options) {
|
|
399
|
+
return new cloudwatch.Metric({
|
|
400
|
+
namespace: "AWS/Redshift",
|
|
401
|
+
metricName: "ReadLatency",
|
|
402
|
+
dimensionsMap: this.dimensions,
|
|
403
|
+
statistic: "Average",
|
|
404
|
+
...options
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Average of the WriteLatency metric
|
|
409
|
+
*
|
|
410
|
+
* @default - Average over 5 minutes
|
|
411
|
+
*/
|
|
412
|
+
writeLatency(options) {
|
|
413
|
+
return new cloudwatch.Metric({
|
|
414
|
+
namespace: "AWS/Redshift",
|
|
415
|
+
metricName: "WriteLatency",
|
|
416
|
+
dimensionsMap: this.dimensions,
|
|
417
|
+
statistic: "Average",
|
|
418
|
+
...options
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Average of the NetworkReceiveThroughput metric
|
|
423
|
+
*
|
|
424
|
+
* @default - Average over 5 minutes
|
|
425
|
+
*/
|
|
426
|
+
networkReceiveThroughput(options) {
|
|
427
|
+
return new cloudwatch.Metric({
|
|
428
|
+
namespace: "AWS/Redshift",
|
|
429
|
+
metricName: "NetworkReceiveThroughput",
|
|
430
|
+
dimensionsMap: this.dimensions,
|
|
431
|
+
statistic: "Average",
|
|
432
|
+
...options
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Average of the NetworkTransmitThroughput metric
|
|
437
|
+
*
|
|
438
|
+
* @default - Average over 5 minutes
|
|
439
|
+
*/
|
|
440
|
+
networkTransmitThroughput(options) {
|
|
441
|
+
return new cloudwatch.Metric({
|
|
442
|
+
namespace: "AWS/Redshift",
|
|
443
|
+
metricName: "NetworkTransmitThroughput",
|
|
444
|
+
dimensionsMap: this.dimensions,
|
|
445
|
+
statistic: "Average",
|
|
446
|
+
...options
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Average of the ReadIOPS metric
|
|
451
|
+
*
|
|
452
|
+
* @default - Average over 5 minutes
|
|
453
|
+
*/
|
|
454
|
+
readIops(options) {
|
|
455
|
+
return new cloudwatch.Metric({
|
|
456
|
+
namespace: "AWS/Redshift",
|
|
457
|
+
metricName: "ReadIOPS",
|
|
458
|
+
dimensionsMap: this.dimensions,
|
|
459
|
+
statistic: "Average",
|
|
460
|
+
...options
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Average of the ReadThroughput metric
|
|
465
|
+
*
|
|
466
|
+
* @default - Average over 5 minutes
|
|
467
|
+
*/
|
|
468
|
+
readThroughput(options) {
|
|
469
|
+
return new cloudwatch.Metric({
|
|
470
|
+
namespace: "AWS/Redshift",
|
|
471
|
+
metricName: "ReadThroughput",
|
|
472
|
+
dimensionsMap: this.dimensions,
|
|
473
|
+
statistic: "Average",
|
|
474
|
+
...options
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Average of the WriteIOPS metric
|
|
479
|
+
*
|
|
480
|
+
* @default - Average over 5 minutes
|
|
481
|
+
*/
|
|
482
|
+
writeIops(options) {
|
|
483
|
+
return new cloudwatch.Metric({
|
|
484
|
+
namespace: "AWS/Redshift",
|
|
485
|
+
metricName: "WriteIOPS",
|
|
486
|
+
dimensionsMap: this.dimensions,
|
|
487
|
+
statistic: "Average",
|
|
488
|
+
...options
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Average of the WriteThroughput metric
|
|
493
|
+
*
|
|
494
|
+
* @default - Average over 5 minutes
|
|
495
|
+
*/
|
|
496
|
+
writeThroughput(options) {
|
|
497
|
+
return new cloudwatch.Metric({
|
|
498
|
+
namespace: "AWS/Redshift",
|
|
499
|
+
metricName: "WriteThroughput",
|
|
500
|
+
dimensionsMap: this.dimensions,
|
|
501
|
+
statistic: "Average",
|
|
502
|
+
...options
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
RedshiftMetrics.NodeMetrics = NodeMetrics;
|
|
507
|
+
/**
|
|
508
|
+
* Metrics for dimension set: Queue {ClusterIdentifier, QueueName}
|
|
509
|
+
*
|
|
510
|
+
* @stability external
|
|
511
|
+
*/
|
|
512
|
+
class QueueMetrics {
|
|
513
|
+
dimensions;
|
|
514
|
+
constructor(props) {
|
|
515
|
+
this.dimensions = {
|
|
516
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
517
|
+
QueueName: props.queueName
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Average of the WLMQueueLength metric
|
|
522
|
+
*
|
|
523
|
+
* @default - Average over 5 minutes
|
|
524
|
+
*/
|
|
525
|
+
wlmQueueLength(options) {
|
|
526
|
+
return new cloudwatch.Metric({
|
|
527
|
+
namespace: "AWS/Redshift",
|
|
528
|
+
metricName: "WLMQueueLength",
|
|
529
|
+
dimensionsMap: this.dimensions,
|
|
530
|
+
statistic: "Average",
|
|
531
|
+
...options
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Average of the WLMQueriesCompletedPerSecond metric
|
|
536
|
+
*
|
|
537
|
+
* @default - Average over 5 minutes
|
|
538
|
+
*/
|
|
539
|
+
wlmQueriesCompletedPerSecond(options) {
|
|
540
|
+
return new cloudwatch.Metric({
|
|
541
|
+
namespace: "AWS/Redshift",
|
|
542
|
+
metricName: "WLMQueriesCompletedPerSecond",
|
|
543
|
+
dimensionsMap: this.dimensions,
|
|
544
|
+
statistic: "Average",
|
|
545
|
+
...options
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Average of the WLMQueryDuration metric
|
|
550
|
+
*
|
|
551
|
+
* @default - Average over 5 minutes
|
|
552
|
+
*/
|
|
553
|
+
wlmQueryDuration(options) {
|
|
554
|
+
return new cloudwatch.Metric({
|
|
555
|
+
namespace: "AWS/Redshift",
|
|
556
|
+
metricName: "WLMQueryDuration",
|
|
557
|
+
dimensionsMap: this.dimensions,
|
|
558
|
+
statistic: "Average",
|
|
559
|
+
...options
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Average of the WLMQueueWaitTime metric
|
|
564
|
+
*
|
|
565
|
+
* @default - Average over 5 minutes
|
|
566
|
+
*/
|
|
567
|
+
wlmQueueWaitTime(options) {
|
|
568
|
+
return new cloudwatch.Metric({
|
|
569
|
+
namespace: "AWS/Redshift",
|
|
570
|
+
metricName: "WLMQueueWaitTime",
|
|
571
|
+
dimensionsMap: this.dimensions,
|
|
572
|
+
statistic: "Average",
|
|
573
|
+
...options
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Average of the WLMRunningQueries metric
|
|
578
|
+
*
|
|
579
|
+
* @default - Average over 5 minutes
|
|
580
|
+
*/
|
|
581
|
+
wlmRunningQueries(options) {
|
|
582
|
+
return new cloudwatch.Metric({
|
|
583
|
+
namespace: "AWS/Redshift",
|
|
584
|
+
metricName: "WLMRunningQueries",
|
|
585
|
+
dimensionsMap: this.dimensions,
|
|
586
|
+
statistic: "Average",
|
|
587
|
+
...options
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
RedshiftMetrics.QueueMetrics = QueueMetrics;
|
|
592
|
+
/**
|
|
593
|
+
* Metrics for dimension set: ServiceClass {ClusterIdentifier, service class}
|
|
594
|
+
*
|
|
595
|
+
* @stability external
|
|
596
|
+
*/
|
|
597
|
+
class ServiceClassMetrics {
|
|
598
|
+
dimensions;
|
|
599
|
+
constructor(props) {
|
|
600
|
+
this.dimensions = {
|
|
601
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
602
|
+
"service class": props.serviceClass
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Average of the WLMQueueLength metric
|
|
607
|
+
*
|
|
608
|
+
* @default - Average over 5 minutes
|
|
609
|
+
*/
|
|
610
|
+
wlmQueueLength(options) {
|
|
611
|
+
return new cloudwatch.Metric({
|
|
612
|
+
namespace: "AWS/Redshift",
|
|
613
|
+
metricName: "WLMQueueLength",
|
|
614
|
+
dimensionsMap: this.dimensions,
|
|
615
|
+
statistic: "Average",
|
|
616
|
+
...options
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
RedshiftMetrics.ServiceClassMetrics = ServiceClassMetrics;
|
|
621
|
+
/**
|
|
622
|
+
* Metrics for dimension set: WorkloadManagement {ClusterIdentifier, wlmid}
|
|
623
|
+
*
|
|
624
|
+
* @stability external
|
|
625
|
+
*/
|
|
626
|
+
class WorkloadManagementMetrics {
|
|
627
|
+
dimensions;
|
|
628
|
+
constructor(props) {
|
|
629
|
+
this.dimensions = {
|
|
630
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
631
|
+
wlmid: props.wlmid
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Average of the WLMQueriesCompletedPerSecond metric
|
|
636
|
+
*
|
|
637
|
+
* @default - Average over 5 minutes
|
|
638
|
+
*/
|
|
639
|
+
wlmQueriesCompletedPerSecond(options) {
|
|
640
|
+
return new cloudwatch.Metric({
|
|
641
|
+
namespace: "AWS/Redshift",
|
|
642
|
+
metricName: "WLMQueriesCompletedPerSecond",
|
|
643
|
+
dimensionsMap: this.dimensions,
|
|
644
|
+
statistic: "Average",
|
|
645
|
+
...options
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Average of the WLMQueryDuration metric
|
|
650
|
+
*
|
|
651
|
+
* @default - Average over 5 minutes
|
|
652
|
+
*/
|
|
653
|
+
wlmQueryDuration(options) {
|
|
654
|
+
return new cloudwatch.Metric({
|
|
655
|
+
namespace: "AWS/Redshift",
|
|
656
|
+
metricName: "WLMQueryDuration",
|
|
657
|
+
dimensionsMap: this.dimensions,
|
|
658
|
+
statistic: "Average",
|
|
659
|
+
...options
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Average of the WLMQueueWaitTime metric
|
|
664
|
+
*
|
|
665
|
+
* @default - Average over 5 minutes
|
|
666
|
+
*/
|
|
667
|
+
wlmQueueWaitTime(options) {
|
|
668
|
+
return new cloudwatch.Metric({
|
|
669
|
+
namespace: "AWS/Redshift",
|
|
670
|
+
metricName: "WLMQueueWaitTime",
|
|
671
|
+
dimensionsMap: this.dimensions,
|
|
672
|
+
statistic: "Average",
|
|
673
|
+
...options
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Average of the WLMRunningQueries metric
|
|
678
|
+
*
|
|
679
|
+
* @default - Average over 5 minutes
|
|
680
|
+
*/
|
|
681
|
+
wlmRunningQueries(options) {
|
|
682
|
+
return new cloudwatch.Metric({
|
|
683
|
+
namespace: "AWS/Redshift",
|
|
684
|
+
metricName: "WLMRunningQueries",
|
|
685
|
+
dimensionsMap: this.dimensions,
|
|
686
|
+
statistic: "Average",
|
|
687
|
+
...options
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
RedshiftMetrics.WorkloadManagementMetrics = WorkloadManagementMetrics;
|
|
692
|
+
/**
|
|
693
|
+
* Metrics for dimension set: WorkloadManagementPerNode {ClusterIdentifier, wlmid, NodeID}
|
|
694
|
+
*
|
|
695
|
+
* @stability external
|
|
696
|
+
*/
|
|
697
|
+
class WorkloadManagementPerNodeMetrics {
|
|
698
|
+
dimensions;
|
|
699
|
+
constructor(props) {
|
|
700
|
+
this.dimensions = {
|
|
701
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
702
|
+
wlmid: props.wlmid,
|
|
703
|
+
NodeID: props.nodeId
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Average of the WLMQueriesCompletedPerSecond metric
|
|
708
|
+
*
|
|
709
|
+
* @default - Average over 5 minutes
|
|
710
|
+
*/
|
|
711
|
+
wlmQueriesCompletedPerSecond(options) {
|
|
712
|
+
return new cloudwatch.Metric({
|
|
713
|
+
namespace: "AWS/Redshift",
|
|
714
|
+
metricName: "WLMQueriesCompletedPerSecond",
|
|
715
|
+
dimensionsMap: this.dimensions,
|
|
716
|
+
statistic: "Average",
|
|
717
|
+
...options
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Average of the WLMQueryDuration metric
|
|
722
|
+
*
|
|
723
|
+
* @default - Average over 5 minutes
|
|
724
|
+
*/
|
|
725
|
+
wlmQueryDuration(options) {
|
|
726
|
+
return new cloudwatch.Metric({
|
|
727
|
+
namespace: "AWS/Redshift",
|
|
728
|
+
metricName: "WLMQueryDuration",
|
|
729
|
+
dimensionsMap: this.dimensions,
|
|
730
|
+
statistic: "Average",
|
|
731
|
+
...options
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
RedshiftMetrics.WorkloadManagementPerNodeMetrics = WorkloadManagementPerNodeMetrics;
|
|
736
|
+
/**
|
|
737
|
+
* Metrics for dimension set: QueryPriority {ClusterIdentifier, QueryPriority}
|
|
738
|
+
*
|
|
739
|
+
* @stability external
|
|
740
|
+
*/
|
|
741
|
+
class QueryPriorityMetrics {
|
|
742
|
+
dimensions;
|
|
743
|
+
constructor(props) {
|
|
744
|
+
this.dimensions = {
|
|
745
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
746
|
+
QueryPriority: props.queryPriority
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Average of the WLMQueueWaitTime metric
|
|
751
|
+
*
|
|
752
|
+
* @default - Average over 5 minutes
|
|
753
|
+
*/
|
|
754
|
+
wlmQueueWaitTime(options) {
|
|
755
|
+
return new cloudwatch.Metric({
|
|
756
|
+
namespace: "AWS/Redshift",
|
|
757
|
+
metricName: "WLMQueueWaitTime",
|
|
758
|
+
dimensionsMap: this.dimensions,
|
|
759
|
+
statistic: "Average",
|
|
760
|
+
...options
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
RedshiftMetrics.QueryPriorityMetrics = QueryPriorityMetrics;
|
|
765
|
+
/**
|
|
766
|
+
* Metrics for dimension set: StagePerNode {ClusterIdentifier, stage, NodeID}
|
|
767
|
+
*
|
|
768
|
+
* @stability external
|
|
769
|
+
*/
|
|
770
|
+
class StagePerNodeMetrics {
|
|
771
|
+
dimensions;
|
|
772
|
+
constructor(props) {
|
|
773
|
+
this.dimensions = {
|
|
774
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
775
|
+
stage: props.stage,
|
|
776
|
+
NodeID: props.nodeId
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Average of the QueryRuntimeBreakdown metric
|
|
781
|
+
*
|
|
782
|
+
* @default - Average over 5 minutes
|
|
783
|
+
*/
|
|
784
|
+
queryRuntimeBreakdown(options) {
|
|
785
|
+
return new cloudwatch.Metric({
|
|
786
|
+
namespace: "AWS/Redshift",
|
|
787
|
+
metricName: "QueryRuntimeBreakdown",
|
|
788
|
+
dimensionsMap: this.dimensions,
|
|
789
|
+
statistic: "Average",
|
|
790
|
+
...options
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
RedshiftMetrics.StagePerNodeMetrics = StagePerNodeMetrics;
|
|
795
|
+
/**
|
|
796
|
+
* Metrics for dimension set: Stage {ClusterIdentifier, stage}
|
|
797
|
+
*
|
|
798
|
+
* @stability external
|
|
799
|
+
*/
|
|
800
|
+
class StageMetrics {
|
|
801
|
+
dimensions;
|
|
802
|
+
constructor(props) {
|
|
803
|
+
this.dimensions = {
|
|
804
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
805
|
+
stage: props.stage
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Average of the QueryRuntimeBreakdown metric
|
|
810
|
+
*
|
|
811
|
+
* @default - Average over 5 minutes
|
|
812
|
+
*/
|
|
813
|
+
queryRuntimeBreakdown(options) {
|
|
814
|
+
return new cloudwatch.Metric({
|
|
815
|
+
namespace: "AWS/Redshift",
|
|
816
|
+
metricName: "QueryRuntimeBreakdown",
|
|
817
|
+
dimensionsMap: this.dimensions,
|
|
818
|
+
statistic: "Average",
|
|
819
|
+
...options
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
RedshiftMetrics.StageMetrics = StageMetrics;
|
|
824
|
+
/**
|
|
825
|
+
* Metrics for dimension set: Latency {ClusterIdentifier, latency}
|
|
826
|
+
*
|
|
827
|
+
* @stability external
|
|
828
|
+
*/
|
|
829
|
+
class LatencyMetrics {
|
|
830
|
+
dimensions;
|
|
831
|
+
constructor(props) {
|
|
832
|
+
this.dimensions = {
|
|
833
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
834
|
+
latency: props.latency
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* Average of the QueriesCompletedPerSecond metric
|
|
839
|
+
*
|
|
840
|
+
* @default - Average over 5 minutes
|
|
841
|
+
*/
|
|
842
|
+
queriesCompletedPerSecond(options) {
|
|
843
|
+
return new cloudwatch.Metric({
|
|
844
|
+
namespace: "AWS/Redshift",
|
|
845
|
+
metricName: "QueriesCompletedPerSecond",
|
|
846
|
+
dimensionsMap: this.dimensions,
|
|
847
|
+
statistic: "Average",
|
|
848
|
+
...options
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Average of the QueryDuration metric
|
|
853
|
+
*
|
|
854
|
+
* @default - Average over 5 minutes
|
|
855
|
+
*/
|
|
856
|
+
queryDuration(options) {
|
|
857
|
+
return new cloudwatch.Metric({
|
|
858
|
+
namespace: "AWS/Redshift",
|
|
859
|
+
metricName: "QueryDuration",
|
|
860
|
+
dimensionsMap: this.dimensions,
|
|
861
|
+
statistic: "Average",
|
|
862
|
+
...options
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
RedshiftMetrics.LatencyMetrics = LatencyMetrics;
|
|
867
|
+
/**
|
|
868
|
+
* Metrics for dimension set: LatencyPerNode {ClusterIdentifier, latency, NodeID}
|
|
869
|
+
*
|
|
870
|
+
* @stability external
|
|
871
|
+
*/
|
|
872
|
+
class LatencyPerNodeMetrics {
|
|
873
|
+
dimensions;
|
|
874
|
+
constructor(props) {
|
|
875
|
+
this.dimensions = {
|
|
876
|
+
ClusterIdentifier: props.clusterIdentifier,
|
|
877
|
+
latency: props.latency,
|
|
878
|
+
NodeID: props.nodeId
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Average of the QueriesCompletedPerSecond metric
|
|
883
|
+
*
|
|
884
|
+
* @default - Average over 5 minutes
|
|
885
|
+
*/
|
|
886
|
+
queriesCompletedPerSecond(options) {
|
|
887
|
+
return new cloudwatch.Metric({
|
|
888
|
+
namespace: "AWS/Redshift",
|
|
889
|
+
metricName: "QueriesCompletedPerSecond",
|
|
890
|
+
dimensionsMap: this.dimensions,
|
|
891
|
+
statistic: "Average",
|
|
892
|
+
...options
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Average of the QueryDuration metric
|
|
897
|
+
*
|
|
898
|
+
* @default - Average over 5 minutes
|
|
899
|
+
*/
|
|
900
|
+
queryDuration(options) {
|
|
901
|
+
return new cloudwatch.Metric({
|
|
902
|
+
namespace: "AWS/Redshift",
|
|
903
|
+
metricName: "QueryDuration",
|
|
904
|
+
dimensionsMap: this.dimensions,
|
|
905
|
+
statistic: "Average",
|
|
906
|
+
...options
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
RedshiftMetrics.LatencyPerNodeMetrics = LatencyPerNodeMetrics;
|
|
911
|
+
})(RedshiftMetrics || (exports.RedshiftMetrics = RedshiftMetrics = {}));
|