@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,2168 @@
|
|
|
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.NetworkELBMetrics = exports.GatewayELBMetrics = exports.ApplicationELBMetrics = 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/ApplicationELB
|
|
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 ApplicationELBMetrics {
|
|
47
|
+
}
|
|
48
|
+
exports.ApplicationELBMetrics = ApplicationELBMetrics;
|
|
49
|
+
(function (ApplicationELBMetrics) {
|
|
50
|
+
/**
|
|
51
|
+
* Metrics for dimension set: LoadBalancer {LoadBalancer}
|
|
52
|
+
*
|
|
53
|
+
* @stability external
|
|
54
|
+
*/
|
|
55
|
+
class LoadBalancerMetrics {
|
|
56
|
+
dimensions;
|
|
57
|
+
constructor(props) {
|
|
58
|
+
this.dimensions = {
|
|
59
|
+
LoadBalancer: props.loadBalancer
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Sum of the ActiveConnectionCount metric
|
|
64
|
+
*
|
|
65
|
+
* @default - Sum over 5 minutes
|
|
66
|
+
*/
|
|
67
|
+
activeConnectionCount(options) {
|
|
68
|
+
return new cloudwatch.Metric({
|
|
69
|
+
namespace: "AWS/ApplicationELB",
|
|
70
|
+
metricName: "ActiveConnectionCount",
|
|
71
|
+
dimensionsMap: this.dimensions,
|
|
72
|
+
statistic: "Sum",
|
|
73
|
+
...options
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Sum of the ClientTLSNegotiationErrorCount metric
|
|
78
|
+
*
|
|
79
|
+
* @default - Sum over 5 minutes
|
|
80
|
+
*/
|
|
81
|
+
clientTlsNegotiationErrorCount(options) {
|
|
82
|
+
return new cloudwatch.Metric({
|
|
83
|
+
namespace: "AWS/ApplicationELB",
|
|
84
|
+
metricName: "ClientTLSNegotiationErrorCount",
|
|
85
|
+
dimensionsMap: this.dimensions,
|
|
86
|
+
statistic: "Sum",
|
|
87
|
+
...options
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Average of the ConsumedLCUs metric
|
|
92
|
+
*
|
|
93
|
+
* @default - Average over 5 minutes
|
|
94
|
+
*/
|
|
95
|
+
consumedLcUs(options) {
|
|
96
|
+
return new cloudwatch.Metric({
|
|
97
|
+
namespace: "AWS/ApplicationELB",
|
|
98
|
+
metricName: "ConsumedLCUs",
|
|
99
|
+
dimensionsMap: this.dimensions,
|
|
100
|
+
statistic: "Average",
|
|
101
|
+
...options
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Sum of the DesyncMitigationMode_NonCompliant_Request_Count metric
|
|
106
|
+
*
|
|
107
|
+
* @default - Sum over 5 minutes
|
|
108
|
+
*/
|
|
109
|
+
desyncMitigationModeNonCompliantRequestCount(options) {
|
|
110
|
+
return new cloudwatch.Metric({
|
|
111
|
+
namespace: "AWS/ApplicationELB",
|
|
112
|
+
metricName: "DesyncMitigationMode_NonCompliant_Request_Count",
|
|
113
|
+
dimensionsMap: this.dimensions,
|
|
114
|
+
statistic: "Sum",
|
|
115
|
+
...options
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Sum of the ELBAuthError metric
|
|
120
|
+
*
|
|
121
|
+
* @default - Sum over 5 minutes
|
|
122
|
+
*/
|
|
123
|
+
elbAuthError(options) {
|
|
124
|
+
return new cloudwatch.Metric({
|
|
125
|
+
namespace: "AWS/ApplicationELB",
|
|
126
|
+
metricName: "ELBAuthError",
|
|
127
|
+
dimensionsMap: this.dimensions,
|
|
128
|
+
statistic: "Sum",
|
|
129
|
+
...options
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Sum of the ELBAuthFailure metric
|
|
134
|
+
*
|
|
135
|
+
* @default - Sum over 5 minutes
|
|
136
|
+
*/
|
|
137
|
+
elbAuthFailure(options) {
|
|
138
|
+
return new cloudwatch.Metric({
|
|
139
|
+
namespace: "AWS/ApplicationELB",
|
|
140
|
+
metricName: "ELBAuthFailure",
|
|
141
|
+
dimensionsMap: this.dimensions,
|
|
142
|
+
statistic: "Sum",
|
|
143
|
+
...options
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Sum of the ELBAuthLatency metric
|
|
148
|
+
*
|
|
149
|
+
* @default - Sum over 5 minutes
|
|
150
|
+
*/
|
|
151
|
+
elbAuthLatency(options) {
|
|
152
|
+
return new cloudwatch.Metric({
|
|
153
|
+
namespace: "AWS/ApplicationELB",
|
|
154
|
+
metricName: "ELBAuthLatency",
|
|
155
|
+
dimensionsMap: this.dimensions,
|
|
156
|
+
statistic: "Sum",
|
|
157
|
+
...options
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Sum of the ELBAuthRefreshTokenSuccess metric
|
|
162
|
+
*
|
|
163
|
+
* @default - Sum over 5 minutes
|
|
164
|
+
*/
|
|
165
|
+
elbAuthRefreshTokenSuccess(options) {
|
|
166
|
+
return new cloudwatch.Metric({
|
|
167
|
+
namespace: "AWS/ApplicationELB",
|
|
168
|
+
metricName: "ELBAuthRefreshTokenSuccess",
|
|
169
|
+
dimensionsMap: this.dimensions,
|
|
170
|
+
statistic: "Sum",
|
|
171
|
+
...options
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Sum of the ELBAuthSuccess metric
|
|
176
|
+
*
|
|
177
|
+
* @default - Sum over 5 minutes
|
|
178
|
+
*/
|
|
179
|
+
elbAuthSuccess(options) {
|
|
180
|
+
return new cloudwatch.Metric({
|
|
181
|
+
namespace: "AWS/ApplicationELB",
|
|
182
|
+
metricName: "ELBAuthSuccess",
|
|
183
|
+
dimensionsMap: this.dimensions,
|
|
184
|
+
statistic: "Sum",
|
|
185
|
+
...options
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Sum of the ELBAuthUserClaimsSizeExceeded metric
|
|
190
|
+
*
|
|
191
|
+
* @default - Sum over 5 minutes
|
|
192
|
+
*/
|
|
193
|
+
elbAuthUserClaimsSizeExceeded(options) {
|
|
194
|
+
return new cloudwatch.Metric({
|
|
195
|
+
namespace: "AWS/ApplicationELB",
|
|
196
|
+
metricName: "ELBAuthUserClaimsSizeExceeded",
|
|
197
|
+
dimensionsMap: this.dimensions,
|
|
198
|
+
statistic: "Sum",
|
|
199
|
+
...options
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Sum of the GrpcRequestCount metric
|
|
204
|
+
*
|
|
205
|
+
* @default - Sum over 5 minutes
|
|
206
|
+
*/
|
|
207
|
+
grpcRequestCount(options) {
|
|
208
|
+
return new cloudwatch.Metric({
|
|
209
|
+
namespace: "AWS/ApplicationELB",
|
|
210
|
+
metricName: "GrpcRequestCount",
|
|
211
|
+
dimensionsMap: this.dimensions,
|
|
212
|
+
statistic: "Sum",
|
|
213
|
+
...options
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Sum of the HTTP_Fixed_Response_Count metric
|
|
218
|
+
*
|
|
219
|
+
* @default - Sum over 5 minutes
|
|
220
|
+
*/
|
|
221
|
+
httpFixedResponseCount(options) {
|
|
222
|
+
return new cloudwatch.Metric({
|
|
223
|
+
namespace: "AWS/ApplicationELB",
|
|
224
|
+
metricName: "HTTP_Fixed_Response_Count",
|
|
225
|
+
dimensionsMap: this.dimensions,
|
|
226
|
+
statistic: "Sum",
|
|
227
|
+
...options
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Sum of the HTTP_Redirect_Count metric
|
|
232
|
+
*
|
|
233
|
+
* @default - Sum over 5 minutes
|
|
234
|
+
*/
|
|
235
|
+
httpRedirectCount(options) {
|
|
236
|
+
return new cloudwatch.Metric({
|
|
237
|
+
namespace: "AWS/ApplicationELB",
|
|
238
|
+
metricName: "HTTP_Redirect_Count",
|
|
239
|
+
dimensionsMap: this.dimensions,
|
|
240
|
+
statistic: "Sum",
|
|
241
|
+
...options
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Sum of the HTTP_Redirect_Url_Limit_Exceeded_Count metric
|
|
246
|
+
*
|
|
247
|
+
* @default - Sum over 5 minutes
|
|
248
|
+
*/
|
|
249
|
+
httpRedirectUrlLimitExceededCount(options) {
|
|
250
|
+
return new cloudwatch.Metric({
|
|
251
|
+
namespace: "AWS/ApplicationELB",
|
|
252
|
+
metricName: "HTTP_Redirect_Url_Limit_Exceeded_Count",
|
|
253
|
+
dimensionsMap: this.dimensions,
|
|
254
|
+
statistic: "Sum",
|
|
255
|
+
...options
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Sum of the HTTPCode_ELB_3XX_Count metric
|
|
260
|
+
*
|
|
261
|
+
* @default - Sum over 5 minutes
|
|
262
|
+
*/
|
|
263
|
+
httpCodeElb3xxCount(options) {
|
|
264
|
+
return new cloudwatch.Metric({
|
|
265
|
+
namespace: "AWS/ApplicationELB",
|
|
266
|
+
metricName: "HTTPCode_ELB_3XX_Count",
|
|
267
|
+
dimensionsMap: this.dimensions,
|
|
268
|
+
statistic: "Sum",
|
|
269
|
+
...options
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Sum of the HTTPCode_ELB_4XX_Count metric
|
|
274
|
+
*
|
|
275
|
+
* @default - Sum over 5 minutes
|
|
276
|
+
*/
|
|
277
|
+
httpCodeElb4xxCount(options) {
|
|
278
|
+
return new cloudwatch.Metric({
|
|
279
|
+
namespace: "AWS/ApplicationELB",
|
|
280
|
+
metricName: "HTTPCode_ELB_4XX_Count",
|
|
281
|
+
dimensionsMap: this.dimensions,
|
|
282
|
+
statistic: "Sum",
|
|
283
|
+
...options
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Sum of the HTTPCode_ELB_5XX_Count metric
|
|
288
|
+
*
|
|
289
|
+
* @default - Sum over 5 minutes
|
|
290
|
+
*/
|
|
291
|
+
httpCodeElb5xxCount(options) {
|
|
292
|
+
return new cloudwatch.Metric({
|
|
293
|
+
namespace: "AWS/ApplicationELB",
|
|
294
|
+
metricName: "HTTPCode_ELB_5XX_Count",
|
|
295
|
+
dimensionsMap: this.dimensions,
|
|
296
|
+
statistic: "Sum",
|
|
297
|
+
...options
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Sum of the HTTPCode_ELB_500_Count metric
|
|
302
|
+
*
|
|
303
|
+
* @default - Sum over 5 minutes
|
|
304
|
+
*/
|
|
305
|
+
httpCodeElb500Count(options) {
|
|
306
|
+
return new cloudwatch.Metric({
|
|
307
|
+
namespace: "AWS/ApplicationELB",
|
|
308
|
+
metricName: "HTTPCode_ELB_500_Count",
|
|
309
|
+
dimensionsMap: this.dimensions,
|
|
310
|
+
statistic: "Sum",
|
|
311
|
+
...options
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Sum of the HTTPCode_ELB_502_Count metric
|
|
316
|
+
*
|
|
317
|
+
* @default - Sum over 5 minutes
|
|
318
|
+
*/
|
|
319
|
+
httpCodeElb502Count(options) {
|
|
320
|
+
return new cloudwatch.Metric({
|
|
321
|
+
namespace: "AWS/ApplicationELB",
|
|
322
|
+
metricName: "HTTPCode_ELB_502_Count",
|
|
323
|
+
dimensionsMap: this.dimensions,
|
|
324
|
+
statistic: "Sum",
|
|
325
|
+
...options
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Sum of the HTTPCode_ELB_503_Count metric
|
|
330
|
+
*
|
|
331
|
+
* @default - Sum over 5 minutes
|
|
332
|
+
*/
|
|
333
|
+
httpCodeElb503Count(options) {
|
|
334
|
+
return new cloudwatch.Metric({
|
|
335
|
+
namespace: "AWS/ApplicationELB",
|
|
336
|
+
metricName: "HTTPCode_ELB_503_Count",
|
|
337
|
+
dimensionsMap: this.dimensions,
|
|
338
|
+
statistic: "Sum",
|
|
339
|
+
...options
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Sum of the HTTPCode_ELB_504_Count metric
|
|
344
|
+
*
|
|
345
|
+
* @default - Sum over 5 minutes
|
|
346
|
+
*/
|
|
347
|
+
httpCodeElb504Count(options) {
|
|
348
|
+
return new cloudwatch.Metric({
|
|
349
|
+
namespace: "AWS/ApplicationELB",
|
|
350
|
+
metricName: "HTTPCode_ELB_504_Count",
|
|
351
|
+
dimensionsMap: this.dimensions,
|
|
352
|
+
statistic: "Sum",
|
|
353
|
+
...options
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Sum of the HTTPCode_Target_2XX_Count metric
|
|
358
|
+
*
|
|
359
|
+
* @default - Sum over 5 minutes
|
|
360
|
+
*/
|
|
361
|
+
httpCodeTarget2xxCount(options) {
|
|
362
|
+
return new cloudwatch.Metric({
|
|
363
|
+
namespace: "AWS/ApplicationELB",
|
|
364
|
+
metricName: "HTTPCode_Target_2XX_Count",
|
|
365
|
+
dimensionsMap: this.dimensions,
|
|
366
|
+
statistic: "Sum",
|
|
367
|
+
...options
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Sum of the HTTPCode_Target_3XX_Count metric
|
|
372
|
+
*
|
|
373
|
+
* @default - Sum over 5 minutes
|
|
374
|
+
*/
|
|
375
|
+
httpCodeTarget3xxCount(options) {
|
|
376
|
+
return new cloudwatch.Metric({
|
|
377
|
+
namespace: "AWS/ApplicationELB",
|
|
378
|
+
metricName: "HTTPCode_Target_3XX_Count",
|
|
379
|
+
dimensionsMap: this.dimensions,
|
|
380
|
+
statistic: "Sum",
|
|
381
|
+
...options
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Sum of the HTTPCode_Target_4XX_Count metric
|
|
386
|
+
*
|
|
387
|
+
* @default - Sum over 5 minutes
|
|
388
|
+
*/
|
|
389
|
+
httpCodeTarget4xxCount(options) {
|
|
390
|
+
return new cloudwatch.Metric({
|
|
391
|
+
namespace: "AWS/ApplicationELB",
|
|
392
|
+
metricName: "HTTPCode_Target_4XX_Count",
|
|
393
|
+
dimensionsMap: this.dimensions,
|
|
394
|
+
statistic: "Sum",
|
|
395
|
+
...options
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Sum of the HTTPCode_Target_5XX_Count metric
|
|
400
|
+
*
|
|
401
|
+
* @default - Sum over 5 minutes
|
|
402
|
+
*/
|
|
403
|
+
httpCodeTarget5xxCount(options) {
|
|
404
|
+
return new cloudwatch.Metric({
|
|
405
|
+
namespace: "AWS/ApplicationELB",
|
|
406
|
+
metricName: "HTTPCode_Target_5XX_Count",
|
|
407
|
+
dimensionsMap: this.dimensions,
|
|
408
|
+
statistic: "Sum",
|
|
409
|
+
...options
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Sum of the IPv6ProcessedBytes metric
|
|
414
|
+
*
|
|
415
|
+
* @default - Sum over 5 minutes
|
|
416
|
+
*/
|
|
417
|
+
iPv6ProcessedBytes(options) {
|
|
418
|
+
return new cloudwatch.Metric({
|
|
419
|
+
namespace: "AWS/ApplicationELB",
|
|
420
|
+
metricName: "IPv6ProcessedBytes",
|
|
421
|
+
dimensionsMap: this.dimensions,
|
|
422
|
+
statistic: "Sum",
|
|
423
|
+
...options
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Sum of the IPv6RequestCount metric
|
|
428
|
+
*
|
|
429
|
+
* @default - Sum over 5 minutes
|
|
430
|
+
*/
|
|
431
|
+
iPv6RequestCount(options) {
|
|
432
|
+
return new cloudwatch.Metric({
|
|
433
|
+
namespace: "AWS/ApplicationELB",
|
|
434
|
+
metricName: "IPv6RequestCount",
|
|
435
|
+
dimensionsMap: this.dimensions,
|
|
436
|
+
statistic: "Sum",
|
|
437
|
+
...options
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Sum of the NewConnectionCount metric
|
|
442
|
+
*
|
|
443
|
+
* @default - Sum over 5 minutes
|
|
444
|
+
*/
|
|
445
|
+
newConnectionCount(options) {
|
|
446
|
+
return new cloudwatch.Metric({
|
|
447
|
+
namespace: "AWS/ApplicationELB",
|
|
448
|
+
metricName: "NewConnectionCount",
|
|
449
|
+
dimensionsMap: this.dimensions,
|
|
450
|
+
statistic: "Sum",
|
|
451
|
+
...options
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Sum of the NonStickyRequestCount metric
|
|
456
|
+
*
|
|
457
|
+
* @default - Sum over 5 minutes
|
|
458
|
+
*/
|
|
459
|
+
nonStickyRequestCount(options) {
|
|
460
|
+
return new cloudwatch.Metric({
|
|
461
|
+
namespace: "AWS/ApplicationELB",
|
|
462
|
+
metricName: "NonStickyRequestCount",
|
|
463
|
+
dimensionsMap: this.dimensions,
|
|
464
|
+
statistic: "Sum",
|
|
465
|
+
...options
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Sum of the ProcessedBytes metric
|
|
470
|
+
*
|
|
471
|
+
* @default - Sum over 5 minutes
|
|
472
|
+
*/
|
|
473
|
+
processedBytes(options) {
|
|
474
|
+
return new cloudwatch.Metric({
|
|
475
|
+
namespace: "AWS/ApplicationELB",
|
|
476
|
+
metricName: "ProcessedBytes",
|
|
477
|
+
dimensionsMap: this.dimensions,
|
|
478
|
+
statistic: "Sum",
|
|
479
|
+
...options
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Sum of the RejectedConnectionCount metric
|
|
484
|
+
*
|
|
485
|
+
* @default - Sum over 5 minutes
|
|
486
|
+
*/
|
|
487
|
+
rejectedConnectionCount(options) {
|
|
488
|
+
return new cloudwatch.Metric({
|
|
489
|
+
namespace: "AWS/ApplicationELB",
|
|
490
|
+
metricName: "RejectedConnectionCount",
|
|
491
|
+
dimensionsMap: this.dimensions,
|
|
492
|
+
statistic: "Sum",
|
|
493
|
+
...options
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Sum of the RequestCount metric
|
|
498
|
+
*
|
|
499
|
+
* @default - Sum over 5 minutes
|
|
500
|
+
*/
|
|
501
|
+
requestCount(options) {
|
|
502
|
+
return new cloudwatch.Metric({
|
|
503
|
+
namespace: "AWS/ApplicationELB",
|
|
504
|
+
metricName: "RequestCount",
|
|
505
|
+
dimensionsMap: this.dimensions,
|
|
506
|
+
statistic: "Sum",
|
|
507
|
+
...options
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Sum of the RuleEvaluations metric
|
|
512
|
+
*
|
|
513
|
+
* @default - Sum over 5 minutes
|
|
514
|
+
*/
|
|
515
|
+
ruleEvaluations(options) {
|
|
516
|
+
return new cloudwatch.Metric({
|
|
517
|
+
namespace: "AWS/ApplicationELB",
|
|
518
|
+
metricName: "RuleEvaluations",
|
|
519
|
+
dimensionsMap: this.dimensions,
|
|
520
|
+
statistic: "Sum",
|
|
521
|
+
...options
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Sum of the TargetConnectionErrorCount metric
|
|
526
|
+
*
|
|
527
|
+
* @default - Sum over 5 minutes
|
|
528
|
+
*/
|
|
529
|
+
targetConnectionErrorCount(options) {
|
|
530
|
+
return new cloudwatch.Metric({
|
|
531
|
+
namespace: "AWS/ApplicationELB",
|
|
532
|
+
metricName: "TargetConnectionErrorCount",
|
|
533
|
+
dimensionsMap: this.dimensions,
|
|
534
|
+
statistic: "Sum",
|
|
535
|
+
...options
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Average of the TargetResponseTime metric
|
|
540
|
+
*
|
|
541
|
+
* @default - Average over 5 minutes
|
|
542
|
+
*/
|
|
543
|
+
targetResponseTime(options) {
|
|
544
|
+
return new cloudwatch.Metric({
|
|
545
|
+
namespace: "AWS/ApplicationELB",
|
|
546
|
+
metricName: "TargetResponseTime",
|
|
547
|
+
dimensionsMap: this.dimensions,
|
|
548
|
+
statistic: "Average",
|
|
549
|
+
...options
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Sum of the TargetTLSNegotiationErrorCount metric
|
|
554
|
+
*
|
|
555
|
+
* @default - Sum over 5 minutes
|
|
556
|
+
*/
|
|
557
|
+
targetTlsNegotiationErrorCount(options) {
|
|
558
|
+
return new cloudwatch.Metric({
|
|
559
|
+
namespace: "AWS/ApplicationELB",
|
|
560
|
+
metricName: "TargetTLSNegotiationErrorCount",
|
|
561
|
+
dimensionsMap: this.dimensions,
|
|
562
|
+
statistic: "Sum",
|
|
563
|
+
...options
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Sum of the LambdaTargetProcessedBytes metric
|
|
568
|
+
*
|
|
569
|
+
* @default - Sum over 5 minutes
|
|
570
|
+
*/
|
|
571
|
+
lambdaTargetProcessedBytes(options) {
|
|
572
|
+
return new cloudwatch.Metric({
|
|
573
|
+
namespace: "AWS/ApplicationELB",
|
|
574
|
+
metricName: "LambdaTargetProcessedBytes",
|
|
575
|
+
dimensionsMap: this.dimensions,
|
|
576
|
+
statistic: "Sum",
|
|
577
|
+
...options
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
ApplicationELBMetrics.LoadBalancerMetrics = LoadBalancerMetrics;
|
|
582
|
+
/**
|
|
583
|
+
* Metrics for dimension set: AvailabilityZone {AvailabilityZone, LoadBalancer}
|
|
584
|
+
*
|
|
585
|
+
* @stability external
|
|
586
|
+
*/
|
|
587
|
+
class AvailabilityZoneMetrics {
|
|
588
|
+
dimensions;
|
|
589
|
+
constructor(props) {
|
|
590
|
+
this.dimensions = {
|
|
591
|
+
AvailabilityZone: props.availabilityZone,
|
|
592
|
+
LoadBalancer: props.loadBalancer
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Sum of the ClientTLSNegotiationErrorCount metric
|
|
597
|
+
*
|
|
598
|
+
* @default - Sum over 5 minutes
|
|
599
|
+
*/
|
|
600
|
+
clientTlsNegotiationErrorCount(options) {
|
|
601
|
+
return new cloudwatch.Metric({
|
|
602
|
+
namespace: "AWS/ApplicationELB",
|
|
603
|
+
metricName: "ClientTLSNegotiationErrorCount",
|
|
604
|
+
dimensionsMap: this.dimensions,
|
|
605
|
+
statistic: "Sum",
|
|
606
|
+
...options
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Sum of the DesyncMitigationMode_NonCompliant_Request_Count metric
|
|
611
|
+
*
|
|
612
|
+
* @default - Sum over 5 minutes
|
|
613
|
+
*/
|
|
614
|
+
desyncMitigationModeNonCompliantRequestCount(options) {
|
|
615
|
+
return new cloudwatch.Metric({
|
|
616
|
+
namespace: "AWS/ApplicationELB",
|
|
617
|
+
metricName: "DesyncMitigationMode_NonCompliant_Request_Count",
|
|
618
|
+
dimensionsMap: this.dimensions,
|
|
619
|
+
statistic: "Sum",
|
|
620
|
+
...options
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Sum of the ELBAuthError metric
|
|
625
|
+
*
|
|
626
|
+
* @default - Sum over 5 minutes
|
|
627
|
+
*/
|
|
628
|
+
elbAuthError(options) {
|
|
629
|
+
return new cloudwatch.Metric({
|
|
630
|
+
namespace: "AWS/ApplicationELB",
|
|
631
|
+
metricName: "ELBAuthError",
|
|
632
|
+
dimensionsMap: this.dimensions,
|
|
633
|
+
statistic: "Sum",
|
|
634
|
+
...options
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Sum of the ELBAuthFailure metric
|
|
639
|
+
*
|
|
640
|
+
* @default - Sum over 5 minutes
|
|
641
|
+
*/
|
|
642
|
+
elbAuthFailure(options) {
|
|
643
|
+
return new cloudwatch.Metric({
|
|
644
|
+
namespace: "AWS/ApplicationELB",
|
|
645
|
+
metricName: "ELBAuthFailure",
|
|
646
|
+
dimensionsMap: this.dimensions,
|
|
647
|
+
statistic: "Sum",
|
|
648
|
+
...options
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Sum of the ELBAuthLatency metric
|
|
653
|
+
*
|
|
654
|
+
* @default - Sum over 5 minutes
|
|
655
|
+
*/
|
|
656
|
+
elbAuthLatency(options) {
|
|
657
|
+
return new cloudwatch.Metric({
|
|
658
|
+
namespace: "AWS/ApplicationELB",
|
|
659
|
+
metricName: "ELBAuthLatency",
|
|
660
|
+
dimensionsMap: this.dimensions,
|
|
661
|
+
statistic: "Sum",
|
|
662
|
+
...options
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Sum of the ELBAuthRefreshTokenSuccess metric
|
|
667
|
+
*
|
|
668
|
+
* @default - Sum over 5 minutes
|
|
669
|
+
*/
|
|
670
|
+
elbAuthRefreshTokenSuccess(options) {
|
|
671
|
+
return new cloudwatch.Metric({
|
|
672
|
+
namespace: "AWS/ApplicationELB",
|
|
673
|
+
metricName: "ELBAuthRefreshTokenSuccess",
|
|
674
|
+
dimensionsMap: this.dimensions,
|
|
675
|
+
statistic: "Sum",
|
|
676
|
+
...options
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Sum of the ELBAuthSuccess metric
|
|
681
|
+
*
|
|
682
|
+
* @default - Sum over 5 minutes
|
|
683
|
+
*/
|
|
684
|
+
elbAuthSuccess(options) {
|
|
685
|
+
return new cloudwatch.Metric({
|
|
686
|
+
namespace: "AWS/ApplicationELB",
|
|
687
|
+
metricName: "ELBAuthSuccess",
|
|
688
|
+
dimensionsMap: this.dimensions,
|
|
689
|
+
statistic: "Sum",
|
|
690
|
+
...options
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Sum of the ELBAuthUserClaimsSizeExceeded metric
|
|
695
|
+
*
|
|
696
|
+
* @default - Sum over 5 minutes
|
|
697
|
+
*/
|
|
698
|
+
elbAuthUserClaimsSizeExceeded(options) {
|
|
699
|
+
return new cloudwatch.Metric({
|
|
700
|
+
namespace: "AWS/ApplicationELB",
|
|
701
|
+
metricName: "ELBAuthUserClaimsSizeExceeded",
|
|
702
|
+
dimensionsMap: this.dimensions,
|
|
703
|
+
statistic: "Sum",
|
|
704
|
+
...options
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Sum of the HTTP_Fixed_Response_Count metric
|
|
709
|
+
*
|
|
710
|
+
* @default - Sum over 5 minutes
|
|
711
|
+
*/
|
|
712
|
+
httpFixedResponseCount(options) {
|
|
713
|
+
return new cloudwatch.Metric({
|
|
714
|
+
namespace: "AWS/ApplicationELB",
|
|
715
|
+
metricName: "HTTP_Fixed_Response_Count",
|
|
716
|
+
dimensionsMap: this.dimensions,
|
|
717
|
+
statistic: "Sum",
|
|
718
|
+
...options
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Sum of the HTTP_Redirect_Count metric
|
|
723
|
+
*
|
|
724
|
+
* @default - Sum over 5 minutes
|
|
725
|
+
*/
|
|
726
|
+
httpRedirectCount(options) {
|
|
727
|
+
return new cloudwatch.Metric({
|
|
728
|
+
namespace: "AWS/ApplicationELB",
|
|
729
|
+
metricName: "HTTP_Redirect_Count",
|
|
730
|
+
dimensionsMap: this.dimensions,
|
|
731
|
+
statistic: "Sum",
|
|
732
|
+
...options
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Sum of the HTTP_Redirect_Url_Limit_Exceeded_Count metric
|
|
737
|
+
*
|
|
738
|
+
* @default - Sum over 5 minutes
|
|
739
|
+
*/
|
|
740
|
+
httpRedirectUrlLimitExceededCount(options) {
|
|
741
|
+
return new cloudwatch.Metric({
|
|
742
|
+
namespace: "AWS/ApplicationELB",
|
|
743
|
+
metricName: "HTTP_Redirect_Url_Limit_Exceeded_Count",
|
|
744
|
+
dimensionsMap: this.dimensions,
|
|
745
|
+
statistic: "Sum",
|
|
746
|
+
...options
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Sum of the HTTPCode_ELB_3XX_Count metric
|
|
751
|
+
*
|
|
752
|
+
* @default - Sum over 5 minutes
|
|
753
|
+
*/
|
|
754
|
+
httpCodeElb3xxCount(options) {
|
|
755
|
+
return new cloudwatch.Metric({
|
|
756
|
+
namespace: "AWS/ApplicationELB",
|
|
757
|
+
metricName: "HTTPCode_ELB_3XX_Count",
|
|
758
|
+
dimensionsMap: this.dimensions,
|
|
759
|
+
statistic: "Sum",
|
|
760
|
+
...options
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Sum of the HTTPCode_ELB_4XX_Count metric
|
|
765
|
+
*
|
|
766
|
+
* @default - Sum over 5 minutes
|
|
767
|
+
*/
|
|
768
|
+
httpCodeElb4xxCount(options) {
|
|
769
|
+
return new cloudwatch.Metric({
|
|
770
|
+
namespace: "AWS/ApplicationELB",
|
|
771
|
+
metricName: "HTTPCode_ELB_4XX_Count",
|
|
772
|
+
dimensionsMap: this.dimensions,
|
|
773
|
+
statistic: "Sum",
|
|
774
|
+
...options
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Sum of the HTTPCode_ELB_5XX_Count metric
|
|
779
|
+
*
|
|
780
|
+
* @default - Sum over 5 minutes
|
|
781
|
+
*/
|
|
782
|
+
httpCodeElb5xxCount(options) {
|
|
783
|
+
return new cloudwatch.Metric({
|
|
784
|
+
namespace: "AWS/ApplicationELB",
|
|
785
|
+
metricName: "HTTPCode_ELB_5XX_Count",
|
|
786
|
+
dimensionsMap: this.dimensions,
|
|
787
|
+
statistic: "Sum",
|
|
788
|
+
...options
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Sum of the HTTPCode_Target_2XX_Count metric
|
|
793
|
+
*
|
|
794
|
+
* @default - Sum over 5 minutes
|
|
795
|
+
*/
|
|
796
|
+
httpCodeTarget2xxCount(options) {
|
|
797
|
+
return new cloudwatch.Metric({
|
|
798
|
+
namespace: "AWS/ApplicationELB",
|
|
799
|
+
metricName: "HTTPCode_Target_2XX_Count",
|
|
800
|
+
dimensionsMap: this.dimensions,
|
|
801
|
+
statistic: "Sum",
|
|
802
|
+
...options
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Sum of the HTTPCode_Target_3XX_Count metric
|
|
807
|
+
*
|
|
808
|
+
* @default - Sum over 5 minutes
|
|
809
|
+
*/
|
|
810
|
+
httpCodeTarget3xxCount(options) {
|
|
811
|
+
return new cloudwatch.Metric({
|
|
812
|
+
namespace: "AWS/ApplicationELB",
|
|
813
|
+
metricName: "HTTPCode_Target_3XX_Count",
|
|
814
|
+
dimensionsMap: this.dimensions,
|
|
815
|
+
statistic: "Sum",
|
|
816
|
+
...options
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* Sum of the HTTPCode_Target_4XX_Count metric
|
|
821
|
+
*
|
|
822
|
+
* @default - Sum over 5 minutes
|
|
823
|
+
*/
|
|
824
|
+
httpCodeTarget4xxCount(options) {
|
|
825
|
+
return new cloudwatch.Metric({
|
|
826
|
+
namespace: "AWS/ApplicationELB",
|
|
827
|
+
metricName: "HTTPCode_Target_4XX_Count",
|
|
828
|
+
dimensionsMap: this.dimensions,
|
|
829
|
+
statistic: "Sum",
|
|
830
|
+
...options
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Sum of the HTTPCode_Target_5XX_Count metric
|
|
835
|
+
*
|
|
836
|
+
* @default - Sum over 5 minutes
|
|
837
|
+
*/
|
|
838
|
+
httpCodeTarget5xxCount(options) {
|
|
839
|
+
return new cloudwatch.Metric({
|
|
840
|
+
namespace: "AWS/ApplicationELB",
|
|
841
|
+
metricName: "HTTPCode_Target_5XX_Count",
|
|
842
|
+
dimensionsMap: this.dimensions,
|
|
843
|
+
statistic: "Sum",
|
|
844
|
+
...options
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* Sum of the NonStickyRequestCount metric
|
|
849
|
+
*
|
|
850
|
+
* @default - Sum over 5 minutes
|
|
851
|
+
*/
|
|
852
|
+
nonStickyRequestCount(options) {
|
|
853
|
+
return new cloudwatch.Metric({
|
|
854
|
+
namespace: "AWS/ApplicationELB",
|
|
855
|
+
metricName: "NonStickyRequestCount",
|
|
856
|
+
dimensionsMap: this.dimensions,
|
|
857
|
+
statistic: "Sum",
|
|
858
|
+
...options
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Sum of the RejectedConnectionCount metric
|
|
863
|
+
*
|
|
864
|
+
* @default - Sum over 5 minutes
|
|
865
|
+
*/
|
|
866
|
+
rejectedConnectionCount(options) {
|
|
867
|
+
return new cloudwatch.Metric({
|
|
868
|
+
namespace: "AWS/ApplicationELB",
|
|
869
|
+
metricName: "RejectedConnectionCount",
|
|
870
|
+
dimensionsMap: this.dimensions,
|
|
871
|
+
statistic: "Sum",
|
|
872
|
+
...options
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Sum of the TargetConnectionErrorCount metric
|
|
877
|
+
*
|
|
878
|
+
* @default - Sum over 5 minutes
|
|
879
|
+
*/
|
|
880
|
+
targetConnectionErrorCount(options) {
|
|
881
|
+
return new cloudwatch.Metric({
|
|
882
|
+
namespace: "AWS/ApplicationELB",
|
|
883
|
+
metricName: "TargetConnectionErrorCount",
|
|
884
|
+
dimensionsMap: this.dimensions,
|
|
885
|
+
statistic: "Sum",
|
|
886
|
+
...options
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* Average of the TargetResponseTime metric
|
|
891
|
+
*
|
|
892
|
+
* @default - Average over 5 minutes
|
|
893
|
+
*/
|
|
894
|
+
targetResponseTime(options) {
|
|
895
|
+
return new cloudwatch.Metric({
|
|
896
|
+
namespace: "AWS/ApplicationELB",
|
|
897
|
+
metricName: "TargetResponseTime",
|
|
898
|
+
dimensionsMap: this.dimensions,
|
|
899
|
+
statistic: "Average",
|
|
900
|
+
...options
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Sum of the TargetTLSNegotiationErrorCount metric
|
|
905
|
+
*
|
|
906
|
+
* @default - Sum over 5 minutes
|
|
907
|
+
*/
|
|
908
|
+
targetTlsNegotiationErrorCount(options) {
|
|
909
|
+
return new cloudwatch.Metric({
|
|
910
|
+
namespace: "AWS/ApplicationELB",
|
|
911
|
+
metricName: "TargetTLSNegotiationErrorCount",
|
|
912
|
+
dimensionsMap: this.dimensions,
|
|
913
|
+
statistic: "Sum",
|
|
914
|
+
...options
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Sum of the DroppedInvalidHeaderRequestCount metric
|
|
919
|
+
*
|
|
920
|
+
* @default - Sum over 5 minutes
|
|
921
|
+
*/
|
|
922
|
+
droppedInvalidHeaderRequestCount(options) {
|
|
923
|
+
return new cloudwatch.Metric({
|
|
924
|
+
namespace: "AWS/ApplicationELB",
|
|
925
|
+
metricName: "DroppedInvalidHeaderRequestCount",
|
|
926
|
+
dimensionsMap: this.dimensions,
|
|
927
|
+
statistic: "Sum",
|
|
928
|
+
...options
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Sum of the ForwardedInvalidHeaderRequestCount metric
|
|
933
|
+
*
|
|
934
|
+
* @default - Sum over 5 minutes
|
|
935
|
+
*/
|
|
936
|
+
forwardedInvalidHeaderRequestCount(options) {
|
|
937
|
+
return new cloudwatch.Metric({
|
|
938
|
+
namespace: "AWS/ApplicationELB",
|
|
939
|
+
metricName: "ForwardedInvalidHeaderRequestCount",
|
|
940
|
+
dimensionsMap: this.dimensions,
|
|
941
|
+
statistic: "Sum",
|
|
942
|
+
...options
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
ApplicationELBMetrics.AvailabilityZoneMetrics = AvailabilityZoneMetrics;
|
|
947
|
+
/**
|
|
948
|
+
* Metrics for dimension set: TargetGroupPerLoadBalancer {LoadBalancer, TargetGroup}
|
|
949
|
+
*
|
|
950
|
+
* @stability external
|
|
951
|
+
*/
|
|
952
|
+
class TargetGroupPerLoadBalancerMetrics {
|
|
953
|
+
dimensions;
|
|
954
|
+
constructor(props) {
|
|
955
|
+
this.dimensions = {
|
|
956
|
+
LoadBalancer: props.loadBalancer,
|
|
957
|
+
TargetGroup: props.targetGroup
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Sum of the HTTPCode_Target_2XX_Count metric
|
|
962
|
+
*
|
|
963
|
+
* @default - Sum over 5 minutes
|
|
964
|
+
*/
|
|
965
|
+
httpCodeTarget2xxCount(options) {
|
|
966
|
+
return new cloudwatch.Metric({
|
|
967
|
+
namespace: "AWS/ApplicationELB",
|
|
968
|
+
metricName: "HTTPCode_Target_2XX_Count",
|
|
969
|
+
dimensionsMap: this.dimensions,
|
|
970
|
+
statistic: "Sum",
|
|
971
|
+
...options
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Sum of the HTTPCode_Target_3XX_Count metric
|
|
976
|
+
*
|
|
977
|
+
* @default - Sum over 5 minutes
|
|
978
|
+
*/
|
|
979
|
+
httpCodeTarget3xxCount(options) {
|
|
980
|
+
return new cloudwatch.Metric({
|
|
981
|
+
namespace: "AWS/ApplicationELB",
|
|
982
|
+
metricName: "HTTPCode_Target_3XX_Count",
|
|
983
|
+
dimensionsMap: this.dimensions,
|
|
984
|
+
statistic: "Sum",
|
|
985
|
+
...options
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Sum of the HTTPCode_Target_4XX_Count metric
|
|
990
|
+
*
|
|
991
|
+
* @default - Sum over 5 minutes
|
|
992
|
+
*/
|
|
993
|
+
httpCodeTarget4xxCount(options) {
|
|
994
|
+
return new cloudwatch.Metric({
|
|
995
|
+
namespace: "AWS/ApplicationELB",
|
|
996
|
+
metricName: "HTTPCode_Target_4XX_Count",
|
|
997
|
+
dimensionsMap: this.dimensions,
|
|
998
|
+
statistic: "Sum",
|
|
999
|
+
...options
|
|
1000
|
+
});
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Sum of the HTTPCode_Target_5XX_Count metric
|
|
1004
|
+
*
|
|
1005
|
+
* @default - Sum over 5 minutes
|
|
1006
|
+
*/
|
|
1007
|
+
httpCodeTarget5xxCount(options) {
|
|
1008
|
+
return new cloudwatch.Metric({
|
|
1009
|
+
namespace: "AWS/ApplicationELB",
|
|
1010
|
+
metricName: "HTTPCode_Target_5XX_Count",
|
|
1011
|
+
dimensionsMap: this.dimensions,
|
|
1012
|
+
statistic: "Sum",
|
|
1013
|
+
...options
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Sum of the RequestCount metric
|
|
1018
|
+
*
|
|
1019
|
+
* @default - Sum over 5 minutes
|
|
1020
|
+
*/
|
|
1021
|
+
requestCount(options) {
|
|
1022
|
+
return new cloudwatch.Metric({
|
|
1023
|
+
namespace: "AWS/ApplicationELB",
|
|
1024
|
+
metricName: "RequestCount",
|
|
1025
|
+
dimensionsMap: this.dimensions,
|
|
1026
|
+
statistic: "Sum",
|
|
1027
|
+
...options
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* Sum of the TargetConnectionErrorCount metric
|
|
1032
|
+
*
|
|
1033
|
+
* @default - Sum over 5 minutes
|
|
1034
|
+
*/
|
|
1035
|
+
targetConnectionErrorCount(options) {
|
|
1036
|
+
return new cloudwatch.Metric({
|
|
1037
|
+
namespace: "AWS/ApplicationELB",
|
|
1038
|
+
metricName: "TargetConnectionErrorCount",
|
|
1039
|
+
dimensionsMap: this.dimensions,
|
|
1040
|
+
statistic: "Sum",
|
|
1041
|
+
...options
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Average of the TargetResponseTime metric
|
|
1046
|
+
*
|
|
1047
|
+
* @default - Average over 5 minutes
|
|
1048
|
+
*/
|
|
1049
|
+
targetResponseTime(options) {
|
|
1050
|
+
return new cloudwatch.Metric({
|
|
1051
|
+
namespace: "AWS/ApplicationELB",
|
|
1052
|
+
metricName: "TargetResponseTime",
|
|
1053
|
+
dimensionsMap: this.dimensions,
|
|
1054
|
+
statistic: "Average",
|
|
1055
|
+
...options
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Sum of the TargetTLSNegotiationErrorCount metric
|
|
1060
|
+
*
|
|
1061
|
+
* @default - Sum over 5 minutes
|
|
1062
|
+
*/
|
|
1063
|
+
targetTlsNegotiationErrorCount(options) {
|
|
1064
|
+
return new cloudwatch.Metric({
|
|
1065
|
+
namespace: "AWS/ApplicationELB",
|
|
1066
|
+
metricName: "TargetTLSNegotiationErrorCount",
|
|
1067
|
+
dimensionsMap: this.dimensions,
|
|
1068
|
+
statistic: "Sum",
|
|
1069
|
+
...options
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Sum of the RequestCountPerTarget metric
|
|
1074
|
+
*
|
|
1075
|
+
* @default - Sum over 5 minutes
|
|
1076
|
+
*/
|
|
1077
|
+
requestCountPerTarget(options) {
|
|
1078
|
+
return new cloudwatch.Metric({
|
|
1079
|
+
namespace: "AWS/ApplicationELB",
|
|
1080
|
+
metricName: "RequestCountPerTarget",
|
|
1081
|
+
dimensionsMap: this.dimensions,
|
|
1082
|
+
statistic: "Sum",
|
|
1083
|
+
...options
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Sum of the LambdaInternalError metric
|
|
1088
|
+
*
|
|
1089
|
+
* @default - Sum over 5 minutes
|
|
1090
|
+
*/
|
|
1091
|
+
lambdaInternalError(options) {
|
|
1092
|
+
return new cloudwatch.Metric({
|
|
1093
|
+
namespace: "AWS/ApplicationELB",
|
|
1094
|
+
metricName: "LambdaInternalError",
|
|
1095
|
+
dimensionsMap: this.dimensions,
|
|
1096
|
+
statistic: "Sum",
|
|
1097
|
+
...options
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Sum of the LambdaUserError metric
|
|
1102
|
+
*
|
|
1103
|
+
* @default - Sum over 5 minutes
|
|
1104
|
+
*/
|
|
1105
|
+
lambdaUserError(options) {
|
|
1106
|
+
return new cloudwatch.Metric({
|
|
1107
|
+
namespace: "AWS/ApplicationELB",
|
|
1108
|
+
metricName: "LambdaUserError",
|
|
1109
|
+
dimensionsMap: this.dimensions,
|
|
1110
|
+
statistic: "Sum",
|
|
1111
|
+
...options
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Average of the HealthyHostCount metric
|
|
1116
|
+
*
|
|
1117
|
+
* @default - Average over 5 minutes
|
|
1118
|
+
*/
|
|
1119
|
+
healthyHostCount(options) {
|
|
1120
|
+
return new cloudwatch.Metric({
|
|
1121
|
+
namespace: "AWS/ApplicationELB",
|
|
1122
|
+
metricName: "HealthyHostCount",
|
|
1123
|
+
dimensionsMap: this.dimensions,
|
|
1124
|
+
statistic: "Average",
|
|
1125
|
+
...options
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* Average of the UnHealthyHostCount metric
|
|
1130
|
+
*
|
|
1131
|
+
* @default - Average over 5 minutes
|
|
1132
|
+
*/
|
|
1133
|
+
unHealthyHostCount(options) {
|
|
1134
|
+
return new cloudwatch.Metric({
|
|
1135
|
+
namespace: "AWS/ApplicationELB",
|
|
1136
|
+
metricName: "UnHealthyHostCount",
|
|
1137
|
+
dimensionsMap: this.dimensions,
|
|
1138
|
+
statistic: "Average",
|
|
1139
|
+
...options
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
ApplicationELBMetrics.TargetGroupPerLoadBalancerMetrics = TargetGroupPerLoadBalancerMetrics;
|
|
1144
|
+
/**
|
|
1145
|
+
* Metrics for dimension set: AvailabilityZonePerTargetGroup {AvailabilityZone, LoadBalancer, TargetGroup}
|
|
1146
|
+
*
|
|
1147
|
+
* @stability external
|
|
1148
|
+
*/
|
|
1149
|
+
class AvailabilityZonePerTargetGroupMetrics {
|
|
1150
|
+
dimensions;
|
|
1151
|
+
constructor(props) {
|
|
1152
|
+
this.dimensions = {
|
|
1153
|
+
AvailabilityZone: props.availabilityZone,
|
|
1154
|
+
LoadBalancer: props.loadBalancer,
|
|
1155
|
+
TargetGroup: props.targetGroup
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Sum of the HTTPCode_Target_2XX_Count metric
|
|
1160
|
+
*
|
|
1161
|
+
* @default - Sum over 5 minutes
|
|
1162
|
+
*/
|
|
1163
|
+
httpCodeTarget2xxCount(options) {
|
|
1164
|
+
return new cloudwatch.Metric({
|
|
1165
|
+
namespace: "AWS/ApplicationELB",
|
|
1166
|
+
metricName: "HTTPCode_Target_2XX_Count",
|
|
1167
|
+
dimensionsMap: this.dimensions,
|
|
1168
|
+
statistic: "Sum",
|
|
1169
|
+
...options
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* Sum of the HTTPCode_Target_3XX_Count metric
|
|
1174
|
+
*
|
|
1175
|
+
* @default - Sum over 5 minutes
|
|
1176
|
+
*/
|
|
1177
|
+
httpCodeTarget3xxCount(options) {
|
|
1178
|
+
return new cloudwatch.Metric({
|
|
1179
|
+
namespace: "AWS/ApplicationELB",
|
|
1180
|
+
metricName: "HTTPCode_Target_3XX_Count",
|
|
1181
|
+
dimensionsMap: this.dimensions,
|
|
1182
|
+
statistic: "Sum",
|
|
1183
|
+
...options
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Sum of the HTTPCode_Target_4XX_Count metric
|
|
1188
|
+
*
|
|
1189
|
+
* @default - Sum over 5 minutes
|
|
1190
|
+
*/
|
|
1191
|
+
httpCodeTarget4xxCount(options) {
|
|
1192
|
+
return new cloudwatch.Metric({
|
|
1193
|
+
namespace: "AWS/ApplicationELB",
|
|
1194
|
+
metricName: "HTTPCode_Target_4XX_Count",
|
|
1195
|
+
dimensionsMap: this.dimensions,
|
|
1196
|
+
statistic: "Sum",
|
|
1197
|
+
...options
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Sum of the HTTPCode_Target_5XX_Count metric
|
|
1202
|
+
*
|
|
1203
|
+
* @default - Sum over 5 minutes
|
|
1204
|
+
*/
|
|
1205
|
+
httpCodeTarget5xxCount(options) {
|
|
1206
|
+
return new cloudwatch.Metric({
|
|
1207
|
+
namespace: "AWS/ApplicationELB",
|
|
1208
|
+
metricName: "HTTPCode_Target_5XX_Count",
|
|
1209
|
+
dimensionsMap: this.dimensions,
|
|
1210
|
+
statistic: "Sum",
|
|
1211
|
+
...options
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Sum of the TargetConnectionErrorCount metric
|
|
1216
|
+
*
|
|
1217
|
+
* @default - Sum over 5 minutes
|
|
1218
|
+
*/
|
|
1219
|
+
targetConnectionErrorCount(options) {
|
|
1220
|
+
return new cloudwatch.Metric({
|
|
1221
|
+
namespace: "AWS/ApplicationELB",
|
|
1222
|
+
metricName: "TargetConnectionErrorCount",
|
|
1223
|
+
dimensionsMap: this.dimensions,
|
|
1224
|
+
statistic: "Sum",
|
|
1225
|
+
...options
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* Average of the TargetResponseTime metric
|
|
1230
|
+
*
|
|
1231
|
+
* @default - Average over 5 minutes
|
|
1232
|
+
*/
|
|
1233
|
+
targetResponseTime(options) {
|
|
1234
|
+
return new cloudwatch.Metric({
|
|
1235
|
+
namespace: "AWS/ApplicationELB",
|
|
1236
|
+
metricName: "TargetResponseTime",
|
|
1237
|
+
dimensionsMap: this.dimensions,
|
|
1238
|
+
statistic: "Average",
|
|
1239
|
+
...options
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Sum of the TargetTLSNegotiationErrorCount metric
|
|
1244
|
+
*
|
|
1245
|
+
* @default - Sum over 5 minutes
|
|
1246
|
+
*/
|
|
1247
|
+
targetTlsNegotiationErrorCount(options) {
|
|
1248
|
+
return new cloudwatch.Metric({
|
|
1249
|
+
namespace: "AWS/ApplicationELB",
|
|
1250
|
+
metricName: "TargetTLSNegotiationErrorCount",
|
|
1251
|
+
dimensionsMap: this.dimensions,
|
|
1252
|
+
statistic: "Sum",
|
|
1253
|
+
...options
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Average of the HealthyHostCount metric
|
|
1258
|
+
*
|
|
1259
|
+
* @default - Average over 5 minutes
|
|
1260
|
+
*/
|
|
1261
|
+
healthyHostCount(options) {
|
|
1262
|
+
return new cloudwatch.Metric({
|
|
1263
|
+
namespace: "AWS/ApplicationELB",
|
|
1264
|
+
metricName: "HealthyHostCount",
|
|
1265
|
+
dimensionsMap: this.dimensions,
|
|
1266
|
+
statistic: "Average",
|
|
1267
|
+
...options
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Average of the UnHealthyHostCount metric
|
|
1272
|
+
*
|
|
1273
|
+
* @default - Average over 5 minutes
|
|
1274
|
+
*/
|
|
1275
|
+
unHealthyHostCount(options) {
|
|
1276
|
+
return new cloudwatch.Metric({
|
|
1277
|
+
namespace: "AWS/ApplicationELB",
|
|
1278
|
+
metricName: "UnHealthyHostCount",
|
|
1279
|
+
dimensionsMap: this.dimensions,
|
|
1280
|
+
statistic: "Average",
|
|
1281
|
+
...options
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
ApplicationELBMetrics.AvailabilityZonePerTargetGroupMetrics = AvailabilityZonePerTargetGroupMetrics;
|
|
1286
|
+
/**
|
|
1287
|
+
* Metrics for dimension set: TargetGroup {TargetGroup}
|
|
1288
|
+
*
|
|
1289
|
+
* @stability external
|
|
1290
|
+
*/
|
|
1291
|
+
class TargetGroupMetrics {
|
|
1292
|
+
dimensions;
|
|
1293
|
+
constructor(props) {
|
|
1294
|
+
this.dimensions = {
|
|
1295
|
+
TargetGroup: props.targetGroup
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* Sum of the RequestCountPerTarget metric
|
|
1300
|
+
*
|
|
1301
|
+
* @default - Sum over 5 minutes
|
|
1302
|
+
*/
|
|
1303
|
+
requestCountPerTarget(options) {
|
|
1304
|
+
return new cloudwatch.Metric({
|
|
1305
|
+
namespace: "AWS/ApplicationELB",
|
|
1306
|
+
metricName: "RequestCountPerTarget",
|
|
1307
|
+
dimensionsMap: this.dimensions,
|
|
1308
|
+
statistic: "Sum",
|
|
1309
|
+
...options
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Sum of the LambdaInternalError metric
|
|
1314
|
+
*
|
|
1315
|
+
* @default - Sum over 5 minutes
|
|
1316
|
+
*/
|
|
1317
|
+
lambdaInternalError(options) {
|
|
1318
|
+
return new cloudwatch.Metric({
|
|
1319
|
+
namespace: "AWS/ApplicationELB",
|
|
1320
|
+
metricName: "LambdaInternalError",
|
|
1321
|
+
dimensionsMap: this.dimensions,
|
|
1322
|
+
statistic: "Sum",
|
|
1323
|
+
...options
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Sum of the LambdaUserError metric
|
|
1328
|
+
*
|
|
1329
|
+
* @default - Sum over 5 minutes
|
|
1330
|
+
*/
|
|
1331
|
+
lambdaUserError(options) {
|
|
1332
|
+
return new cloudwatch.Metric({
|
|
1333
|
+
namespace: "AWS/ApplicationELB",
|
|
1334
|
+
metricName: "LambdaUserError",
|
|
1335
|
+
dimensionsMap: this.dimensions,
|
|
1336
|
+
statistic: "Sum",
|
|
1337
|
+
...options
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
ApplicationELBMetrics.TargetGroupMetrics = TargetGroupMetrics;
|
|
1342
|
+
})(ApplicationELBMetrics || (exports.ApplicationELBMetrics = ApplicationELBMetrics = {}));
|
|
1343
|
+
/**
|
|
1344
|
+
* CloudWatch metrics facade for AWS/GatewayELB
|
|
1345
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
1346
|
+
* for selected resources if available.
|
|
1347
|
+
*
|
|
1348
|
+
* @stability external
|
|
1349
|
+
*/
|
|
1350
|
+
class GatewayELBMetrics {
|
|
1351
|
+
}
|
|
1352
|
+
exports.GatewayELBMetrics = GatewayELBMetrics;
|
|
1353
|
+
(function (GatewayELBMetrics) {
|
|
1354
|
+
/**
|
|
1355
|
+
* Metrics for dimension set: LoadBalancer {LoadBalancer}
|
|
1356
|
+
*
|
|
1357
|
+
* @stability external
|
|
1358
|
+
*/
|
|
1359
|
+
class LoadBalancerMetrics {
|
|
1360
|
+
dimensions;
|
|
1361
|
+
constructor(props) {
|
|
1362
|
+
this.dimensions = {
|
|
1363
|
+
LoadBalancer: props.loadBalancer
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Average of the HealthyHostCount metric
|
|
1368
|
+
*
|
|
1369
|
+
* @default - Average over 5 minutes
|
|
1370
|
+
*/
|
|
1371
|
+
healthyHostCount(options) {
|
|
1372
|
+
return new cloudwatch.Metric({
|
|
1373
|
+
namespace: "AWS/GatewayELB",
|
|
1374
|
+
metricName: "HealthyHostCount",
|
|
1375
|
+
dimensionsMap: this.dimensions,
|
|
1376
|
+
statistic: "Average",
|
|
1377
|
+
...options
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Average of the UnHealthyHostCount metric
|
|
1382
|
+
*
|
|
1383
|
+
* @default - Average over 5 minutes
|
|
1384
|
+
*/
|
|
1385
|
+
unHealthyHostCount(options) {
|
|
1386
|
+
return new cloudwatch.Metric({
|
|
1387
|
+
namespace: "AWS/GatewayELB",
|
|
1388
|
+
metricName: "UnHealthyHostCount",
|
|
1389
|
+
dimensionsMap: this.dimensions,
|
|
1390
|
+
statistic: "Average",
|
|
1391
|
+
...options
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Sum of the ActiveFlowCount metric
|
|
1396
|
+
*
|
|
1397
|
+
* @default - Sum over 5 minutes
|
|
1398
|
+
*/
|
|
1399
|
+
activeFlowCount(options) {
|
|
1400
|
+
return new cloudwatch.Metric({
|
|
1401
|
+
namespace: "AWS/GatewayELB",
|
|
1402
|
+
metricName: "ActiveFlowCount",
|
|
1403
|
+
dimensionsMap: this.dimensions,
|
|
1404
|
+
statistic: "Sum",
|
|
1405
|
+
...options
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Average of the ConsumedLCUs metric
|
|
1410
|
+
*
|
|
1411
|
+
* @default - Average over 5 minutes
|
|
1412
|
+
*/
|
|
1413
|
+
consumedLcUs(options) {
|
|
1414
|
+
return new cloudwatch.Metric({
|
|
1415
|
+
namespace: "AWS/GatewayELB",
|
|
1416
|
+
metricName: "ConsumedLCUs",
|
|
1417
|
+
dimensionsMap: this.dimensions,
|
|
1418
|
+
statistic: "Average",
|
|
1419
|
+
...options
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* Sum of the NewFlowCount metric
|
|
1424
|
+
*
|
|
1425
|
+
* @default - Sum over 5 minutes
|
|
1426
|
+
*/
|
|
1427
|
+
newFlowCount(options) {
|
|
1428
|
+
return new cloudwatch.Metric({
|
|
1429
|
+
namespace: "AWS/GatewayELB",
|
|
1430
|
+
metricName: "NewFlowCount",
|
|
1431
|
+
dimensionsMap: this.dimensions,
|
|
1432
|
+
statistic: "Sum",
|
|
1433
|
+
...options
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Sum of the ProcessedBytes metric
|
|
1438
|
+
*
|
|
1439
|
+
* @default - Sum over 5 minutes
|
|
1440
|
+
*/
|
|
1441
|
+
processedBytes(options) {
|
|
1442
|
+
return new cloudwatch.Metric({
|
|
1443
|
+
namespace: "AWS/GatewayELB",
|
|
1444
|
+
metricName: "ProcessedBytes",
|
|
1445
|
+
dimensionsMap: this.dimensions,
|
|
1446
|
+
statistic: "Sum",
|
|
1447
|
+
...options
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
GatewayELBMetrics.LoadBalancerMetrics = LoadBalancerMetrics;
|
|
1452
|
+
})(GatewayELBMetrics || (exports.GatewayELBMetrics = GatewayELBMetrics = {}));
|
|
1453
|
+
/**
|
|
1454
|
+
* CloudWatch metrics facade for AWS/NetworkELB
|
|
1455
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
1456
|
+
* for selected resources if available.
|
|
1457
|
+
*
|
|
1458
|
+
* @stability external
|
|
1459
|
+
*/
|
|
1460
|
+
class NetworkELBMetrics {
|
|
1461
|
+
}
|
|
1462
|
+
exports.NetworkELBMetrics = NetworkELBMetrics;
|
|
1463
|
+
(function (NetworkELBMetrics) {
|
|
1464
|
+
/**
|
|
1465
|
+
* Metrics for dimension set: LoadBalancer {LoadBalancer}
|
|
1466
|
+
*
|
|
1467
|
+
* @stability external
|
|
1468
|
+
*/
|
|
1469
|
+
class LoadBalancerMetrics {
|
|
1470
|
+
dimensions;
|
|
1471
|
+
constructor(props) {
|
|
1472
|
+
this.dimensions = {
|
|
1473
|
+
LoadBalancer: props.loadBalancer
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* Average of the ActiveFlowCount metric
|
|
1478
|
+
*
|
|
1479
|
+
* @default - Average over 5 minutes
|
|
1480
|
+
*/
|
|
1481
|
+
activeFlowCount(options) {
|
|
1482
|
+
return new cloudwatch.Metric({
|
|
1483
|
+
namespace: "AWS/NetworkELB",
|
|
1484
|
+
metricName: "ActiveFlowCount",
|
|
1485
|
+
dimensionsMap: this.dimensions,
|
|
1486
|
+
statistic: "Average",
|
|
1487
|
+
...options
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* Average of the ActiveFlowCount_TCP metric
|
|
1492
|
+
*
|
|
1493
|
+
* @default - Average over 5 minutes
|
|
1494
|
+
*/
|
|
1495
|
+
activeFlowCountTcp(options) {
|
|
1496
|
+
return new cloudwatch.Metric({
|
|
1497
|
+
namespace: "AWS/NetworkELB",
|
|
1498
|
+
metricName: "ActiveFlowCount_TCP",
|
|
1499
|
+
dimensionsMap: this.dimensions,
|
|
1500
|
+
statistic: "Average",
|
|
1501
|
+
...options
|
|
1502
|
+
});
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Average of the ActiveFlowCount_TLS metric
|
|
1506
|
+
*
|
|
1507
|
+
* @default - Average over 5 minutes
|
|
1508
|
+
*/
|
|
1509
|
+
activeFlowCountTls(options) {
|
|
1510
|
+
return new cloudwatch.Metric({
|
|
1511
|
+
namespace: "AWS/NetworkELB",
|
|
1512
|
+
metricName: "ActiveFlowCount_TLS",
|
|
1513
|
+
dimensionsMap: this.dimensions,
|
|
1514
|
+
statistic: "Average",
|
|
1515
|
+
...options
|
|
1516
|
+
});
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Average of the ActiveFlowCount_UDP metric
|
|
1520
|
+
*
|
|
1521
|
+
* @default - Average over 5 minutes
|
|
1522
|
+
*/
|
|
1523
|
+
activeFlowCountUdp(options) {
|
|
1524
|
+
return new cloudwatch.Metric({
|
|
1525
|
+
namespace: "AWS/NetworkELB",
|
|
1526
|
+
metricName: "ActiveFlowCount_UDP",
|
|
1527
|
+
dimensionsMap: this.dimensions,
|
|
1528
|
+
statistic: "Average",
|
|
1529
|
+
...options
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Sum of the ClientTLSNegotiationErrorCount metric
|
|
1534
|
+
*
|
|
1535
|
+
* @default - Sum over 5 minutes
|
|
1536
|
+
*/
|
|
1537
|
+
clientTlsNegotiationErrorCount(options) {
|
|
1538
|
+
return new cloudwatch.Metric({
|
|
1539
|
+
namespace: "AWS/NetworkELB",
|
|
1540
|
+
metricName: "ClientTLSNegotiationErrorCount",
|
|
1541
|
+
dimensionsMap: this.dimensions,
|
|
1542
|
+
statistic: "Sum",
|
|
1543
|
+
...options
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Average of the ConsumedLCUs metric
|
|
1548
|
+
*
|
|
1549
|
+
* @default - Average over 5 minutes
|
|
1550
|
+
*/
|
|
1551
|
+
consumedLcUs(options) {
|
|
1552
|
+
return new cloudwatch.Metric({
|
|
1553
|
+
namespace: "AWS/NetworkELB",
|
|
1554
|
+
metricName: "ConsumedLCUs",
|
|
1555
|
+
dimensionsMap: this.dimensions,
|
|
1556
|
+
statistic: "Average",
|
|
1557
|
+
...options
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Average of the ConsumedLCUs_TCP metric
|
|
1562
|
+
*
|
|
1563
|
+
* @default - Average over 5 minutes
|
|
1564
|
+
*/
|
|
1565
|
+
consumedLcUsTcp(options) {
|
|
1566
|
+
return new cloudwatch.Metric({
|
|
1567
|
+
namespace: "AWS/NetworkELB",
|
|
1568
|
+
metricName: "ConsumedLCUs_TCP",
|
|
1569
|
+
dimensionsMap: this.dimensions,
|
|
1570
|
+
statistic: "Average",
|
|
1571
|
+
...options
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Average of the ConsumedLCUs_TLS metric
|
|
1576
|
+
*
|
|
1577
|
+
* @default - Average over 5 minutes
|
|
1578
|
+
*/
|
|
1579
|
+
consumedLcUsTls(options) {
|
|
1580
|
+
return new cloudwatch.Metric({
|
|
1581
|
+
namespace: "AWS/NetworkELB",
|
|
1582
|
+
metricName: "ConsumedLCUs_TLS",
|
|
1583
|
+
dimensionsMap: this.dimensions,
|
|
1584
|
+
statistic: "Average",
|
|
1585
|
+
...options
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
/**
|
|
1589
|
+
* Average of the ConsumedLCUs_UDP metric
|
|
1590
|
+
*
|
|
1591
|
+
* @default - Average over 5 minutes
|
|
1592
|
+
*/
|
|
1593
|
+
consumedLcUsUdp(options) {
|
|
1594
|
+
return new cloudwatch.Metric({
|
|
1595
|
+
namespace: "AWS/NetworkELB",
|
|
1596
|
+
metricName: "ConsumedLCUs_UDP",
|
|
1597
|
+
dimensionsMap: this.dimensions,
|
|
1598
|
+
statistic: "Average",
|
|
1599
|
+
...options
|
|
1600
|
+
});
|
|
1601
|
+
}
|
|
1602
|
+
/**
|
|
1603
|
+
* Sum of the NewFlowCount metric
|
|
1604
|
+
*
|
|
1605
|
+
* @default - Sum over 5 minutes
|
|
1606
|
+
*/
|
|
1607
|
+
newFlowCount(options) {
|
|
1608
|
+
return new cloudwatch.Metric({
|
|
1609
|
+
namespace: "AWS/NetworkELB",
|
|
1610
|
+
metricName: "NewFlowCount",
|
|
1611
|
+
dimensionsMap: this.dimensions,
|
|
1612
|
+
statistic: "Sum",
|
|
1613
|
+
...options
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Sum of the NewFlowCount_TCP metric
|
|
1618
|
+
*
|
|
1619
|
+
* @default - Sum over 5 minutes
|
|
1620
|
+
*/
|
|
1621
|
+
newFlowCountTcp(options) {
|
|
1622
|
+
return new cloudwatch.Metric({
|
|
1623
|
+
namespace: "AWS/NetworkELB",
|
|
1624
|
+
metricName: "NewFlowCount_TCP",
|
|
1625
|
+
dimensionsMap: this.dimensions,
|
|
1626
|
+
statistic: "Sum",
|
|
1627
|
+
...options
|
|
1628
|
+
});
|
|
1629
|
+
}
|
|
1630
|
+
/**
|
|
1631
|
+
* Sum of the NewFlowCount_TLS metric
|
|
1632
|
+
*
|
|
1633
|
+
* @default - Sum over 5 minutes
|
|
1634
|
+
*/
|
|
1635
|
+
newFlowCountTls(options) {
|
|
1636
|
+
return new cloudwatch.Metric({
|
|
1637
|
+
namespace: "AWS/NetworkELB",
|
|
1638
|
+
metricName: "NewFlowCount_TLS",
|
|
1639
|
+
dimensionsMap: this.dimensions,
|
|
1640
|
+
statistic: "Sum",
|
|
1641
|
+
...options
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* Sum of the NewFlowCount_UDP metric
|
|
1646
|
+
*
|
|
1647
|
+
* @default - Sum over 5 minutes
|
|
1648
|
+
*/
|
|
1649
|
+
newFlowCountUdp(options) {
|
|
1650
|
+
return new cloudwatch.Metric({
|
|
1651
|
+
namespace: "AWS/NetworkELB",
|
|
1652
|
+
metricName: "NewFlowCount_UDP",
|
|
1653
|
+
dimensionsMap: this.dimensions,
|
|
1654
|
+
statistic: "Sum",
|
|
1655
|
+
...options
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Sum of the ProcessedBytes metric
|
|
1660
|
+
*
|
|
1661
|
+
* @default - Sum over 5 minutes
|
|
1662
|
+
*/
|
|
1663
|
+
processedBytes(options) {
|
|
1664
|
+
return new cloudwatch.Metric({
|
|
1665
|
+
namespace: "AWS/NetworkELB",
|
|
1666
|
+
metricName: "ProcessedBytes",
|
|
1667
|
+
dimensionsMap: this.dimensions,
|
|
1668
|
+
statistic: "Sum",
|
|
1669
|
+
...options
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Sum of the ProcessedBytes_TCP metric
|
|
1674
|
+
*
|
|
1675
|
+
* @default - Sum over 5 minutes
|
|
1676
|
+
*/
|
|
1677
|
+
processedBytesTcp(options) {
|
|
1678
|
+
return new cloudwatch.Metric({
|
|
1679
|
+
namespace: "AWS/NetworkELB",
|
|
1680
|
+
metricName: "ProcessedBytes_TCP",
|
|
1681
|
+
dimensionsMap: this.dimensions,
|
|
1682
|
+
statistic: "Sum",
|
|
1683
|
+
...options
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
/**
|
|
1687
|
+
* Sum of the ProcessedBytes_TLS metric
|
|
1688
|
+
*
|
|
1689
|
+
* @default - Sum over 5 minutes
|
|
1690
|
+
*/
|
|
1691
|
+
processedBytesTls(options) {
|
|
1692
|
+
return new cloudwatch.Metric({
|
|
1693
|
+
namespace: "AWS/NetworkELB",
|
|
1694
|
+
metricName: "ProcessedBytes_TLS",
|
|
1695
|
+
dimensionsMap: this.dimensions,
|
|
1696
|
+
statistic: "Sum",
|
|
1697
|
+
...options
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* Sum of the ProcessedBytes_UDP metric
|
|
1702
|
+
*
|
|
1703
|
+
* @default - Sum over 5 minutes
|
|
1704
|
+
*/
|
|
1705
|
+
processedBytesUdp(options) {
|
|
1706
|
+
return new cloudwatch.Metric({
|
|
1707
|
+
namespace: "AWS/NetworkELB",
|
|
1708
|
+
metricName: "ProcessedBytes_UDP",
|
|
1709
|
+
dimensionsMap: this.dimensions,
|
|
1710
|
+
statistic: "Sum",
|
|
1711
|
+
...options
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Sum of the TargetTLSNegotiationErrorCount metric
|
|
1716
|
+
*
|
|
1717
|
+
* @default - Sum over 5 minutes
|
|
1718
|
+
*/
|
|
1719
|
+
targetTlsNegotiationErrorCount(options) {
|
|
1720
|
+
return new cloudwatch.Metric({
|
|
1721
|
+
namespace: "AWS/NetworkELB",
|
|
1722
|
+
metricName: "TargetTLSNegotiationErrorCount",
|
|
1723
|
+
dimensionsMap: this.dimensions,
|
|
1724
|
+
statistic: "Sum",
|
|
1725
|
+
...options
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* Sum of the TCP_Client_Reset_Count metric
|
|
1730
|
+
*
|
|
1731
|
+
* @default - Sum over 5 minutes
|
|
1732
|
+
*/
|
|
1733
|
+
tcpClientResetCount(options) {
|
|
1734
|
+
return new cloudwatch.Metric({
|
|
1735
|
+
namespace: "AWS/NetworkELB",
|
|
1736
|
+
metricName: "TCP_Client_Reset_Count",
|
|
1737
|
+
dimensionsMap: this.dimensions,
|
|
1738
|
+
statistic: "Sum",
|
|
1739
|
+
...options
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
/**
|
|
1743
|
+
* Sum of the TCP_ELB_Reset_Count metric
|
|
1744
|
+
*
|
|
1745
|
+
* @default - Sum over 5 minutes
|
|
1746
|
+
*/
|
|
1747
|
+
tcpElbResetCount(options) {
|
|
1748
|
+
return new cloudwatch.Metric({
|
|
1749
|
+
namespace: "AWS/NetworkELB",
|
|
1750
|
+
metricName: "TCP_ELB_Reset_Count",
|
|
1751
|
+
dimensionsMap: this.dimensions,
|
|
1752
|
+
statistic: "Sum",
|
|
1753
|
+
...options
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
/**
|
|
1757
|
+
* Sum of the TCP_Target_Reset_Count metric
|
|
1758
|
+
*
|
|
1759
|
+
* @default - Sum over 5 minutes
|
|
1760
|
+
*/
|
|
1761
|
+
tcpTargetResetCount(options) {
|
|
1762
|
+
return new cloudwatch.Metric({
|
|
1763
|
+
namespace: "AWS/NetworkELB",
|
|
1764
|
+
metricName: "TCP_Target_Reset_Count",
|
|
1765
|
+
dimensionsMap: this.dimensions,
|
|
1766
|
+
statistic: "Sum",
|
|
1767
|
+
...options
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
/**
|
|
1771
|
+
* Sum of the PeakPacketsPerSecond metric
|
|
1772
|
+
*
|
|
1773
|
+
* @default - Sum over 5 minutes
|
|
1774
|
+
*/
|
|
1775
|
+
peakPacketsPerSecond(options) {
|
|
1776
|
+
return new cloudwatch.Metric({
|
|
1777
|
+
namespace: "AWS/NetworkELB",
|
|
1778
|
+
metricName: "PeakPacketsPerSecond",
|
|
1779
|
+
dimensionsMap: this.dimensions,
|
|
1780
|
+
statistic: "Sum",
|
|
1781
|
+
...options
|
|
1782
|
+
});
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
* Sum of the ProcessedPackets metric
|
|
1786
|
+
*
|
|
1787
|
+
* @default - Sum over 5 minutes
|
|
1788
|
+
*/
|
|
1789
|
+
processedPackets(options) {
|
|
1790
|
+
return new cloudwatch.Metric({
|
|
1791
|
+
namespace: "AWS/NetworkELB",
|
|
1792
|
+
metricName: "ProcessedPackets",
|
|
1793
|
+
dimensionsMap: this.dimensions,
|
|
1794
|
+
statistic: "Sum",
|
|
1795
|
+
...options
|
|
1796
|
+
});
|
|
1797
|
+
}
|
|
1798
|
+
/**
|
|
1799
|
+
* Sum of the PortAllocationErrorCount metric
|
|
1800
|
+
*
|
|
1801
|
+
* @default - Sum over 5 minutes
|
|
1802
|
+
*/
|
|
1803
|
+
portAllocationErrorCount(options) {
|
|
1804
|
+
return new cloudwatch.Metric({
|
|
1805
|
+
namespace: "AWS/NetworkELB",
|
|
1806
|
+
metricName: "PortAllocationErrorCount",
|
|
1807
|
+
dimensionsMap: this.dimensions,
|
|
1808
|
+
statistic: "Sum",
|
|
1809
|
+
...options
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
NetworkELBMetrics.LoadBalancerMetrics = LoadBalancerMetrics;
|
|
1814
|
+
/**
|
|
1815
|
+
* Metrics for dimension set: AvailabilityZone {AvailabilityZone, LoadBalancer}
|
|
1816
|
+
*
|
|
1817
|
+
* @stability external
|
|
1818
|
+
*/
|
|
1819
|
+
class AvailabilityZoneMetrics {
|
|
1820
|
+
dimensions;
|
|
1821
|
+
constructor(props) {
|
|
1822
|
+
this.dimensions = {
|
|
1823
|
+
AvailabilityZone: props.availabilityZone,
|
|
1824
|
+
LoadBalancer: props.loadBalancer
|
|
1825
|
+
};
|
|
1826
|
+
}
|
|
1827
|
+
/**
|
|
1828
|
+
* Average of the ActiveFlowCount metric
|
|
1829
|
+
*
|
|
1830
|
+
* @default - Average over 5 minutes
|
|
1831
|
+
*/
|
|
1832
|
+
activeFlowCount(options) {
|
|
1833
|
+
return new cloudwatch.Metric({
|
|
1834
|
+
namespace: "AWS/NetworkELB",
|
|
1835
|
+
metricName: "ActiveFlowCount",
|
|
1836
|
+
dimensionsMap: this.dimensions,
|
|
1837
|
+
statistic: "Average",
|
|
1838
|
+
...options
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
/**
|
|
1842
|
+
* Average of the ActiveFlowCount_TCP metric
|
|
1843
|
+
*
|
|
1844
|
+
* @default - Average over 5 minutes
|
|
1845
|
+
*/
|
|
1846
|
+
activeFlowCountTcp(options) {
|
|
1847
|
+
return new cloudwatch.Metric({
|
|
1848
|
+
namespace: "AWS/NetworkELB",
|
|
1849
|
+
metricName: "ActiveFlowCount_TCP",
|
|
1850
|
+
dimensionsMap: this.dimensions,
|
|
1851
|
+
statistic: "Average",
|
|
1852
|
+
...options
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1855
|
+
/**
|
|
1856
|
+
* Average of the ActiveFlowCount_TLS metric
|
|
1857
|
+
*
|
|
1858
|
+
* @default - Average over 5 minutes
|
|
1859
|
+
*/
|
|
1860
|
+
activeFlowCountTls(options) {
|
|
1861
|
+
return new cloudwatch.Metric({
|
|
1862
|
+
namespace: "AWS/NetworkELB",
|
|
1863
|
+
metricName: "ActiveFlowCount_TLS",
|
|
1864
|
+
dimensionsMap: this.dimensions,
|
|
1865
|
+
statistic: "Average",
|
|
1866
|
+
...options
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
/**
|
|
1870
|
+
* Average of the ActiveFlowCount_UDP metric
|
|
1871
|
+
*
|
|
1872
|
+
* @default - Average over 5 minutes
|
|
1873
|
+
*/
|
|
1874
|
+
activeFlowCountUdp(options) {
|
|
1875
|
+
return new cloudwatch.Metric({
|
|
1876
|
+
namespace: "AWS/NetworkELB",
|
|
1877
|
+
metricName: "ActiveFlowCount_UDP",
|
|
1878
|
+
dimensionsMap: this.dimensions,
|
|
1879
|
+
statistic: "Average",
|
|
1880
|
+
...options
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* Sum of the NewFlowCount metric
|
|
1885
|
+
*
|
|
1886
|
+
* @default - Sum over 5 minutes
|
|
1887
|
+
*/
|
|
1888
|
+
newFlowCount(options) {
|
|
1889
|
+
return new cloudwatch.Metric({
|
|
1890
|
+
namespace: "AWS/NetworkELB",
|
|
1891
|
+
metricName: "NewFlowCount",
|
|
1892
|
+
dimensionsMap: this.dimensions,
|
|
1893
|
+
statistic: "Sum",
|
|
1894
|
+
...options
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1897
|
+
/**
|
|
1898
|
+
* Sum of the NewFlowCount_TCP metric
|
|
1899
|
+
*
|
|
1900
|
+
* @default - Sum over 5 minutes
|
|
1901
|
+
*/
|
|
1902
|
+
newFlowCountTcp(options) {
|
|
1903
|
+
return new cloudwatch.Metric({
|
|
1904
|
+
namespace: "AWS/NetworkELB",
|
|
1905
|
+
metricName: "NewFlowCount_TCP",
|
|
1906
|
+
dimensionsMap: this.dimensions,
|
|
1907
|
+
statistic: "Sum",
|
|
1908
|
+
...options
|
|
1909
|
+
});
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Sum of the NewFlowCount_TLS metric
|
|
1913
|
+
*
|
|
1914
|
+
* @default - Sum over 5 minutes
|
|
1915
|
+
*/
|
|
1916
|
+
newFlowCountTls(options) {
|
|
1917
|
+
return new cloudwatch.Metric({
|
|
1918
|
+
namespace: "AWS/NetworkELB",
|
|
1919
|
+
metricName: "NewFlowCount_TLS",
|
|
1920
|
+
dimensionsMap: this.dimensions,
|
|
1921
|
+
statistic: "Sum",
|
|
1922
|
+
...options
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Sum of the NewFlowCount_UDP metric
|
|
1927
|
+
*
|
|
1928
|
+
* @default - Sum over 5 minutes
|
|
1929
|
+
*/
|
|
1930
|
+
newFlowCountUdp(options) {
|
|
1931
|
+
return new cloudwatch.Metric({
|
|
1932
|
+
namespace: "AWS/NetworkELB",
|
|
1933
|
+
metricName: "NewFlowCount_UDP",
|
|
1934
|
+
dimensionsMap: this.dimensions,
|
|
1935
|
+
statistic: "Sum",
|
|
1936
|
+
...options
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Sum of the ProcessedBytes metric
|
|
1941
|
+
*
|
|
1942
|
+
* @default - Sum over 5 minutes
|
|
1943
|
+
*/
|
|
1944
|
+
processedBytes(options) {
|
|
1945
|
+
return new cloudwatch.Metric({
|
|
1946
|
+
namespace: "AWS/NetworkELB",
|
|
1947
|
+
metricName: "ProcessedBytes",
|
|
1948
|
+
dimensionsMap: this.dimensions,
|
|
1949
|
+
statistic: "Sum",
|
|
1950
|
+
...options
|
|
1951
|
+
});
|
|
1952
|
+
}
|
|
1953
|
+
/**
|
|
1954
|
+
* Sum of the ProcessedBytes_TCP metric
|
|
1955
|
+
*
|
|
1956
|
+
* @default - Sum over 5 minutes
|
|
1957
|
+
*/
|
|
1958
|
+
processedBytesTcp(options) {
|
|
1959
|
+
return new cloudwatch.Metric({
|
|
1960
|
+
namespace: "AWS/NetworkELB",
|
|
1961
|
+
metricName: "ProcessedBytes_TCP",
|
|
1962
|
+
dimensionsMap: this.dimensions,
|
|
1963
|
+
statistic: "Sum",
|
|
1964
|
+
...options
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
/**
|
|
1968
|
+
* Sum of the ProcessedBytes_TLS metric
|
|
1969
|
+
*
|
|
1970
|
+
* @default - Sum over 5 minutes
|
|
1971
|
+
*/
|
|
1972
|
+
processedBytesTls(options) {
|
|
1973
|
+
return new cloudwatch.Metric({
|
|
1974
|
+
namespace: "AWS/NetworkELB",
|
|
1975
|
+
metricName: "ProcessedBytes_TLS",
|
|
1976
|
+
dimensionsMap: this.dimensions,
|
|
1977
|
+
statistic: "Sum",
|
|
1978
|
+
...options
|
|
1979
|
+
});
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
* Sum of the ProcessedBytes_UDP metric
|
|
1983
|
+
*
|
|
1984
|
+
* @default - Sum over 5 minutes
|
|
1985
|
+
*/
|
|
1986
|
+
processedBytesUdp(options) {
|
|
1987
|
+
return new cloudwatch.Metric({
|
|
1988
|
+
namespace: "AWS/NetworkELB",
|
|
1989
|
+
metricName: "ProcessedBytes_UDP",
|
|
1990
|
+
dimensionsMap: this.dimensions,
|
|
1991
|
+
statistic: "Sum",
|
|
1992
|
+
...options
|
|
1993
|
+
});
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* Sum of the TCP_Client_Reset_Count metric
|
|
1997
|
+
*
|
|
1998
|
+
* @default - Sum over 5 minutes
|
|
1999
|
+
*/
|
|
2000
|
+
tcpClientResetCount(options) {
|
|
2001
|
+
return new cloudwatch.Metric({
|
|
2002
|
+
namespace: "AWS/NetworkELB",
|
|
2003
|
+
metricName: "TCP_Client_Reset_Count",
|
|
2004
|
+
dimensionsMap: this.dimensions,
|
|
2005
|
+
statistic: "Sum",
|
|
2006
|
+
...options
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* Sum of the TCP_ELB_Reset_Count metric
|
|
2011
|
+
*
|
|
2012
|
+
* @default - Sum over 5 minutes
|
|
2013
|
+
*/
|
|
2014
|
+
tcpElbResetCount(options) {
|
|
2015
|
+
return new cloudwatch.Metric({
|
|
2016
|
+
namespace: "AWS/NetworkELB",
|
|
2017
|
+
metricName: "TCP_ELB_Reset_Count",
|
|
2018
|
+
dimensionsMap: this.dimensions,
|
|
2019
|
+
statistic: "Sum",
|
|
2020
|
+
...options
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
/**
|
|
2024
|
+
* Sum of the TCP_Target_Reset_Count metric
|
|
2025
|
+
*
|
|
2026
|
+
* @default - Sum over 5 minutes
|
|
2027
|
+
*/
|
|
2028
|
+
tcpTargetResetCount(options) {
|
|
2029
|
+
return new cloudwatch.Metric({
|
|
2030
|
+
namespace: "AWS/NetworkELB",
|
|
2031
|
+
metricName: "TCP_Target_Reset_Count",
|
|
2032
|
+
dimensionsMap: this.dimensions,
|
|
2033
|
+
statistic: "Sum",
|
|
2034
|
+
...options
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
/**
|
|
2038
|
+
* Sum of the PeakPacketsPerSecond metric
|
|
2039
|
+
*
|
|
2040
|
+
* @default - Sum over 5 minutes
|
|
2041
|
+
*/
|
|
2042
|
+
peakPacketsPerSecond(options) {
|
|
2043
|
+
return new cloudwatch.Metric({
|
|
2044
|
+
namespace: "AWS/NetworkELB",
|
|
2045
|
+
metricName: "PeakPacketsPerSecond",
|
|
2046
|
+
dimensionsMap: this.dimensions,
|
|
2047
|
+
statistic: "Sum",
|
|
2048
|
+
...options
|
|
2049
|
+
});
|
|
2050
|
+
}
|
|
2051
|
+
/**
|
|
2052
|
+
* Sum of the ProcessedPackets metric
|
|
2053
|
+
*
|
|
2054
|
+
* @default - Sum over 5 minutes
|
|
2055
|
+
*/
|
|
2056
|
+
processedPackets(options) {
|
|
2057
|
+
return new cloudwatch.Metric({
|
|
2058
|
+
namespace: "AWS/NetworkELB",
|
|
2059
|
+
metricName: "ProcessedPackets",
|
|
2060
|
+
dimensionsMap: this.dimensions,
|
|
2061
|
+
statistic: "Sum",
|
|
2062
|
+
...options
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Sum of the PortAllocationErrorCount metric
|
|
2067
|
+
*
|
|
2068
|
+
* @default - Sum over 5 minutes
|
|
2069
|
+
*/
|
|
2070
|
+
portAllocationErrorCount(options) {
|
|
2071
|
+
return new cloudwatch.Metric({
|
|
2072
|
+
namespace: "AWS/NetworkELB",
|
|
2073
|
+
metricName: "PortAllocationErrorCount",
|
|
2074
|
+
dimensionsMap: this.dimensions,
|
|
2075
|
+
statistic: "Sum",
|
|
2076
|
+
...options
|
|
2077
|
+
});
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
NetworkELBMetrics.AvailabilityZoneMetrics = AvailabilityZoneMetrics;
|
|
2081
|
+
/**
|
|
2082
|
+
* Metrics for dimension set: TargetGroup {LoadBalancer, TargetGroup}
|
|
2083
|
+
*
|
|
2084
|
+
* @stability external
|
|
2085
|
+
*/
|
|
2086
|
+
class TargetGroupMetrics {
|
|
2087
|
+
dimensions;
|
|
2088
|
+
constructor(props) {
|
|
2089
|
+
this.dimensions = {
|
|
2090
|
+
LoadBalancer: props.loadBalancer,
|
|
2091
|
+
TargetGroup: props.targetGroup
|
|
2092
|
+
};
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Minimum of the HealthyHostCount metric
|
|
2096
|
+
*
|
|
2097
|
+
* @default - Minimum over 5 minutes
|
|
2098
|
+
*/
|
|
2099
|
+
healthyHostCount(options) {
|
|
2100
|
+
return new cloudwatch.Metric({
|
|
2101
|
+
namespace: "AWS/NetworkELB",
|
|
2102
|
+
metricName: "HealthyHostCount",
|
|
2103
|
+
dimensionsMap: this.dimensions,
|
|
2104
|
+
statistic: "Minimum",
|
|
2105
|
+
...options
|
|
2106
|
+
});
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Maximum of the UnHealthyHostCount metric
|
|
2110
|
+
*
|
|
2111
|
+
* @default - Maximum over 5 minutes
|
|
2112
|
+
*/
|
|
2113
|
+
unHealthyHostCount(options) {
|
|
2114
|
+
return new cloudwatch.Metric({
|
|
2115
|
+
namespace: "AWS/NetworkELB",
|
|
2116
|
+
metricName: "UnHealthyHostCount",
|
|
2117
|
+
dimensionsMap: this.dimensions,
|
|
2118
|
+
statistic: "Maximum",
|
|
2119
|
+
...options
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
NetworkELBMetrics.TargetGroupMetrics = TargetGroupMetrics;
|
|
2124
|
+
/**
|
|
2125
|
+
* Metrics for dimension set: TargetGroupPerAvailabilityZone {AvailabilityZone, LoadBalancer, TargetGroup}
|
|
2126
|
+
*
|
|
2127
|
+
* @stability external
|
|
2128
|
+
*/
|
|
2129
|
+
class TargetGroupPerAvailabilityZoneMetrics {
|
|
2130
|
+
dimensions;
|
|
2131
|
+
constructor(props) {
|
|
2132
|
+
this.dimensions = {
|
|
2133
|
+
AvailabilityZone: props.availabilityZone,
|
|
2134
|
+
LoadBalancer: props.loadBalancer,
|
|
2135
|
+
TargetGroup: props.targetGroup
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* Minimum of the HealthyHostCount metric
|
|
2140
|
+
*
|
|
2141
|
+
* @default - Minimum over 5 minutes
|
|
2142
|
+
*/
|
|
2143
|
+
healthyHostCount(options) {
|
|
2144
|
+
return new cloudwatch.Metric({
|
|
2145
|
+
namespace: "AWS/NetworkELB",
|
|
2146
|
+
metricName: "HealthyHostCount",
|
|
2147
|
+
dimensionsMap: this.dimensions,
|
|
2148
|
+
statistic: "Minimum",
|
|
2149
|
+
...options
|
|
2150
|
+
});
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Maximum of the UnHealthyHostCount metric
|
|
2154
|
+
*
|
|
2155
|
+
* @default - Maximum over 5 minutes
|
|
2156
|
+
*/
|
|
2157
|
+
unHealthyHostCount(options) {
|
|
2158
|
+
return new cloudwatch.Metric({
|
|
2159
|
+
namespace: "AWS/NetworkELB",
|
|
2160
|
+
metricName: "UnHealthyHostCount",
|
|
2161
|
+
dimensionsMap: this.dimensions,
|
|
2162
|
+
statistic: "Maximum",
|
|
2163
|
+
...options
|
|
2164
|
+
});
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
NetworkELBMetrics.TargetGroupPerAvailabilityZoneMetrics = TargetGroupPerAvailabilityZoneMetrics;
|
|
2168
|
+
})(NetworkELBMetrics || (exports.NetworkELBMetrics = NetworkELBMetrics = {}));
|