@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,2434 @@
|
|
|
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.VPNMetrics = exports.TransitGatewayMetrics = exports.NATGatewayMetrics = exports.CWAgentMetrics = exports.EC2Metrics = exports.EBSMetrics = exports.EC2CapacityReservationsMetrics = 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/EC2CapacityReservations
|
|
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 EC2CapacityReservationsMetrics {
|
|
47
|
+
/**
|
|
48
|
+
* Create CapacityReservationMetrics from a CapacityReservation reference
|
|
49
|
+
*/
|
|
50
|
+
static fromCapacityReservation(ref) {
|
|
51
|
+
return new EC2CapacityReservationsMetrics.CapacityReservationMetrics({
|
|
52
|
+
capacityReservationId: ref.capacityReservationRef.capacityReservationId
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.EC2CapacityReservationsMetrics = EC2CapacityReservationsMetrics;
|
|
57
|
+
(function (EC2CapacityReservationsMetrics) {
|
|
58
|
+
/**
|
|
59
|
+
* Metrics for dimension set: CapacityReservation {CapacityReservationId}
|
|
60
|
+
*
|
|
61
|
+
* @stability external
|
|
62
|
+
*/
|
|
63
|
+
class CapacityReservationMetrics {
|
|
64
|
+
dimensions;
|
|
65
|
+
constructor(props) {
|
|
66
|
+
this.dimensions = {
|
|
67
|
+
CapacityReservationId: props.capacityReservationId
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Average of the InstanceUtilization metric
|
|
72
|
+
*
|
|
73
|
+
* @default - Average over 5 minutes
|
|
74
|
+
*/
|
|
75
|
+
instanceUtilization(options) {
|
|
76
|
+
return new cloudwatch.Metric({
|
|
77
|
+
namespace: "AWS/EC2CapacityReservations",
|
|
78
|
+
metricName: "InstanceUtilization",
|
|
79
|
+
dimensionsMap: this.dimensions,
|
|
80
|
+
statistic: "Average",
|
|
81
|
+
...options
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Average of the UsedInstanceCount metric
|
|
86
|
+
*
|
|
87
|
+
* @default - Average over 5 minutes
|
|
88
|
+
*/
|
|
89
|
+
usedInstanceCount(options) {
|
|
90
|
+
return new cloudwatch.Metric({
|
|
91
|
+
namespace: "AWS/EC2CapacityReservations",
|
|
92
|
+
metricName: "UsedInstanceCount",
|
|
93
|
+
dimensionsMap: this.dimensions,
|
|
94
|
+
statistic: "Average",
|
|
95
|
+
...options
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Average of the AvailableInstanceCount metric
|
|
100
|
+
*
|
|
101
|
+
* @default - Average over 5 minutes
|
|
102
|
+
*/
|
|
103
|
+
availableInstanceCount(options) {
|
|
104
|
+
return new cloudwatch.Metric({
|
|
105
|
+
namespace: "AWS/EC2CapacityReservations",
|
|
106
|
+
metricName: "AvailableInstanceCount",
|
|
107
|
+
dimensionsMap: this.dimensions,
|
|
108
|
+
statistic: "Average",
|
|
109
|
+
...options
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Average of the TotalInstanceCount metric
|
|
114
|
+
*
|
|
115
|
+
* @default - Average over 5 minutes
|
|
116
|
+
*/
|
|
117
|
+
totalInstanceCount(options) {
|
|
118
|
+
return new cloudwatch.Metric({
|
|
119
|
+
namespace: "AWS/EC2CapacityReservations",
|
|
120
|
+
metricName: "TotalInstanceCount",
|
|
121
|
+
dimensionsMap: this.dimensions,
|
|
122
|
+
statistic: "Average",
|
|
123
|
+
...options
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
EC2CapacityReservationsMetrics.CapacityReservationMetrics = CapacityReservationMetrics;
|
|
128
|
+
})(EC2CapacityReservationsMetrics || (exports.EC2CapacityReservationsMetrics = EC2CapacityReservationsMetrics = {}));
|
|
129
|
+
/**
|
|
130
|
+
* CloudWatch metrics facade for AWS/EBS
|
|
131
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
132
|
+
* for selected resources if available.
|
|
133
|
+
*
|
|
134
|
+
* @stability external
|
|
135
|
+
*/
|
|
136
|
+
class EBSMetrics {
|
|
137
|
+
/**
|
|
138
|
+
* Create VolumeMetrics from a Volume reference
|
|
139
|
+
*/
|
|
140
|
+
static fromVolume(ref) {
|
|
141
|
+
return new EBSMetrics.VolumeMetrics({
|
|
142
|
+
volumeId: ref.volumeRef.volumeId
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.EBSMetrics = EBSMetrics;
|
|
147
|
+
(function (EBSMetrics) {
|
|
148
|
+
/**
|
|
149
|
+
* Metrics for dimension set: Volume {VolumeId}
|
|
150
|
+
*
|
|
151
|
+
* @stability external
|
|
152
|
+
*/
|
|
153
|
+
class VolumeMetrics {
|
|
154
|
+
dimensions;
|
|
155
|
+
constructor(props) {
|
|
156
|
+
this.dimensions = {
|
|
157
|
+
VolumeId: props.volumeId
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Sum of the VolumeReadBytes metric
|
|
162
|
+
*
|
|
163
|
+
* @default - Sum over 5 minutes
|
|
164
|
+
*/
|
|
165
|
+
volumeReadBytes(options) {
|
|
166
|
+
return new cloudwatch.Metric({
|
|
167
|
+
namespace: "AWS/EBS",
|
|
168
|
+
metricName: "VolumeReadBytes",
|
|
169
|
+
dimensionsMap: this.dimensions,
|
|
170
|
+
statistic: "Sum",
|
|
171
|
+
...options
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Sum of the VolumeWriteBytes metric
|
|
176
|
+
*
|
|
177
|
+
* @default - Sum over 5 minutes
|
|
178
|
+
*/
|
|
179
|
+
volumeWriteBytes(options) {
|
|
180
|
+
return new cloudwatch.Metric({
|
|
181
|
+
namespace: "AWS/EBS",
|
|
182
|
+
metricName: "VolumeWriteBytes",
|
|
183
|
+
dimensionsMap: this.dimensions,
|
|
184
|
+
statistic: "Sum",
|
|
185
|
+
...options
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Sum of the VolumeReadOps metric
|
|
190
|
+
*
|
|
191
|
+
* @default - Sum over 5 minutes
|
|
192
|
+
*/
|
|
193
|
+
volumeReadOps(options) {
|
|
194
|
+
return new cloudwatch.Metric({
|
|
195
|
+
namespace: "AWS/EBS",
|
|
196
|
+
metricName: "VolumeReadOps",
|
|
197
|
+
dimensionsMap: this.dimensions,
|
|
198
|
+
statistic: "Sum",
|
|
199
|
+
...options
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Average of the VolumeTotalReadTime metric
|
|
204
|
+
*
|
|
205
|
+
* @default - Average over 5 minutes
|
|
206
|
+
*/
|
|
207
|
+
volumeTotalReadTime(options) {
|
|
208
|
+
return new cloudwatch.Metric({
|
|
209
|
+
namespace: "AWS/EBS",
|
|
210
|
+
metricName: "VolumeTotalReadTime",
|
|
211
|
+
dimensionsMap: this.dimensions,
|
|
212
|
+
statistic: "Average",
|
|
213
|
+
...options
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Sum of the VolumeWriteOps metric
|
|
218
|
+
*
|
|
219
|
+
* @default - Sum over 5 minutes
|
|
220
|
+
*/
|
|
221
|
+
volumeWriteOps(options) {
|
|
222
|
+
return new cloudwatch.Metric({
|
|
223
|
+
namespace: "AWS/EBS",
|
|
224
|
+
metricName: "VolumeWriteOps",
|
|
225
|
+
dimensionsMap: this.dimensions,
|
|
226
|
+
statistic: "Sum",
|
|
227
|
+
...options
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Average of the VolumeTotalWriteTime metric
|
|
232
|
+
*
|
|
233
|
+
* @default - Average over 5 minutes
|
|
234
|
+
*/
|
|
235
|
+
volumeTotalWriteTime(options) {
|
|
236
|
+
return new cloudwatch.Metric({
|
|
237
|
+
namespace: "AWS/EBS",
|
|
238
|
+
metricName: "VolumeTotalWriteTime",
|
|
239
|
+
dimensionsMap: this.dimensions,
|
|
240
|
+
statistic: "Average",
|
|
241
|
+
...options
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Average of the VolumeIdleTime metric
|
|
246
|
+
*
|
|
247
|
+
* @default - Average over 5 minutes
|
|
248
|
+
*/
|
|
249
|
+
volumeIdleTime(options) {
|
|
250
|
+
return new cloudwatch.Metric({
|
|
251
|
+
namespace: "AWS/EBS",
|
|
252
|
+
metricName: "VolumeIdleTime",
|
|
253
|
+
dimensionsMap: this.dimensions,
|
|
254
|
+
statistic: "Average",
|
|
255
|
+
...options
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Average of the VolumeQueueLength metric
|
|
260
|
+
*
|
|
261
|
+
* @default - Average over 5 minutes
|
|
262
|
+
*/
|
|
263
|
+
volumeQueueLength(options) {
|
|
264
|
+
return new cloudwatch.Metric({
|
|
265
|
+
namespace: "AWS/EBS",
|
|
266
|
+
metricName: "VolumeQueueLength",
|
|
267
|
+
dimensionsMap: this.dimensions,
|
|
268
|
+
statistic: "Average",
|
|
269
|
+
...options
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Average of the BurstBalance metric
|
|
274
|
+
*
|
|
275
|
+
* @default - Average over 5 minutes
|
|
276
|
+
*/
|
|
277
|
+
burstBalance(options) {
|
|
278
|
+
return new cloudwatch.Metric({
|
|
279
|
+
namespace: "AWS/EBS",
|
|
280
|
+
metricName: "BurstBalance",
|
|
281
|
+
dimensionsMap: this.dimensions,
|
|
282
|
+
statistic: "Average",
|
|
283
|
+
...options
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
EBSMetrics.VolumeMetrics = VolumeMetrics;
|
|
288
|
+
})(EBSMetrics || (exports.EBSMetrics = EBSMetrics = {}));
|
|
289
|
+
/**
|
|
290
|
+
* CloudWatch metrics facade for AWS/EC2
|
|
291
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
292
|
+
* for selected resources if available.
|
|
293
|
+
*
|
|
294
|
+
* @stability external
|
|
295
|
+
*/
|
|
296
|
+
class EC2Metrics {
|
|
297
|
+
/**
|
|
298
|
+
* Create InstanceMetrics from a Instance reference
|
|
299
|
+
*/
|
|
300
|
+
static fromInstance(ref) {
|
|
301
|
+
return new EC2Metrics.InstanceMetrics({
|
|
302
|
+
instanceId: ref.instanceRef.instanceId
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
exports.EC2Metrics = EC2Metrics;
|
|
307
|
+
(function (EC2Metrics) {
|
|
308
|
+
/**
|
|
309
|
+
* Metrics for dimension set: Instance {InstanceId}
|
|
310
|
+
*
|
|
311
|
+
* @stability external
|
|
312
|
+
*/
|
|
313
|
+
class InstanceMetrics {
|
|
314
|
+
dimensions;
|
|
315
|
+
constructor(props) {
|
|
316
|
+
this.dimensions = {
|
|
317
|
+
InstanceId: props.instanceId
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Average of the CPUCreditUsage metric
|
|
322
|
+
*
|
|
323
|
+
* @default - Average over 5 minutes
|
|
324
|
+
*/
|
|
325
|
+
cpuCreditUsage(options) {
|
|
326
|
+
return new cloudwatch.Metric({
|
|
327
|
+
namespace: "AWS/EC2",
|
|
328
|
+
metricName: "CPUCreditUsage",
|
|
329
|
+
dimensionsMap: this.dimensions,
|
|
330
|
+
statistic: "Average",
|
|
331
|
+
...options
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Average of the CPUCreditBalance metric
|
|
336
|
+
*
|
|
337
|
+
* @default - Average over 5 minutes
|
|
338
|
+
*/
|
|
339
|
+
cpuCreditBalance(options) {
|
|
340
|
+
return new cloudwatch.Metric({
|
|
341
|
+
namespace: "AWS/EC2",
|
|
342
|
+
metricName: "CPUCreditBalance",
|
|
343
|
+
dimensionsMap: this.dimensions,
|
|
344
|
+
statistic: "Average",
|
|
345
|
+
...options
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Average of the CPUSurplusCreditBalance metric
|
|
350
|
+
*
|
|
351
|
+
* @default - Average over 5 minutes
|
|
352
|
+
*/
|
|
353
|
+
cpuSurplusCreditBalance(options) {
|
|
354
|
+
return new cloudwatch.Metric({
|
|
355
|
+
namespace: "AWS/EC2",
|
|
356
|
+
metricName: "CPUSurplusCreditBalance",
|
|
357
|
+
dimensionsMap: this.dimensions,
|
|
358
|
+
statistic: "Average",
|
|
359
|
+
...options
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Average of the CPUSurplusCreditsCharged metric
|
|
364
|
+
*
|
|
365
|
+
* @default - Average over 5 minutes
|
|
366
|
+
*/
|
|
367
|
+
cpuSurplusCreditsCharged(options) {
|
|
368
|
+
return new cloudwatch.Metric({
|
|
369
|
+
namespace: "AWS/EC2",
|
|
370
|
+
metricName: "CPUSurplusCreditsCharged",
|
|
371
|
+
dimensionsMap: this.dimensions,
|
|
372
|
+
statistic: "Average",
|
|
373
|
+
...options
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Average of the CPUUtilization metric
|
|
378
|
+
*
|
|
379
|
+
* @default - Average over 5 minutes
|
|
380
|
+
*/
|
|
381
|
+
cpuUtilization(options) {
|
|
382
|
+
return new cloudwatch.Metric({
|
|
383
|
+
namespace: "AWS/EC2",
|
|
384
|
+
metricName: "CPUUtilization",
|
|
385
|
+
dimensionsMap: this.dimensions,
|
|
386
|
+
statistic: "Average",
|
|
387
|
+
...options
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Average of the DiskReadBytes metric
|
|
392
|
+
*
|
|
393
|
+
* @default - Average over 5 minutes
|
|
394
|
+
*/
|
|
395
|
+
diskReadBytes(options) {
|
|
396
|
+
return new cloudwatch.Metric({
|
|
397
|
+
namespace: "AWS/EC2",
|
|
398
|
+
metricName: "DiskReadBytes",
|
|
399
|
+
dimensionsMap: this.dimensions,
|
|
400
|
+
statistic: "Average",
|
|
401
|
+
...options
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Average of the DiskReadOps metric
|
|
406
|
+
*
|
|
407
|
+
* @default - Average over 5 minutes
|
|
408
|
+
*/
|
|
409
|
+
diskReadOps(options) {
|
|
410
|
+
return new cloudwatch.Metric({
|
|
411
|
+
namespace: "AWS/EC2",
|
|
412
|
+
metricName: "DiskReadOps",
|
|
413
|
+
dimensionsMap: this.dimensions,
|
|
414
|
+
statistic: "Average",
|
|
415
|
+
...options
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Average of the DiskWriteBytes metric
|
|
420
|
+
*
|
|
421
|
+
* @default - Average over 5 minutes
|
|
422
|
+
*/
|
|
423
|
+
diskWriteBytes(options) {
|
|
424
|
+
return new cloudwatch.Metric({
|
|
425
|
+
namespace: "AWS/EC2",
|
|
426
|
+
metricName: "DiskWriteBytes",
|
|
427
|
+
dimensionsMap: this.dimensions,
|
|
428
|
+
statistic: "Average",
|
|
429
|
+
...options
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Average of the DiskWriteOps metric
|
|
434
|
+
*
|
|
435
|
+
* @default - Average over 5 minutes
|
|
436
|
+
*/
|
|
437
|
+
diskWriteOps(options) {
|
|
438
|
+
return new cloudwatch.Metric({
|
|
439
|
+
namespace: "AWS/EC2",
|
|
440
|
+
metricName: "DiskWriteOps",
|
|
441
|
+
dimensionsMap: this.dimensions,
|
|
442
|
+
statistic: "Average",
|
|
443
|
+
...options
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Sum of the MetadataNoToken metric
|
|
448
|
+
*
|
|
449
|
+
* @default - Sum over 5 minutes
|
|
450
|
+
*/
|
|
451
|
+
metadataNoToken(options) {
|
|
452
|
+
return new cloudwatch.Metric({
|
|
453
|
+
namespace: "AWS/EC2",
|
|
454
|
+
metricName: "MetadataNoToken",
|
|
455
|
+
dimensionsMap: this.dimensions,
|
|
456
|
+
statistic: "Sum",
|
|
457
|
+
...options
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Average of the NetworkIn metric
|
|
462
|
+
*
|
|
463
|
+
* @default - Average over 5 minutes
|
|
464
|
+
*/
|
|
465
|
+
networkIn(options) {
|
|
466
|
+
return new cloudwatch.Metric({
|
|
467
|
+
namespace: "AWS/EC2",
|
|
468
|
+
metricName: "NetworkIn",
|
|
469
|
+
dimensionsMap: this.dimensions,
|
|
470
|
+
statistic: "Average",
|
|
471
|
+
...options
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Average of the NetworkOut metric
|
|
476
|
+
*
|
|
477
|
+
* @default - Average over 5 minutes
|
|
478
|
+
*/
|
|
479
|
+
networkOut(options) {
|
|
480
|
+
return new cloudwatch.Metric({
|
|
481
|
+
namespace: "AWS/EC2",
|
|
482
|
+
metricName: "NetworkOut",
|
|
483
|
+
dimensionsMap: this.dimensions,
|
|
484
|
+
statistic: "Average",
|
|
485
|
+
...options
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Average of the NetworkPacketsIn metric
|
|
490
|
+
*
|
|
491
|
+
* @default - Average over 5 minutes
|
|
492
|
+
*/
|
|
493
|
+
networkPacketsIn(options) {
|
|
494
|
+
return new cloudwatch.Metric({
|
|
495
|
+
namespace: "AWS/EC2",
|
|
496
|
+
metricName: "NetworkPacketsIn",
|
|
497
|
+
dimensionsMap: this.dimensions,
|
|
498
|
+
statistic: "Average",
|
|
499
|
+
...options
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Average of the NetworkPacketsOut metric
|
|
504
|
+
*
|
|
505
|
+
* @default - Average over 5 minutes
|
|
506
|
+
*/
|
|
507
|
+
networkPacketsOut(options) {
|
|
508
|
+
return new cloudwatch.Metric({
|
|
509
|
+
namespace: "AWS/EC2",
|
|
510
|
+
metricName: "NetworkPacketsOut",
|
|
511
|
+
dimensionsMap: this.dimensions,
|
|
512
|
+
statistic: "Average",
|
|
513
|
+
...options
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Sum of the StatusCheckFailed metric
|
|
518
|
+
*
|
|
519
|
+
* @default - Sum over 5 minutes
|
|
520
|
+
*/
|
|
521
|
+
statusCheckFailed(options) {
|
|
522
|
+
return new cloudwatch.Metric({
|
|
523
|
+
namespace: "AWS/EC2",
|
|
524
|
+
metricName: "StatusCheckFailed",
|
|
525
|
+
dimensionsMap: this.dimensions,
|
|
526
|
+
statistic: "Sum",
|
|
527
|
+
...options
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Sum of the StatusCheckFailed_Instance metric
|
|
532
|
+
*
|
|
533
|
+
* @default - Sum over 5 minutes
|
|
534
|
+
*/
|
|
535
|
+
statusCheckFailedInstance(options) {
|
|
536
|
+
return new cloudwatch.Metric({
|
|
537
|
+
namespace: "AWS/EC2",
|
|
538
|
+
metricName: "StatusCheckFailed_Instance",
|
|
539
|
+
dimensionsMap: this.dimensions,
|
|
540
|
+
statistic: "Sum",
|
|
541
|
+
...options
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Sum of the StatusCheckFailed_System metric
|
|
546
|
+
*
|
|
547
|
+
* @default - Sum over 5 minutes
|
|
548
|
+
*/
|
|
549
|
+
statusCheckFailedSystem(options) {
|
|
550
|
+
return new cloudwatch.Metric({
|
|
551
|
+
namespace: "AWS/EC2",
|
|
552
|
+
metricName: "StatusCheckFailed_System",
|
|
553
|
+
dimensionsMap: this.dimensions,
|
|
554
|
+
statistic: "Sum",
|
|
555
|
+
...options
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Average of the EBSReadOps metric
|
|
560
|
+
*
|
|
561
|
+
* @default - Average over 5 minutes
|
|
562
|
+
*/
|
|
563
|
+
ebsReadOps(options) {
|
|
564
|
+
return new cloudwatch.Metric({
|
|
565
|
+
namespace: "AWS/EC2",
|
|
566
|
+
metricName: "EBSReadOps",
|
|
567
|
+
dimensionsMap: this.dimensions,
|
|
568
|
+
statistic: "Average",
|
|
569
|
+
...options
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Average of the EBSWriteOps metric
|
|
574
|
+
*
|
|
575
|
+
* @default - Average over 5 minutes
|
|
576
|
+
*/
|
|
577
|
+
ebsWriteOps(options) {
|
|
578
|
+
return new cloudwatch.Metric({
|
|
579
|
+
namespace: "AWS/EC2",
|
|
580
|
+
metricName: "EBSWriteOps",
|
|
581
|
+
dimensionsMap: this.dimensions,
|
|
582
|
+
statistic: "Average",
|
|
583
|
+
...options
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Average of the EBSReadBytes metric
|
|
588
|
+
*
|
|
589
|
+
* @default - Average over 5 minutes
|
|
590
|
+
*/
|
|
591
|
+
ebsReadBytes(options) {
|
|
592
|
+
return new cloudwatch.Metric({
|
|
593
|
+
namespace: "AWS/EC2",
|
|
594
|
+
metricName: "EBSReadBytes",
|
|
595
|
+
dimensionsMap: this.dimensions,
|
|
596
|
+
statistic: "Average",
|
|
597
|
+
...options
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Average of the EBSWriteBytes metric
|
|
602
|
+
*
|
|
603
|
+
* @default - Average over 5 minutes
|
|
604
|
+
*/
|
|
605
|
+
ebsWriteBytes(options) {
|
|
606
|
+
return new cloudwatch.Metric({
|
|
607
|
+
namespace: "AWS/EC2",
|
|
608
|
+
metricName: "EBSWriteBytes",
|
|
609
|
+
dimensionsMap: this.dimensions,
|
|
610
|
+
statistic: "Average",
|
|
611
|
+
...options
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Average of the EBSIOBalance% metric
|
|
616
|
+
*
|
|
617
|
+
* @default - Average over 5 minutes
|
|
618
|
+
*/
|
|
619
|
+
ebsioBalance(options) {
|
|
620
|
+
return new cloudwatch.Metric({
|
|
621
|
+
namespace: "AWS/EC2",
|
|
622
|
+
metricName: "EBSIOBalance%",
|
|
623
|
+
dimensionsMap: this.dimensions,
|
|
624
|
+
statistic: "Average",
|
|
625
|
+
...options
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Average of the EBSByteBalance% metric
|
|
630
|
+
*
|
|
631
|
+
* @default - Average over 5 minutes
|
|
632
|
+
*/
|
|
633
|
+
ebsByteBalance(options) {
|
|
634
|
+
return new cloudwatch.Metric({
|
|
635
|
+
namespace: "AWS/EC2",
|
|
636
|
+
metricName: "EBSByteBalance%",
|
|
637
|
+
dimensionsMap: this.dimensions,
|
|
638
|
+
statistic: "Average",
|
|
639
|
+
...options
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
EC2Metrics.InstanceMetrics = InstanceMetrics;
|
|
644
|
+
/**
|
|
645
|
+
* Metrics for dimension set: Account {no dimensions}
|
|
646
|
+
*
|
|
647
|
+
* @stability external
|
|
648
|
+
*/
|
|
649
|
+
class AccountMetrics {
|
|
650
|
+
dimensions;
|
|
651
|
+
constructor() {
|
|
652
|
+
this.dimensions = {};
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Average of the CPUUtilization metric
|
|
656
|
+
*
|
|
657
|
+
* @default - Average over 5 minutes
|
|
658
|
+
*/
|
|
659
|
+
cpuUtilization(options) {
|
|
660
|
+
return new cloudwatch.Metric({
|
|
661
|
+
namespace: "AWS/EC2",
|
|
662
|
+
metricName: "CPUUtilization",
|
|
663
|
+
dimensionsMap: this.dimensions,
|
|
664
|
+
statistic: "Average",
|
|
665
|
+
...options
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Average of the DiskReadBytes metric
|
|
670
|
+
*
|
|
671
|
+
* @default - Average over 5 minutes
|
|
672
|
+
*/
|
|
673
|
+
diskReadBytes(options) {
|
|
674
|
+
return new cloudwatch.Metric({
|
|
675
|
+
namespace: "AWS/EC2",
|
|
676
|
+
metricName: "DiskReadBytes",
|
|
677
|
+
dimensionsMap: this.dimensions,
|
|
678
|
+
statistic: "Average",
|
|
679
|
+
...options
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Average of the DiskReadOps metric
|
|
684
|
+
*
|
|
685
|
+
* @default - Average over 5 minutes
|
|
686
|
+
*/
|
|
687
|
+
diskReadOps(options) {
|
|
688
|
+
return new cloudwatch.Metric({
|
|
689
|
+
namespace: "AWS/EC2",
|
|
690
|
+
metricName: "DiskReadOps",
|
|
691
|
+
dimensionsMap: this.dimensions,
|
|
692
|
+
statistic: "Average",
|
|
693
|
+
...options
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Average of the DiskWriteBytes metric
|
|
698
|
+
*
|
|
699
|
+
* @default - Average over 5 minutes
|
|
700
|
+
*/
|
|
701
|
+
diskWriteBytes(options) {
|
|
702
|
+
return new cloudwatch.Metric({
|
|
703
|
+
namespace: "AWS/EC2",
|
|
704
|
+
metricName: "DiskWriteBytes",
|
|
705
|
+
dimensionsMap: this.dimensions,
|
|
706
|
+
statistic: "Average",
|
|
707
|
+
...options
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Average of the DiskWriteOps metric
|
|
712
|
+
*
|
|
713
|
+
* @default - Average over 5 minutes
|
|
714
|
+
*/
|
|
715
|
+
diskWriteOps(options) {
|
|
716
|
+
return new cloudwatch.Metric({
|
|
717
|
+
namespace: "AWS/EC2",
|
|
718
|
+
metricName: "DiskWriteOps",
|
|
719
|
+
dimensionsMap: this.dimensions,
|
|
720
|
+
statistic: "Average",
|
|
721
|
+
...options
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Sum of the MetadataNoToken metric
|
|
726
|
+
*
|
|
727
|
+
* @default - Sum over 5 minutes
|
|
728
|
+
*/
|
|
729
|
+
metadataNoToken(options) {
|
|
730
|
+
return new cloudwatch.Metric({
|
|
731
|
+
namespace: "AWS/EC2",
|
|
732
|
+
metricName: "MetadataNoToken",
|
|
733
|
+
dimensionsMap: this.dimensions,
|
|
734
|
+
statistic: "Sum",
|
|
735
|
+
...options
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Average of the NetworkIn metric
|
|
740
|
+
*
|
|
741
|
+
* @default - Average over 5 minutes
|
|
742
|
+
*/
|
|
743
|
+
networkIn(options) {
|
|
744
|
+
return new cloudwatch.Metric({
|
|
745
|
+
namespace: "AWS/EC2",
|
|
746
|
+
metricName: "NetworkIn",
|
|
747
|
+
dimensionsMap: this.dimensions,
|
|
748
|
+
statistic: "Average",
|
|
749
|
+
...options
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Average of the NetworkOut metric
|
|
754
|
+
*
|
|
755
|
+
* @default - Average over 5 minutes
|
|
756
|
+
*/
|
|
757
|
+
networkOut(options) {
|
|
758
|
+
return new cloudwatch.Metric({
|
|
759
|
+
namespace: "AWS/EC2",
|
|
760
|
+
metricName: "NetworkOut",
|
|
761
|
+
dimensionsMap: this.dimensions,
|
|
762
|
+
statistic: "Average",
|
|
763
|
+
...options
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Average of the NetworkPacketsIn metric
|
|
768
|
+
*
|
|
769
|
+
* @default - Average over 5 minutes
|
|
770
|
+
*/
|
|
771
|
+
networkPacketsIn(options) {
|
|
772
|
+
return new cloudwatch.Metric({
|
|
773
|
+
namespace: "AWS/EC2",
|
|
774
|
+
metricName: "NetworkPacketsIn",
|
|
775
|
+
dimensionsMap: this.dimensions,
|
|
776
|
+
statistic: "Average",
|
|
777
|
+
...options
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Average of the NetworkPacketsOut metric
|
|
782
|
+
*
|
|
783
|
+
* @default - Average over 5 minutes
|
|
784
|
+
*/
|
|
785
|
+
networkPacketsOut(options) {
|
|
786
|
+
return new cloudwatch.Metric({
|
|
787
|
+
namespace: "AWS/EC2",
|
|
788
|
+
metricName: "NetworkPacketsOut",
|
|
789
|
+
dimensionsMap: this.dimensions,
|
|
790
|
+
statistic: "Average",
|
|
791
|
+
...options
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
EC2Metrics.AccountMetrics = AccountMetrics;
|
|
796
|
+
/**
|
|
797
|
+
* Metrics for dimension set: AutoScalingGroup {AutoScalingGroupName}
|
|
798
|
+
*
|
|
799
|
+
* @stability external
|
|
800
|
+
*/
|
|
801
|
+
class AutoScalingGroupMetrics {
|
|
802
|
+
dimensions;
|
|
803
|
+
constructor(props) {
|
|
804
|
+
this.dimensions = {
|
|
805
|
+
AutoScalingGroupName: props.autoScalingGroupName
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Average of the CPUUtilization metric
|
|
810
|
+
*
|
|
811
|
+
* @default - Average over 5 minutes
|
|
812
|
+
*/
|
|
813
|
+
cpuUtilization(options) {
|
|
814
|
+
return new cloudwatch.Metric({
|
|
815
|
+
namespace: "AWS/EC2",
|
|
816
|
+
metricName: "CPUUtilization",
|
|
817
|
+
dimensionsMap: this.dimensions,
|
|
818
|
+
statistic: "Average",
|
|
819
|
+
...options
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Average of the DiskReadBytes metric
|
|
824
|
+
*
|
|
825
|
+
* @default - Average over 5 minutes
|
|
826
|
+
*/
|
|
827
|
+
diskReadBytes(options) {
|
|
828
|
+
return new cloudwatch.Metric({
|
|
829
|
+
namespace: "AWS/EC2",
|
|
830
|
+
metricName: "DiskReadBytes",
|
|
831
|
+
dimensionsMap: this.dimensions,
|
|
832
|
+
statistic: "Average",
|
|
833
|
+
...options
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Average of the DiskReadOps metric
|
|
838
|
+
*
|
|
839
|
+
* @default - Average over 5 minutes
|
|
840
|
+
*/
|
|
841
|
+
diskReadOps(options) {
|
|
842
|
+
return new cloudwatch.Metric({
|
|
843
|
+
namespace: "AWS/EC2",
|
|
844
|
+
metricName: "DiskReadOps",
|
|
845
|
+
dimensionsMap: this.dimensions,
|
|
846
|
+
statistic: "Average",
|
|
847
|
+
...options
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Average of the DiskWriteBytes metric
|
|
852
|
+
*
|
|
853
|
+
* @default - Average over 5 minutes
|
|
854
|
+
*/
|
|
855
|
+
diskWriteBytes(options) {
|
|
856
|
+
return new cloudwatch.Metric({
|
|
857
|
+
namespace: "AWS/EC2",
|
|
858
|
+
metricName: "DiskWriteBytes",
|
|
859
|
+
dimensionsMap: this.dimensions,
|
|
860
|
+
statistic: "Average",
|
|
861
|
+
...options
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Average of the DiskWriteOps metric
|
|
866
|
+
*
|
|
867
|
+
* @default - Average over 5 minutes
|
|
868
|
+
*/
|
|
869
|
+
diskWriteOps(options) {
|
|
870
|
+
return new cloudwatch.Metric({
|
|
871
|
+
namespace: "AWS/EC2",
|
|
872
|
+
metricName: "DiskWriteOps",
|
|
873
|
+
dimensionsMap: this.dimensions,
|
|
874
|
+
statistic: "Average",
|
|
875
|
+
...options
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Average of the NetworkIn metric
|
|
880
|
+
*
|
|
881
|
+
* @default - Average over 5 minutes
|
|
882
|
+
*/
|
|
883
|
+
networkIn(options) {
|
|
884
|
+
return new cloudwatch.Metric({
|
|
885
|
+
namespace: "AWS/EC2",
|
|
886
|
+
metricName: "NetworkIn",
|
|
887
|
+
dimensionsMap: this.dimensions,
|
|
888
|
+
statistic: "Average",
|
|
889
|
+
...options
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Average of the NetworkOut metric
|
|
894
|
+
*
|
|
895
|
+
* @default - Average over 5 minutes
|
|
896
|
+
*/
|
|
897
|
+
networkOut(options) {
|
|
898
|
+
return new cloudwatch.Metric({
|
|
899
|
+
namespace: "AWS/EC2",
|
|
900
|
+
metricName: "NetworkOut",
|
|
901
|
+
dimensionsMap: this.dimensions,
|
|
902
|
+
statistic: "Average",
|
|
903
|
+
...options
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Average of the NetworkPacketsIn metric
|
|
908
|
+
*
|
|
909
|
+
* @default - Average over 5 minutes
|
|
910
|
+
*/
|
|
911
|
+
networkPacketsIn(options) {
|
|
912
|
+
return new cloudwatch.Metric({
|
|
913
|
+
namespace: "AWS/EC2",
|
|
914
|
+
metricName: "NetworkPacketsIn",
|
|
915
|
+
dimensionsMap: this.dimensions,
|
|
916
|
+
statistic: "Average",
|
|
917
|
+
...options
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Average of the NetworkPacketsOut metric
|
|
922
|
+
*
|
|
923
|
+
* @default - Average over 5 minutes
|
|
924
|
+
*/
|
|
925
|
+
networkPacketsOut(options) {
|
|
926
|
+
return new cloudwatch.Metric({
|
|
927
|
+
namespace: "AWS/EC2",
|
|
928
|
+
metricName: "NetworkPacketsOut",
|
|
929
|
+
dimensionsMap: this.dimensions,
|
|
930
|
+
statistic: "Average",
|
|
931
|
+
...options
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
EC2Metrics.AutoScalingGroupMetrics = AutoScalingGroupMetrics;
|
|
936
|
+
/**
|
|
937
|
+
* Metrics for dimension set: Image {ImageId}
|
|
938
|
+
*
|
|
939
|
+
* @stability external
|
|
940
|
+
*/
|
|
941
|
+
class ImageMetrics {
|
|
942
|
+
dimensions;
|
|
943
|
+
constructor(props) {
|
|
944
|
+
this.dimensions = {
|
|
945
|
+
ImageId: props.imageId
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Average of the CPUUtilization metric
|
|
950
|
+
*
|
|
951
|
+
* @default - Average over 5 minutes
|
|
952
|
+
*/
|
|
953
|
+
cpuUtilization(options) {
|
|
954
|
+
return new cloudwatch.Metric({
|
|
955
|
+
namespace: "AWS/EC2",
|
|
956
|
+
metricName: "CPUUtilization",
|
|
957
|
+
dimensionsMap: this.dimensions,
|
|
958
|
+
statistic: "Average",
|
|
959
|
+
...options
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Average of the DiskReadBytes metric
|
|
964
|
+
*
|
|
965
|
+
* @default - Average over 5 minutes
|
|
966
|
+
*/
|
|
967
|
+
diskReadBytes(options) {
|
|
968
|
+
return new cloudwatch.Metric({
|
|
969
|
+
namespace: "AWS/EC2",
|
|
970
|
+
metricName: "DiskReadBytes",
|
|
971
|
+
dimensionsMap: this.dimensions,
|
|
972
|
+
statistic: "Average",
|
|
973
|
+
...options
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Average of the DiskReadOps metric
|
|
978
|
+
*
|
|
979
|
+
* @default - Average over 5 minutes
|
|
980
|
+
*/
|
|
981
|
+
diskReadOps(options) {
|
|
982
|
+
return new cloudwatch.Metric({
|
|
983
|
+
namespace: "AWS/EC2",
|
|
984
|
+
metricName: "DiskReadOps",
|
|
985
|
+
dimensionsMap: this.dimensions,
|
|
986
|
+
statistic: "Average",
|
|
987
|
+
...options
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Average of the DiskWriteBytes metric
|
|
992
|
+
*
|
|
993
|
+
* @default - Average over 5 minutes
|
|
994
|
+
*/
|
|
995
|
+
diskWriteBytes(options) {
|
|
996
|
+
return new cloudwatch.Metric({
|
|
997
|
+
namespace: "AWS/EC2",
|
|
998
|
+
metricName: "DiskWriteBytes",
|
|
999
|
+
dimensionsMap: this.dimensions,
|
|
1000
|
+
statistic: "Average",
|
|
1001
|
+
...options
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Average of the DiskWriteOps metric
|
|
1006
|
+
*
|
|
1007
|
+
* @default - Average over 5 minutes
|
|
1008
|
+
*/
|
|
1009
|
+
diskWriteOps(options) {
|
|
1010
|
+
return new cloudwatch.Metric({
|
|
1011
|
+
namespace: "AWS/EC2",
|
|
1012
|
+
metricName: "DiskWriteOps",
|
|
1013
|
+
dimensionsMap: this.dimensions,
|
|
1014
|
+
statistic: "Average",
|
|
1015
|
+
...options
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Average of the NetworkIn metric
|
|
1020
|
+
*
|
|
1021
|
+
* @default - Average over 5 minutes
|
|
1022
|
+
*/
|
|
1023
|
+
networkIn(options) {
|
|
1024
|
+
return new cloudwatch.Metric({
|
|
1025
|
+
namespace: "AWS/EC2",
|
|
1026
|
+
metricName: "NetworkIn",
|
|
1027
|
+
dimensionsMap: this.dimensions,
|
|
1028
|
+
statistic: "Average",
|
|
1029
|
+
...options
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* Average of the NetworkOut metric
|
|
1034
|
+
*
|
|
1035
|
+
* @default - Average over 5 minutes
|
|
1036
|
+
*/
|
|
1037
|
+
networkOut(options) {
|
|
1038
|
+
return new cloudwatch.Metric({
|
|
1039
|
+
namespace: "AWS/EC2",
|
|
1040
|
+
metricName: "NetworkOut",
|
|
1041
|
+
dimensionsMap: this.dimensions,
|
|
1042
|
+
statistic: "Average",
|
|
1043
|
+
...options
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
EC2Metrics.ImageMetrics = ImageMetrics;
|
|
1048
|
+
/**
|
|
1049
|
+
* Metrics for dimension set: InstanceType {InstanceType}
|
|
1050
|
+
*
|
|
1051
|
+
* @stability external
|
|
1052
|
+
*/
|
|
1053
|
+
class InstanceTypeMetrics {
|
|
1054
|
+
dimensions;
|
|
1055
|
+
constructor(props) {
|
|
1056
|
+
this.dimensions = {
|
|
1057
|
+
InstanceType: props.instanceType
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Average of the CPUUtilization metric
|
|
1062
|
+
*
|
|
1063
|
+
* @default - Average over 5 minutes
|
|
1064
|
+
*/
|
|
1065
|
+
cpuUtilization(options) {
|
|
1066
|
+
return new cloudwatch.Metric({
|
|
1067
|
+
namespace: "AWS/EC2",
|
|
1068
|
+
metricName: "CPUUtilization",
|
|
1069
|
+
dimensionsMap: this.dimensions,
|
|
1070
|
+
statistic: "Average",
|
|
1071
|
+
...options
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Average of the DiskReadBytes metric
|
|
1076
|
+
*
|
|
1077
|
+
* @default - Average over 5 minutes
|
|
1078
|
+
*/
|
|
1079
|
+
diskReadBytes(options) {
|
|
1080
|
+
return new cloudwatch.Metric({
|
|
1081
|
+
namespace: "AWS/EC2",
|
|
1082
|
+
metricName: "DiskReadBytes",
|
|
1083
|
+
dimensionsMap: this.dimensions,
|
|
1084
|
+
statistic: "Average",
|
|
1085
|
+
...options
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Average of the DiskReadOps metric
|
|
1090
|
+
*
|
|
1091
|
+
* @default - Average over 5 minutes
|
|
1092
|
+
*/
|
|
1093
|
+
diskReadOps(options) {
|
|
1094
|
+
return new cloudwatch.Metric({
|
|
1095
|
+
namespace: "AWS/EC2",
|
|
1096
|
+
metricName: "DiskReadOps",
|
|
1097
|
+
dimensionsMap: this.dimensions,
|
|
1098
|
+
statistic: "Average",
|
|
1099
|
+
...options
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Average of the DiskWriteBytes metric
|
|
1104
|
+
*
|
|
1105
|
+
* @default - Average over 5 minutes
|
|
1106
|
+
*/
|
|
1107
|
+
diskWriteBytes(options) {
|
|
1108
|
+
return new cloudwatch.Metric({
|
|
1109
|
+
namespace: "AWS/EC2",
|
|
1110
|
+
metricName: "DiskWriteBytes",
|
|
1111
|
+
dimensionsMap: this.dimensions,
|
|
1112
|
+
statistic: "Average",
|
|
1113
|
+
...options
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Average of the DiskWriteOps metric
|
|
1118
|
+
*
|
|
1119
|
+
* @default - Average over 5 minutes
|
|
1120
|
+
*/
|
|
1121
|
+
diskWriteOps(options) {
|
|
1122
|
+
return new cloudwatch.Metric({
|
|
1123
|
+
namespace: "AWS/EC2",
|
|
1124
|
+
metricName: "DiskWriteOps",
|
|
1125
|
+
dimensionsMap: this.dimensions,
|
|
1126
|
+
statistic: "Average",
|
|
1127
|
+
...options
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Average of the NetworkIn metric
|
|
1132
|
+
*
|
|
1133
|
+
* @default - Average over 5 minutes
|
|
1134
|
+
*/
|
|
1135
|
+
networkIn(options) {
|
|
1136
|
+
return new cloudwatch.Metric({
|
|
1137
|
+
namespace: "AWS/EC2",
|
|
1138
|
+
metricName: "NetworkIn",
|
|
1139
|
+
dimensionsMap: this.dimensions,
|
|
1140
|
+
statistic: "Average",
|
|
1141
|
+
...options
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Average of the NetworkOut metric
|
|
1146
|
+
*
|
|
1147
|
+
* @default - Average over 5 minutes
|
|
1148
|
+
*/
|
|
1149
|
+
networkOut(options) {
|
|
1150
|
+
return new cloudwatch.Metric({
|
|
1151
|
+
namespace: "AWS/EC2",
|
|
1152
|
+
metricName: "NetworkOut",
|
|
1153
|
+
dimensionsMap: this.dimensions,
|
|
1154
|
+
statistic: "Average",
|
|
1155
|
+
...options
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
EC2Metrics.InstanceTypeMetrics = InstanceTypeMetrics;
|
|
1160
|
+
})(EC2Metrics || (exports.EC2Metrics = EC2Metrics = {}));
|
|
1161
|
+
/**
|
|
1162
|
+
* CloudWatch metrics facade for CWAgent
|
|
1163
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
1164
|
+
* for selected resources if available.
|
|
1165
|
+
*
|
|
1166
|
+
* @stability external
|
|
1167
|
+
*/
|
|
1168
|
+
class CWAgentMetrics {
|
|
1169
|
+
}
|
|
1170
|
+
exports.CWAgentMetrics = CWAgentMetrics;
|
|
1171
|
+
(function (CWAgentMetrics) {
|
|
1172
|
+
/**
|
|
1173
|
+
* Metrics for dimension set: Instance {InstanceId}
|
|
1174
|
+
*
|
|
1175
|
+
* @stability external
|
|
1176
|
+
*/
|
|
1177
|
+
class InstanceMetrics {
|
|
1178
|
+
dimensions;
|
|
1179
|
+
constructor(props) {
|
|
1180
|
+
this.dimensions = {
|
|
1181
|
+
InstanceId: props.instanceId
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Average of the cpu_usage_idle metric
|
|
1186
|
+
*
|
|
1187
|
+
* @default - Average over 5 minutes
|
|
1188
|
+
*/
|
|
1189
|
+
cpuUsageIdle(options) {
|
|
1190
|
+
return new cloudwatch.Metric({
|
|
1191
|
+
namespace: "CWAgent",
|
|
1192
|
+
metricName: "cpu_usage_idle",
|
|
1193
|
+
dimensionsMap: this.dimensions,
|
|
1194
|
+
statistic: "Average",
|
|
1195
|
+
...options
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Average of the cpu_usage_iowait metric
|
|
1200
|
+
*
|
|
1201
|
+
* @default - Average over 5 minutes
|
|
1202
|
+
*/
|
|
1203
|
+
cpuUsageIowait(options) {
|
|
1204
|
+
return new cloudwatch.Metric({
|
|
1205
|
+
namespace: "CWAgent",
|
|
1206
|
+
metricName: "cpu_usage_iowait",
|
|
1207
|
+
dimensionsMap: this.dimensions,
|
|
1208
|
+
statistic: "Average",
|
|
1209
|
+
...options
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* Average of the cpu_usage_steal metric
|
|
1214
|
+
*
|
|
1215
|
+
* @default - Average over 5 minutes
|
|
1216
|
+
*/
|
|
1217
|
+
cpuUsageSteal(options) {
|
|
1218
|
+
return new cloudwatch.Metric({
|
|
1219
|
+
namespace: "CWAgent",
|
|
1220
|
+
metricName: "cpu_usage_steal",
|
|
1221
|
+
dimensionsMap: this.dimensions,
|
|
1222
|
+
statistic: "Average",
|
|
1223
|
+
...options
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* Average of the cpu_usage_system metric
|
|
1228
|
+
*
|
|
1229
|
+
* @default - Average over 5 minutes
|
|
1230
|
+
*/
|
|
1231
|
+
cpuUsageSystem(options) {
|
|
1232
|
+
return new cloudwatch.Metric({
|
|
1233
|
+
namespace: "CWAgent",
|
|
1234
|
+
metricName: "cpu_usage_system",
|
|
1235
|
+
dimensionsMap: this.dimensions,
|
|
1236
|
+
statistic: "Average",
|
|
1237
|
+
...options
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Average of the cpu_usage_user metric
|
|
1242
|
+
*
|
|
1243
|
+
* @default - Average over 5 minutes
|
|
1244
|
+
*/
|
|
1245
|
+
cpuUsageUser(options) {
|
|
1246
|
+
return new cloudwatch.Metric({
|
|
1247
|
+
namespace: "CWAgent",
|
|
1248
|
+
metricName: "cpu_usage_user",
|
|
1249
|
+
dimensionsMap: this.dimensions,
|
|
1250
|
+
statistic: "Average",
|
|
1251
|
+
...options
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Sum of the disk_inodes_free metric
|
|
1256
|
+
*
|
|
1257
|
+
* @default - Sum over 5 minutes
|
|
1258
|
+
*/
|
|
1259
|
+
diskInodesFree(options) {
|
|
1260
|
+
return new cloudwatch.Metric({
|
|
1261
|
+
namespace: "CWAgent",
|
|
1262
|
+
metricName: "disk_inodes_free",
|
|
1263
|
+
dimensionsMap: this.dimensions,
|
|
1264
|
+
statistic: "Sum",
|
|
1265
|
+
...options
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Sum of the disk_inodes_total metric
|
|
1270
|
+
*
|
|
1271
|
+
* @default - Sum over 5 minutes
|
|
1272
|
+
*/
|
|
1273
|
+
diskInodesTotal(options) {
|
|
1274
|
+
return new cloudwatch.Metric({
|
|
1275
|
+
namespace: "CWAgent",
|
|
1276
|
+
metricName: "disk_inodes_total",
|
|
1277
|
+
dimensionsMap: this.dimensions,
|
|
1278
|
+
statistic: "Sum",
|
|
1279
|
+
...options
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Sum of the disk_inodes_used metric
|
|
1284
|
+
*
|
|
1285
|
+
* @default - Sum over 5 minutes
|
|
1286
|
+
*/
|
|
1287
|
+
diskInodesUsed(options) {
|
|
1288
|
+
return new cloudwatch.Metric({
|
|
1289
|
+
namespace: "CWAgent",
|
|
1290
|
+
metricName: "disk_inodes_used",
|
|
1291
|
+
dimensionsMap: this.dimensions,
|
|
1292
|
+
statistic: "Sum",
|
|
1293
|
+
...options
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* Maximum of the disk_used_percent metric
|
|
1298
|
+
*
|
|
1299
|
+
* @default - Maximum over 5 minutes
|
|
1300
|
+
*/
|
|
1301
|
+
diskUsedPercent(options) {
|
|
1302
|
+
return new cloudwatch.Metric({
|
|
1303
|
+
namespace: "CWAgent",
|
|
1304
|
+
metricName: "disk_used_percent",
|
|
1305
|
+
dimensionsMap: this.dimensions,
|
|
1306
|
+
statistic: "Maximum",
|
|
1307
|
+
...options
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Maximum of the disk_used metric
|
|
1312
|
+
*
|
|
1313
|
+
* @default - Maximum over 5 minutes
|
|
1314
|
+
*/
|
|
1315
|
+
diskUsed(options) {
|
|
1316
|
+
return new cloudwatch.Metric({
|
|
1317
|
+
namespace: "CWAgent",
|
|
1318
|
+
metricName: "disk_used",
|
|
1319
|
+
dimensionsMap: this.dimensions,
|
|
1320
|
+
statistic: "Maximum",
|
|
1321
|
+
...options
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Maximum of the disk_total metric
|
|
1326
|
+
*
|
|
1327
|
+
* @default - Maximum over 5 minutes
|
|
1328
|
+
*/
|
|
1329
|
+
diskTotal(options) {
|
|
1330
|
+
return new cloudwatch.Metric({
|
|
1331
|
+
namespace: "CWAgent",
|
|
1332
|
+
metricName: "disk_total",
|
|
1333
|
+
dimensionsMap: this.dimensions,
|
|
1334
|
+
statistic: "Maximum",
|
|
1335
|
+
...options
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Average of the diskio_io_time metric
|
|
1340
|
+
*
|
|
1341
|
+
* @default - Average over 5 minutes
|
|
1342
|
+
*/
|
|
1343
|
+
diskioIoTime(options) {
|
|
1344
|
+
return new cloudwatch.Metric({
|
|
1345
|
+
namespace: "CWAgent",
|
|
1346
|
+
metricName: "diskio_io_time",
|
|
1347
|
+
dimensionsMap: this.dimensions,
|
|
1348
|
+
statistic: "Average",
|
|
1349
|
+
...options
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* Average of the diskio_read_bytes metric
|
|
1354
|
+
*
|
|
1355
|
+
* @default - Average over 5 minutes
|
|
1356
|
+
*/
|
|
1357
|
+
diskioReadBytes(options) {
|
|
1358
|
+
return new cloudwatch.Metric({
|
|
1359
|
+
namespace: "CWAgent",
|
|
1360
|
+
metricName: "diskio_read_bytes",
|
|
1361
|
+
dimensionsMap: this.dimensions,
|
|
1362
|
+
statistic: "Average",
|
|
1363
|
+
...options
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Average of the diskio_reads metric
|
|
1368
|
+
*
|
|
1369
|
+
* @default - Average over 5 minutes
|
|
1370
|
+
*/
|
|
1371
|
+
diskioReads(options) {
|
|
1372
|
+
return new cloudwatch.Metric({
|
|
1373
|
+
namespace: "CWAgent",
|
|
1374
|
+
metricName: "diskio_reads",
|
|
1375
|
+
dimensionsMap: this.dimensions,
|
|
1376
|
+
statistic: "Average",
|
|
1377
|
+
...options
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Average of the diskio_write_bytes metric
|
|
1382
|
+
*
|
|
1383
|
+
* @default - Average over 5 minutes
|
|
1384
|
+
*/
|
|
1385
|
+
diskioWriteBytes(options) {
|
|
1386
|
+
return new cloudwatch.Metric({
|
|
1387
|
+
namespace: "CWAgent",
|
|
1388
|
+
metricName: "diskio_write_bytes",
|
|
1389
|
+
dimensionsMap: this.dimensions,
|
|
1390
|
+
statistic: "Average",
|
|
1391
|
+
...options
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Average of the diskio_writes metric
|
|
1396
|
+
*
|
|
1397
|
+
* @default - Average over 5 minutes
|
|
1398
|
+
*/
|
|
1399
|
+
diskioWrites(options) {
|
|
1400
|
+
return new cloudwatch.Metric({
|
|
1401
|
+
namespace: "CWAgent",
|
|
1402
|
+
metricName: "diskio_writes",
|
|
1403
|
+
dimensionsMap: this.dimensions,
|
|
1404
|
+
statistic: "Average",
|
|
1405
|
+
...options
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Average of the mem_cached metric
|
|
1410
|
+
*
|
|
1411
|
+
* @default - Average over 5 minutes
|
|
1412
|
+
*/
|
|
1413
|
+
memCached(options) {
|
|
1414
|
+
return new cloudwatch.Metric({
|
|
1415
|
+
namespace: "CWAgent",
|
|
1416
|
+
metricName: "mem_cached",
|
|
1417
|
+
dimensionsMap: this.dimensions,
|
|
1418
|
+
statistic: "Average",
|
|
1419
|
+
...options
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* Average of the mem_total metric
|
|
1424
|
+
*
|
|
1425
|
+
* @default - Average over 5 minutes
|
|
1426
|
+
*/
|
|
1427
|
+
memTotal(options) {
|
|
1428
|
+
return new cloudwatch.Metric({
|
|
1429
|
+
namespace: "CWAgent",
|
|
1430
|
+
metricName: "mem_total",
|
|
1431
|
+
dimensionsMap: this.dimensions,
|
|
1432
|
+
statistic: "Average",
|
|
1433
|
+
...options
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Average of the mem_used metric
|
|
1438
|
+
*
|
|
1439
|
+
* @default - Average over 5 minutes
|
|
1440
|
+
*/
|
|
1441
|
+
memUsed(options) {
|
|
1442
|
+
return new cloudwatch.Metric({
|
|
1443
|
+
namespace: "CWAgent",
|
|
1444
|
+
metricName: "mem_used",
|
|
1445
|
+
dimensionsMap: this.dimensions,
|
|
1446
|
+
statistic: "Average",
|
|
1447
|
+
...options
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
* Average of the mem_used_percent metric
|
|
1452
|
+
*
|
|
1453
|
+
* @default - Average over 5 minutes
|
|
1454
|
+
*/
|
|
1455
|
+
memUsedPercent(options) {
|
|
1456
|
+
return new cloudwatch.Metric({
|
|
1457
|
+
namespace: "CWAgent",
|
|
1458
|
+
metricName: "mem_used_percent",
|
|
1459
|
+
dimensionsMap: this.dimensions,
|
|
1460
|
+
statistic: "Average",
|
|
1461
|
+
...options
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Sum of the netstat_tcp_established metric
|
|
1466
|
+
*
|
|
1467
|
+
* @default - Sum over 5 minutes
|
|
1468
|
+
*/
|
|
1469
|
+
netstatTcpEstablished(options) {
|
|
1470
|
+
return new cloudwatch.Metric({
|
|
1471
|
+
namespace: "CWAgent",
|
|
1472
|
+
metricName: "netstat_tcp_established",
|
|
1473
|
+
dimensionsMap: this.dimensions,
|
|
1474
|
+
statistic: "Sum",
|
|
1475
|
+
...options
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Sum of the netstat_tcp_time_wait metric
|
|
1480
|
+
*
|
|
1481
|
+
* @default - Sum over 5 minutes
|
|
1482
|
+
*/
|
|
1483
|
+
netstatTcpTimeWait(options) {
|
|
1484
|
+
return new cloudwatch.Metric({
|
|
1485
|
+
namespace: "CWAgent",
|
|
1486
|
+
metricName: "netstat_tcp_time_wait",
|
|
1487
|
+
dimensionsMap: this.dimensions,
|
|
1488
|
+
statistic: "Sum",
|
|
1489
|
+
...options
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* Average of the swap_used_percent metric
|
|
1494
|
+
*
|
|
1495
|
+
* @default - Average over 5 minutes
|
|
1496
|
+
*/
|
|
1497
|
+
swapUsedPercent(options) {
|
|
1498
|
+
return new cloudwatch.Metric({
|
|
1499
|
+
namespace: "CWAgent",
|
|
1500
|
+
metricName: "swap_used_percent",
|
|
1501
|
+
dimensionsMap: this.dimensions,
|
|
1502
|
+
statistic: "Average",
|
|
1503
|
+
...options
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* Sum of the ethtool_bw_in_allowance_exceeded metric
|
|
1508
|
+
*
|
|
1509
|
+
* @default - Sum over 5 minutes
|
|
1510
|
+
*/
|
|
1511
|
+
ethtoolBwInAllowanceExceeded(options) {
|
|
1512
|
+
return new cloudwatch.Metric({
|
|
1513
|
+
namespace: "CWAgent",
|
|
1514
|
+
metricName: "ethtool_bw_in_allowance_exceeded",
|
|
1515
|
+
dimensionsMap: this.dimensions,
|
|
1516
|
+
statistic: "Sum",
|
|
1517
|
+
...options
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Sum of the ethtool_bw_out_allowance_exceeded metric
|
|
1522
|
+
*
|
|
1523
|
+
* @default - Sum over 5 minutes
|
|
1524
|
+
*/
|
|
1525
|
+
ethtoolBwOutAllowanceExceeded(options) {
|
|
1526
|
+
return new cloudwatch.Metric({
|
|
1527
|
+
namespace: "CWAgent",
|
|
1528
|
+
metricName: "ethtool_bw_out_allowance_exceeded",
|
|
1529
|
+
dimensionsMap: this.dimensions,
|
|
1530
|
+
statistic: "Sum",
|
|
1531
|
+
...options
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Average of the ethtool_conntrack_allowance_available metric
|
|
1536
|
+
*
|
|
1537
|
+
* @default - Average over 5 minutes
|
|
1538
|
+
*/
|
|
1539
|
+
ethtoolConntrackAllowanceAvailable(options) {
|
|
1540
|
+
return new cloudwatch.Metric({
|
|
1541
|
+
namespace: "CWAgent",
|
|
1542
|
+
metricName: "ethtool_conntrack_allowance_available",
|
|
1543
|
+
dimensionsMap: this.dimensions,
|
|
1544
|
+
statistic: "Average",
|
|
1545
|
+
...options
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Average of the ethtool_ena_srd_mode metric
|
|
1550
|
+
*
|
|
1551
|
+
* @default - Average over 5 minutes
|
|
1552
|
+
*/
|
|
1553
|
+
ethtoolEnaSrdMode(options) {
|
|
1554
|
+
return new cloudwatch.Metric({
|
|
1555
|
+
namespace: "CWAgent",
|
|
1556
|
+
metricName: "ethtool_ena_srd_mode",
|
|
1557
|
+
dimensionsMap: this.dimensions,
|
|
1558
|
+
statistic: "Average",
|
|
1559
|
+
...options
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Sum of the ethtool_ena_srd_eligible_tx_pkts metric
|
|
1564
|
+
*
|
|
1565
|
+
* @default - Sum over 5 minutes
|
|
1566
|
+
*/
|
|
1567
|
+
ethtoolEnaSrdEligibleTxPkts(options) {
|
|
1568
|
+
return new cloudwatch.Metric({
|
|
1569
|
+
namespace: "CWAgent",
|
|
1570
|
+
metricName: "ethtool_ena_srd_eligible_tx_pkts",
|
|
1571
|
+
dimensionsMap: this.dimensions,
|
|
1572
|
+
statistic: "Sum",
|
|
1573
|
+
...options
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Sum of the ethtool_ena_srd_tx_pkts metric
|
|
1578
|
+
*
|
|
1579
|
+
* @default - Sum over 5 minutes
|
|
1580
|
+
*/
|
|
1581
|
+
ethtoolEnaSrdTxPkts(options) {
|
|
1582
|
+
return new cloudwatch.Metric({
|
|
1583
|
+
namespace: "CWAgent",
|
|
1584
|
+
metricName: "ethtool_ena_srd_tx_pkts",
|
|
1585
|
+
dimensionsMap: this.dimensions,
|
|
1586
|
+
statistic: "Sum",
|
|
1587
|
+
...options
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* Sum of the ethtool_ena_srd_rx_pkts metric
|
|
1592
|
+
*
|
|
1593
|
+
* @default - Sum over 5 minutes
|
|
1594
|
+
*/
|
|
1595
|
+
ethtoolEnaSrdRxPkts(options) {
|
|
1596
|
+
return new cloudwatch.Metric({
|
|
1597
|
+
namespace: "CWAgent",
|
|
1598
|
+
metricName: "ethtool_ena_srd_rx_pkts",
|
|
1599
|
+
dimensionsMap: this.dimensions,
|
|
1600
|
+
statistic: "Sum",
|
|
1601
|
+
...options
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
/**
|
|
1605
|
+
* Average of the ethtool_ena_srd_resource_utilization metric
|
|
1606
|
+
*
|
|
1607
|
+
* @default - Average over 5 minutes
|
|
1608
|
+
*/
|
|
1609
|
+
ethtoolEnaSrdResourceUtilization(options) {
|
|
1610
|
+
return new cloudwatch.Metric({
|
|
1611
|
+
namespace: "CWAgent",
|
|
1612
|
+
metricName: "ethtool_ena_srd_resource_utilization",
|
|
1613
|
+
dimensionsMap: this.dimensions,
|
|
1614
|
+
statistic: "Average",
|
|
1615
|
+
...options
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* Sum of the ethtool_linklocal_allowance_exceeded metric
|
|
1620
|
+
*
|
|
1621
|
+
* @default - Sum over 5 minutes
|
|
1622
|
+
*/
|
|
1623
|
+
ethtoolLinklocalAllowanceExceeded(options) {
|
|
1624
|
+
return new cloudwatch.Metric({
|
|
1625
|
+
namespace: "CWAgent",
|
|
1626
|
+
metricName: "ethtool_linklocal_allowance_exceeded",
|
|
1627
|
+
dimensionsMap: this.dimensions,
|
|
1628
|
+
statistic: "Sum",
|
|
1629
|
+
...options
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Sum of the ethtool_pps_allowance_exceeded metric
|
|
1634
|
+
*
|
|
1635
|
+
* @default - Sum over 5 minutes
|
|
1636
|
+
*/
|
|
1637
|
+
ethtoolPpsAllowanceExceeded(options) {
|
|
1638
|
+
return new cloudwatch.Metric({
|
|
1639
|
+
namespace: "CWAgent",
|
|
1640
|
+
metricName: "ethtool_pps_allowance_exceeded",
|
|
1641
|
+
dimensionsMap: this.dimensions,
|
|
1642
|
+
statistic: "Sum",
|
|
1643
|
+
...options
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1646
|
+
/**
|
|
1647
|
+
* Sum of the ethtool_conntrack_allowance_exceeded metric
|
|
1648
|
+
*
|
|
1649
|
+
* @default - Sum over 5 minutes
|
|
1650
|
+
*/
|
|
1651
|
+
ethtoolConntrackAllowanceExceeded(options) {
|
|
1652
|
+
return new cloudwatch.Metric({
|
|
1653
|
+
namespace: "CWAgent",
|
|
1654
|
+
metricName: "ethtool_conntrack_allowance_exceeded",
|
|
1655
|
+
dimensionsMap: this.dimensions,
|
|
1656
|
+
statistic: "Sum",
|
|
1657
|
+
...options
|
|
1658
|
+
});
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* Sum of the TCPv4 Connections Established metric
|
|
1662
|
+
*
|
|
1663
|
+
* @default - Sum over 5 minutes
|
|
1664
|
+
*/
|
|
1665
|
+
tcPv4ConnectionsEstablished(options) {
|
|
1666
|
+
return new cloudwatch.Metric({
|
|
1667
|
+
namespace: "CWAgent",
|
|
1668
|
+
metricName: "TCPv4 Connections Established",
|
|
1669
|
+
dimensionsMap: this.dimensions,
|
|
1670
|
+
statistic: "Sum",
|
|
1671
|
+
...options
|
|
1672
|
+
});
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
* Sum of the TCPv6 Connections Established metric
|
|
1676
|
+
*
|
|
1677
|
+
* @default - Sum over 5 minutes
|
|
1678
|
+
*/
|
|
1679
|
+
tcPv6ConnectionsEstablished(options) {
|
|
1680
|
+
return new cloudwatch.Metric({
|
|
1681
|
+
namespace: "CWAgent",
|
|
1682
|
+
metricName: "TCPv6 Connections Established",
|
|
1683
|
+
dimensionsMap: this.dimensions,
|
|
1684
|
+
statistic: "Sum",
|
|
1685
|
+
...options
|
|
1686
|
+
});
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Average of the Memory % Committed Bytes In Use metric
|
|
1690
|
+
*
|
|
1691
|
+
* @default - Average over 5 minutes
|
|
1692
|
+
*/
|
|
1693
|
+
memoryCommittedBytesInUse(options) {
|
|
1694
|
+
return new cloudwatch.Metric({
|
|
1695
|
+
namespace: "CWAgent",
|
|
1696
|
+
metricName: "Memory % Committed Bytes In Use",
|
|
1697
|
+
dimensionsMap: this.dimensions,
|
|
1698
|
+
statistic: "Average",
|
|
1699
|
+
...options
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* Average of the Processor % Idle Time metric
|
|
1704
|
+
*
|
|
1705
|
+
* @default - Average over 5 minutes
|
|
1706
|
+
*/
|
|
1707
|
+
processorIdleTime(options) {
|
|
1708
|
+
return new cloudwatch.Metric({
|
|
1709
|
+
namespace: "CWAgent",
|
|
1710
|
+
metricName: "Processor % Idle Time",
|
|
1711
|
+
dimensionsMap: this.dimensions,
|
|
1712
|
+
statistic: "Average",
|
|
1713
|
+
...options
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
/**
|
|
1717
|
+
* Average of the Processor % Interrupt Time metric
|
|
1718
|
+
*
|
|
1719
|
+
* @default - Average over 5 minutes
|
|
1720
|
+
*/
|
|
1721
|
+
processorInterruptTime(options) {
|
|
1722
|
+
return new cloudwatch.Metric({
|
|
1723
|
+
namespace: "CWAgent",
|
|
1724
|
+
metricName: "Processor % Interrupt Time",
|
|
1725
|
+
dimensionsMap: this.dimensions,
|
|
1726
|
+
statistic: "Average",
|
|
1727
|
+
...options
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Average of the Processor % User Time metric
|
|
1732
|
+
*
|
|
1733
|
+
* @default - Average over 5 minutes
|
|
1734
|
+
*/
|
|
1735
|
+
processorUserTime(options) {
|
|
1736
|
+
return new cloudwatch.Metric({
|
|
1737
|
+
namespace: "CWAgent",
|
|
1738
|
+
metricName: "Processor % User Time",
|
|
1739
|
+
dimensionsMap: this.dimensions,
|
|
1740
|
+
statistic: "Average",
|
|
1741
|
+
...options
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
/**
|
|
1745
|
+
* Average of the LogicalDisk % Free Space metric
|
|
1746
|
+
*
|
|
1747
|
+
* @default - Average over 5 minutes
|
|
1748
|
+
*/
|
|
1749
|
+
logicalDiskFreeSpace(options) {
|
|
1750
|
+
return new cloudwatch.Metric({
|
|
1751
|
+
namespace: "CWAgent",
|
|
1752
|
+
metricName: "LogicalDisk % Free Space",
|
|
1753
|
+
dimensionsMap: this.dimensions,
|
|
1754
|
+
statistic: "Average",
|
|
1755
|
+
...options
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Average of the Paging File % Usage metric
|
|
1760
|
+
*
|
|
1761
|
+
* @default - Average over 5 minutes
|
|
1762
|
+
*/
|
|
1763
|
+
pagingFileUsage(options) {
|
|
1764
|
+
return new cloudwatch.Metric({
|
|
1765
|
+
namespace: "CWAgent",
|
|
1766
|
+
metricName: "Paging File % Usage",
|
|
1767
|
+
dimensionsMap: this.dimensions,
|
|
1768
|
+
statistic: "Average",
|
|
1769
|
+
...options
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
/**
|
|
1773
|
+
* Average of the PhysicalDisk % Disk Time metric
|
|
1774
|
+
*
|
|
1775
|
+
* @default - Average over 5 minutes
|
|
1776
|
+
*/
|
|
1777
|
+
physicalDiskDiskTime(options) {
|
|
1778
|
+
return new cloudwatch.Metric({
|
|
1779
|
+
namespace: "CWAgent",
|
|
1780
|
+
metricName: "PhysicalDisk % Disk Time",
|
|
1781
|
+
dimensionsMap: this.dimensions,
|
|
1782
|
+
statistic: "Average",
|
|
1783
|
+
...options
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
/**
|
|
1787
|
+
* Average of the PhysicalDisk Disk Read Bytes/sec metric
|
|
1788
|
+
*
|
|
1789
|
+
* @default - Average over 5 minutes
|
|
1790
|
+
*/
|
|
1791
|
+
physicalDiskDiskReadBytesSec(options) {
|
|
1792
|
+
return new cloudwatch.Metric({
|
|
1793
|
+
namespace: "CWAgent",
|
|
1794
|
+
metricName: "PhysicalDisk Disk Read Bytes/sec",
|
|
1795
|
+
dimensionsMap: this.dimensions,
|
|
1796
|
+
statistic: "Average",
|
|
1797
|
+
...options
|
|
1798
|
+
});
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Average of the PhysicalDisk Disk Write Bytes/sec metric
|
|
1802
|
+
*
|
|
1803
|
+
* @default - Average over 5 minutes
|
|
1804
|
+
*/
|
|
1805
|
+
physicalDiskDiskWriteBytesSec(options) {
|
|
1806
|
+
return new cloudwatch.Metric({
|
|
1807
|
+
namespace: "CWAgent",
|
|
1808
|
+
metricName: "PhysicalDisk Disk Write Bytes/sec",
|
|
1809
|
+
dimensionsMap: this.dimensions,
|
|
1810
|
+
statistic: "Average",
|
|
1811
|
+
...options
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Average of the PhysicalDisk Disk Writes/sec metric
|
|
1816
|
+
*
|
|
1817
|
+
* @default - Average over 5 minutes
|
|
1818
|
+
*/
|
|
1819
|
+
physicalDiskDiskWritesSec(options) {
|
|
1820
|
+
return new cloudwatch.Metric({
|
|
1821
|
+
namespace: "CWAgent",
|
|
1822
|
+
metricName: "PhysicalDisk Disk Writes/sec",
|
|
1823
|
+
dimensionsMap: this.dimensions,
|
|
1824
|
+
statistic: "Average",
|
|
1825
|
+
...options
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Average of the PhysicalDisk Disk Reads/sec metric
|
|
1830
|
+
*
|
|
1831
|
+
* @default - Average over 5 minutes
|
|
1832
|
+
*/
|
|
1833
|
+
physicalDiskDiskReadsSec(options) {
|
|
1834
|
+
return new cloudwatch.Metric({
|
|
1835
|
+
namespace: "CWAgent",
|
|
1836
|
+
metricName: "PhysicalDisk Disk Reads/sec",
|
|
1837
|
+
dimensionsMap: this.dimensions,
|
|
1838
|
+
statistic: "Average",
|
|
1839
|
+
...options
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
/**
|
|
1843
|
+
* Sum of the Aggregate inbound BW allowance exceeded metric
|
|
1844
|
+
*
|
|
1845
|
+
* @default - Sum over 5 minutes
|
|
1846
|
+
*/
|
|
1847
|
+
aggregateInboundBwAllowanceExceeded(options) {
|
|
1848
|
+
return new cloudwatch.Metric({
|
|
1849
|
+
namespace: "CWAgent",
|
|
1850
|
+
metricName: "Aggregate inbound BW allowance exceeded",
|
|
1851
|
+
dimensionsMap: this.dimensions,
|
|
1852
|
+
statistic: "Sum",
|
|
1853
|
+
...options
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* Sum of the Aggregate outbound BW allowance exceeded metric
|
|
1858
|
+
*
|
|
1859
|
+
* @default - Sum over 5 minutes
|
|
1860
|
+
*/
|
|
1861
|
+
aggregateOutboundBwAllowanceExceeded(options) {
|
|
1862
|
+
return new cloudwatch.Metric({
|
|
1863
|
+
namespace: "CWAgent",
|
|
1864
|
+
metricName: "Aggregate outbound BW allowance exceeded",
|
|
1865
|
+
dimensionsMap: this.dimensions,
|
|
1866
|
+
statistic: "Sum",
|
|
1867
|
+
...options
|
|
1868
|
+
});
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Average of the Available connection tracking allowance metric
|
|
1872
|
+
*
|
|
1873
|
+
* @default - Average over 5 minutes
|
|
1874
|
+
*/
|
|
1875
|
+
availableConnectionTrackingAllowance(options) {
|
|
1876
|
+
return new cloudwatch.Metric({
|
|
1877
|
+
namespace: "CWAgent",
|
|
1878
|
+
metricName: "Available connection tracking allowance",
|
|
1879
|
+
dimensionsMap: this.dimensions,
|
|
1880
|
+
statistic: "Average",
|
|
1881
|
+
...options
|
|
1882
|
+
});
|
|
1883
|
+
}
|
|
1884
|
+
/**
|
|
1885
|
+
* Average of the ena srd mode metric
|
|
1886
|
+
*
|
|
1887
|
+
* @default - Average over 5 minutes
|
|
1888
|
+
*/
|
|
1889
|
+
enaSrdMode(options) {
|
|
1890
|
+
return new cloudwatch.Metric({
|
|
1891
|
+
namespace: "CWAgent",
|
|
1892
|
+
metricName: "ena srd mode",
|
|
1893
|
+
dimensionsMap: this.dimensions,
|
|
1894
|
+
statistic: "Average",
|
|
1895
|
+
...options
|
|
1896
|
+
});
|
|
1897
|
+
}
|
|
1898
|
+
/**
|
|
1899
|
+
* Sum of the ena srd eligible tx pkts metric
|
|
1900
|
+
*
|
|
1901
|
+
* @default - Sum over 5 minutes
|
|
1902
|
+
*/
|
|
1903
|
+
enaSrdEligibleTxPkts(options) {
|
|
1904
|
+
return new cloudwatch.Metric({
|
|
1905
|
+
namespace: "CWAgent",
|
|
1906
|
+
metricName: "ena srd eligible tx pkts",
|
|
1907
|
+
dimensionsMap: this.dimensions,
|
|
1908
|
+
statistic: "Sum",
|
|
1909
|
+
...options
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
/**
|
|
1913
|
+
* Sum of the ena srd tx pkts metric
|
|
1914
|
+
*
|
|
1915
|
+
* @default - Sum over 5 minutes
|
|
1916
|
+
*/
|
|
1917
|
+
enaSrdTxPkts(options) {
|
|
1918
|
+
return new cloudwatch.Metric({
|
|
1919
|
+
namespace: "CWAgent",
|
|
1920
|
+
metricName: "ena srd tx pkts",
|
|
1921
|
+
dimensionsMap: this.dimensions,
|
|
1922
|
+
statistic: "Sum",
|
|
1923
|
+
...options
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
* Sum of the ena srd rx pkts metric
|
|
1928
|
+
*
|
|
1929
|
+
* @default - Sum over 5 minutes
|
|
1930
|
+
*/
|
|
1931
|
+
enaSrdRxPkts(options) {
|
|
1932
|
+
return new cloudwatch.Metric({
|
|
1933
|
+
namespace: "CWAgent",
|
|
1934
|
+
metricName: "ena srd rx pkts",
|
|
1935
|
+
dimensionsMap: this.dimensions,
|
|
1936
|
+
statistic: "Sum",
|
|
1937
|
+
...options
|
|
1938
|
+
});
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* Average of the ena srd resource utilization metric
|
|
1942
|
+
*
|
|
1943
|
+
* @default - Average over 5 minutes
|
|
1944
|
+
*/
|
|
1945
|
+
enaSrdResourceUtilization(options) {
|
|
1946
|
+
return new cloudwatch.Metric({
|
|
1947
|
+
namespace: "CWAgent",
|
|
1948
|
+
metricName: "ena srd resource utilization",
|
|
1949
|
+
dimensionsMap: this.dimensions,
|
|
1950
|
+
statistic: "Average",
|
|
1951
|
+
...options
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
/**
|
|
1955
|
+
* Sum of the Link local packet rate allowance exceeded metric
|
|
1956
|
+
*
|
|
1957
|
+
* @default - Sum over 5 minutes
|
|
1958
|
+
*/
|
|
1959
|
+
linkLocalPacketRateAllowanceExceeded(options) {
|
|
1960
|
+
return new cloudwatch.Metric({
|
|
1961
|
+
namespace: "CWAgent",
|
|
1962
|
+
metricName: "Link local packet rate allowance exceeded",
|
|
1963
|
+
dimensionsMap: this.dimensions,
|
|
1964
|
+
statistic: "Sum",
|
|
1965
|
+
...options
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* Sum of the PPS allowance exceeded metric
|
|
1970
|
+
*
|
|
1971
|
+
* @default - Sum over 5 minutes
|
|
1972
|
+
*/
|
|
1973
|
+
ppsAllowanceExceeded(options) {
|
|
1974
|
+
return new cloudwatch.Metric({
|
|
1975
|
+
namespace: "CWAgent",
|
|
1976
|
+
metricName: "PPS allowance exceeded",
|
|
1977
|
+
dimensionsMap: this.dimensions,
|
|
1978
|
+
statistic: "Sum",
|
|
1979
|
+
...options
|
|
1980
|
+
});
|
|
1981
|
+
}
|
|
1982
|
+
/**
|
|
1983
|
+
* Sum of the Connection tracking allowance exceeded metric
|
|
1984
|
+
*
|
|
1985
|
+
* @default - Sum over 5 minutes
|
|
1986
|
+
*/
|
|
1987
|
+
connectionTrackingAllowanceExceeded(options) {
|
|
1988
|
+
return new cloudwatch.Metric({
|
|
1989
|
+
namespace: "CWAgent",
|
|
1990
|
+
metricName: "Connection tracking allowance exceeded",
|
|
1991
|
+
dimensionsMap: this.dimensions,
|
|
1992
|
+
statistic: "Sum",
|
|
1993
|
+
...options
|
|
1994
|
+
});
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
CWAgentMetrics.InstanceMetrics = InstanceMetrics;
|
|
1998
|
+
})(CWAgentMetrics || (exports.CWAgentMetrics = CWAgentMetrics = {}));
|
|
1999
|
+
/**
|
|
2000
|
+
* CloudWatch metrics facade for AWS/NATGateway
|
|
2001
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
2002
|
+
* for selected resources if available.
|
|
2003
|
+
*
|
|
2004
|
+
* @stability external
|
|
2005
|
+
*/
|
|
2006
|
+
class NATGatewayMetrics {
|
|
2007
|
+
/**
|
|
2008
|
+
* Create NatGatewayMetrics from a NatGateway reference
|
|
2009
|
+
*/
|
|
2010
|
+
static fromNatGateway(ref) {
|
|
2011
|
+
return new NATGatewayMetrics.NatGatewayMetrics({
|
|
2012
|
+
natGatewayId: ref.natGatewayRef.natGatewayId
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
exports.NATGatewayMetrics = NATGatewayMetrics;
|
|
2017
|
+
(function (NATGatewayMetrics) {
|
|
2018
|
+
/**
|
|
2019
|
+
* Metrics for dimension set: NatGateway {NatGatewayId}
|
|
2020
|
+
*
|
|
2021
|
+
* @stability external
|
|
2022
|
+
*/
|
|
2023
|
+
class NatGatewayMetrics {
|
|
2024
|
+
dimensions;
|
|
2025
|
+
constructor(props) {
|
|
2026
|
+
this.dimensions = {
|
|
2027
|
+
NatGatewayId: props.natGatewayId
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* Maximum of the ActiveConnectionCount metric
|
|
2032
|
+
*
|
|
2033
|
+
* @default - Maximum over 5 minutes
|
|
2034
|
+
*/
|
|
2035
|
+
activeConnectionCount(options) {
|
|
2036
|
+
return new cloudwatch.Metric({
|
|
2037
|
+
namespace: "AWS/NATGateway",
|
|
2038
|
+
metricName: "ActiveConnectionCount",
|
|
2039
|
+
dimensionsMap: this.dimensions,
|
|
2040
|
+
statistic: "Maximum",
|
|
2041
|
+
...options
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
/**
|
|
2045
|
+
* Sum of the PacketsDropCount metric
|
|
2046
|
+
*
|
|
2047
|
+
* @default - Sum over 5 minutes
|
|
2048
|
+
*/
|
|
2049
|
+
packetsDropCount(options) {
|
|
2050
|
+
return new cloudwatch.Metric({
|
|
2051
|
+
namespace: "AWS/NATGateway",
|
|
2052
|
+
metricName: "PacketsDropCount",
|
|
2053
|
+
dimensionsMap: this.dimensions,
|
|
2054
|
+
statistic: "Sum",
|
|
2055
|
+
...options
|
|
2056
|
+
});
|
|
2057
|
+
}
|
|
2058
|
+
/**
|
|
2059
|
+
* Sum of the BytesInFromDestination metric
|
|
2060
|
+
*
|
|
2061
|
+
* @default - Sum over 5 minutes
|
|
2062
|
+
*/
|
|
2063
|
+
bytesInFromDestination(options) {
|
|
2064
|
+
return new cloudwatch.Metric({
|
|
2065
|
+
namespace: "AWS/NATGateway",
|
|
2066
|
+
metricName: "BytesInFromDestination",
|
|
2067
|
+
dimensionsMap: this.dimensions,
|
|
2068
|
+
statistic: "Sum",
|
|
2069
|
+
...options
|
|
2070
|
+
});
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Sum of the BytesInFromSource metric
|
|
2074
|
+
*
|
|
2075
|
+
* @default - Sum over 5 minutes
|
|
2076
|
+
*/
|
|
2077
|
+
bytesInFromSource(options) {
|
|
2078
|
+
return new cloudwatch.Metric({
|
|
2079
|
+
namespace: "AWS/NATGateway",
|
|
2080
|
+
metricName: "BytesInFromSource",
|
|
2081
|
+
dimensionsMap: this.dimensions,
|
|
2082
|
+
statistic: "Sum",
|
|
2083
|
+
...options
|
|
2084
|
+
});
|
|
2085
|
+
}
|
|
2086
|
+
/**
|
|
2087
|
+
* Sum of the BytesOutToDestination metric
|
|
2088
|
+
*
|
|
2089
|
+
* @default - Sum over 5 minutes
|
|
2090
|
+
*/
|
|
2091
|
+
bytesOutToDestination(options) {
|
|
2092
|
+
return new cloudwatch.Metric({
|
|
2093
|
+
namespace: "AWS/NATGateway",
|
|
2094
|
+
metricName: "BytesOutToDestination",
|
|
2095
|
+
dimensionsMap: this.dimensions,
|
|
2096
|
+
statistic: "Sum",
|
|
2097
|
+
...options
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Sum of the BytesOutToSource metric
|
|
2102
|
+
*
|
|
2103
|
+
* @default - Sum over 5 minutes
|
|
2104
|
+
*/
|
|
2105
|
+
bytesOutToSource(options) {
|
|
2106
|
+
return new cloudwatch.Metric({
|
|
2107
|
+
namespace: "AWS/NATGateway",
|
|
2108
|
+
metricName: "BytesOutToSource",
|
|
2109
|
+
dimensionsMap: this.dimensions,
|
|
2110
|
+
statistic: "Sum",
|
|
2111
|
+
...options
|
|
2112
|
+
});
|
|
2113
|
+
}
|
|
2114
|
+
/**
|
|
2115
|
+
* Sum of the ConnectionAttemptCount metric
|
|
2116
|
+
*
|
|
2117
|
+
* @default - Sum over 5 minutes
|
|
2118
|
+
*/
|
|
2119
|
+
connectionAttemptCount(options) {
|
|
2120
|
+
return new cloudwatch.Metric({
|
|
2121
|
+
namespace: "AWS/NATGateway",
|
|
2122
|
+
metricName: "ConnectionAttemptCount",
|
|
2123
|
+
dimensionsMap: this.dimensions,
|
|
2124
|
+
statistic: "Sum",
|
|
2125
|
+
...options
|
|
2126
|
+
});
|
|
2127
|
+
}
|
|
2128
|
+
/**
|
|
2129
|
+
* Sum of the ConnectionEstablishedCount metric
|
|
2130
|
+
*
|
|
2131
|
+
* @default - Sum over 5 minutes
|
|
2132
|
+
*/
|
|
2133
|
+
connectionEstablishedCount(options) {
|
|
2134
|
+
return new cloudwatch.Metric({
|
|
2135
|
+
namespace: "AWS/NATGateway",
|
|
2136
|
+
metricName: "ConnectionEstablishedCount",
|
|
2137
|
+
dimensionsMap: this.dimensions,
|
|
2138
|
+
statistic: "Sum",
|
|
2139
|
+
...options
|
|
2140
|
+
});
|
|
2141
|
+
}
|
|
2142
|
+
/**
|
|
2143
|
+
* Sum of the ErrorPortAllocation metric
|
|
2144
|
+
*
|
|
2145
|
+
* @default - Sum over 5 minutes
|
|
2146
|
+
*/
|
|
2147
|
+
errorPortAllocation(options) {
|
|
2148
|
+
return new cloudwatch.Metric({
|
|
2149
|
+
namespace: "AWS/NATGateway",
|
|
2150
|
+
metricName: "ErrorPortAllocation",
|
|
2151
|
+
dimensionsMap: this.dimensions,
|
|
2152
|
+
statistic: "Sum",
|
|
2153
|
+
...options
|
|
2154
|
+
});
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* Sum of the IdleTimeoutCount metric
|
|
2158
|
+
*
|
|
2159
|
+
* @default - Sum over 5 minutes
|
|
2160
|
+
*/
|
|
2161
|
+
idleTimeoutCount(options) {
|
|
2162
|
+
return new cloudwatch.Metric({
|
|
2163
|
+
namespace: "AWS/NATGateway",
|
|
2164
|
+
metricName: "IdleTimeoutCount",
|
|
2165
|
+
dimensionsMap: this.dimensions,
|
|
2166
|
+
statistic: "Sum",
|
|
2167
|
+
...options
|
|
2168
|
+
});
|
|
2169
|
+
}
|
|
2170
|
+
/**
|
|
2171
|
+
* Sum of the PacketsInFromDestination metric
|
|
2172
|
+
*
|
|
2173
|
+
* @default - Sum over 5 minutes
|
|
2174
|
+
*/
|
|
2175
|
+
packetsInFromDestination(options) {
|
|
2176
|
+
return new cloudwatch.Metric({
|
|
2177
|
+
namespace: "AWS/NATGateway",
|
|
2178
|
+
metricName: "PacketsInFromDestination",
|
|
2179
|
+
dimensionsMap: this.dimensions,
|
|
2180
|
+
statistic: "Sum",
|
|
2181
|
+
...options
|
|
2182
|
+
});
|
|
2183
|
+
}
|
|
2184
|
+
/**
|
|
2185
|
+
* Sum of the PacketsInFromSource metric
|
|
2186
|
+
*
|
|
2187
|
+
* @default - Sum over 5 minutes
|
|
2188
|
+
*/
|
|
2189
|
+
packetsInFromSource(options) {
|
|
2190
|
+
return new cloudwatch.Metric({
|
|
2191
|
+
namespace: "AWS/NATGateway",
|
|
2192
|
+
metricName: "PacketsInFromSource",
|
|
2193
|
+
dimensionsMap: this.dimensions,
|
|
2194
|
+
statistic: "Sum",
|
|
2195
|
+
...options
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
/**
|
|
2199
|
+
* Sum of the PacketsOutToDestination metric
|
|
2200
|
+
*
|
|
2201
|
+
* @default - Sum over 5 minutes
|
|
2202
|
+
*/
|
|
2203
|
+
packetsOutToDestination(options) {
|
|
2204
|
+
return new cloudwatch.Metric({
|
|
2205
|
+
namespace: "AWS/NATGateway",
|
|
2206
|
+
metricName: "PacketsOutToDestination",
|
|
2207
|
+
dimensionsMap: this.dimensions,
|
|
2208
|
+
statistic: "Sum",
|
|
2209
|
+
...options
|
|
2210
|
+
});
|
|
2211
|
+
}
|
|
2212
|
+
/**
|
|
2213
|
+
* Sum of the PacketsOutToSource metric
|
|
2214
|
+
*
|
|
2215
|
+
* @default - Sum over 5 minutes
|
|
2216
|
+
*/
|
|
2217
|
+
packetsOutToSource(options) {
|
|
2218
|
+
return new cloudwatch.Metric({
|
|
2219
|
+
namespace: "AWS/NATGateway",
|
|
2220
|
+
metricName: "PacketsOutToSource",
|
|
2221
|
+
dimensionsMap: this.dimensions,
|
|
2222
|
+
statistic: "Sum",
|
|
2223
|
+
...options
|
|
2224
|
+
});
|
|
2225
|
+
}
|
|
2226
|
+
/**
|
|
2227
|
+
* Maximum of the PeakBytesPerSecond metric
|
|
2228
|
+
*
|
|
2229
|
+
* @default - Maximum over 5 minutes
|
|
2230
|
+
*/
|
|
2231
|
+
peakBytesPerSecond(options) {
|
|
2232
|
+
return new cloudwatch.Metric({
|
|
2233
|
+
namespace: "AWS/NATGateway",
|
|
2234
|
+
metricName: "PeakBytesPerSecond",
|
|
2235
|
+
dimensionsMap: this.dimensions,
|
|
2236
|
+
statistic: "Maximum",
|
|
2237
|
+
...options
|
|
2238
|
+
});
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
* Maximum of the PeakPacketsPerSecond metric
|
|
2242
|
+
*
|
|
2243
|
+
* @default - Maximum over 5 minutes
|
|
2244
|
+
*/
|
|
2245
|
+
peakPacketsPerSecond(options) {
|
|
2246
|
+
return new cloudwatch.Metric({
|
|
2247
|
+
namespace: "AWS/NATGateway",
|
|
2248
|
+
metricName: "PeakPacketsPerSecond",
|
|
2249
|
+
dimensionsMap: this.dimensions,
|
|
2250
|
+
statistic: "Maximum",
|
|
2251
|
+
...options
|
|
2252
|
+
});
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
NATGatewayMetrics.NatGatewayMetrics = NatGatewayMetrics;
|
|
2256
|
+
})(NATGatewayMetrics || (exports.NATGatewayMetrics = NATGatewayMetrics = {}));
|
|
2257
|
+
/**
|
|
2258
|
+
* CloudWatch metrics facade for AWS/TransitGateway
|
|
2259
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
2260
|
+
* for selected resources if available.
|
|
2261
|
+
*
|
|
2262
|
+
* @stability external
|
|
2263
|
+
*/
|
|
2264
|
+
class TransitGatewayMetrics {
|
|
2265
|
+
}
|
|
2266
|
+
exports.TransitGatewayMetrics = TransitGatewayMetrics;
|
|
2267
|
+
(function (TransitGatewayMetrics_1) {
|
|
2268
|
+
/**
|
|
2269
|
+
* Metrics for dimension set: TransitGateway {TransitGateway}
|
|
2270
|
+
*
|
|
2271
|
+
* @stability external
|
|
2272
|
+
*/
|
|
2273
|
+
class TransitGatewayMetrics {
|
|
2274
|
+
dimensions;
|
|
2275
|
+
constructor(props) {
|
|
2276
|
+
this.dimensions = {
|
|
2277
|
+
TransitGateway: props.transitGateway
|
|
2278
|
+
};
|
|
2279
|
+
}
|
|
2280
|
+
/**
|
|
2281
|
+
* Sum of the BytesIn metric
|
|
2282
|
+
*
|
|
2283
|
+
* @default - Sum over 5 minutes
|
|
2284
|
+
*/
|
|
2285
|
+
bytesIn(options) {
|
|
2286
|
+
return new cloudwatch.Metric({
|
|
2287
|
+
namespace: "AWS/TransitGateway",
|
|
2288
|
+
metricName: "BytesIn",
|
|
2289
|
+
dimensionsMap: this.dimensions,
|
|
2290
|
+
statistic: "Sum",
|
|
2291
|
+
...options
|
|
2292
|
+
});
|
|
2293
|
+
}
|
|
2294
|
+
/**
|
|
2295
|
+
* Sum of the BytesOut metric
|
|
2296
|
+
*
|
|
2297
|
+
* @default - Sum over 5 minutes
|
|
2298
|
+
*/
|
|
2299
|
+
bytesOut(options) {
|
|
2300
|
+
return new cloudwatch.Metric({
|
|
2301
|
+
namespace: "AWS/TransitGateway",
|
|
2302
|
+
metricName: "BytesOut",
|
|
2303
|
+
dimensionsMap: this.dimensions,
|
|
2304
|
+
statistic: "Sum",
|
|
2305
|
+
...options
|
|
2306
|
+
});
|
|
2307
|
+
}
|
|
2308
|
+
/**
|
|
2309
|
+
* Sum of the PacketDropCountBlackhole metric
|
|
2310
|
+
*
|
|
2311
|
+
* @default - Sum over 5 minutes
|
|
2312
|
+
*/
|
|
2313
|
+
packetDropCountBlackhole(options) {
|
|
2314
|
+
return new cloudwatch.Metric({
|
|
2315
|
+
namespace: "AWS/TransitGateway",
|
|
2316
|
+
metricName: "PacketDropCountBlackhole",
|
|
2317
|
+
dimensionsMap: this.dimensions,
|
|
2318
|
+
statistic: "Sum",
|
|
2319
|
+
...options
|
|
2320
|
+
});
|
|
2321
|
+
}
|
|
2322
|
+
/**
|
|
2323
|
+
* Sum of the PacketDropCountNoRoute metric
|
|
2324
|
+
*
|
|
2325
|
+
* @default - Sum over 5 minutes
|
|
2326
|
+
*/
|
|
2327
|
+
packetDropCountNoRoute(options) {
|
|
2328
|
+
return new cloudwatch.Metric({
|
|
2329
|
+
namespace: "AWS/TransitGateway",
|
|
2330
|
+
metricName: "PacketDropCountNoRoute",
|
|
2331
|
+
dimensionsMap: this.dimensions,
|
|
2332
|
+
statistic: "Sum",
|
|
2333
|
+
...options
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
/**
|
|
2337
|
+
* Sum of the PacketsIn metric
|
|
2338
|
+
*
|
|
2339
|
+
* @default - Sum over 5 minutes
|
|
2340
|
+
*/
|
|
2341
|
+
packetsIn(options) {
|
|
2342
|
+
return new cloudwatch.Metric({
|
|
2343
|
+
namespace: "AWS/TransitGateway",
|
|
2344
|
+
metricName: "PacketsIn",
|
|
2345
|
+
dimensionsMap: this.dimensions,
|
|
2346
|
+
statistic: "Sum",
|
|
2347
|
+
...options
|
|
2348
|
+
});
|
|
2349
|
+
}
|
|
2350
|
+
/**
|
|
2351
|
+
* Sum of the PacketsOut metric
|
|
2352
|
+
*
|
|
2353
|
+
* @default - Sum over 5 minutes
|
|
2354
|
+
*/
|
|
2355
|
+
packetsOut(options) {
|
|
2356
|
+
return new cloudwatch.Metric({
|
|
2357
|
+
namespace: "AWS/TransitGateway",
|
|
2358
|
+
metricName: "PacketsOut",
|
|
2359
|
+
dimensionsMap: this.dimensions,
|
|
2360
|
+
statistic: "Sum",
|
|
2361
|
+
...options
|
|
2362
|
+
});
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
TransitGatewayMetrics_1.TransitGatewayMetrics = TransitGatewayMetrics;
|
|
2366
|
+
})(TransitGatewayMetrics || (exports.TransitGatewayMetrics = TransitGatewayMetrics = {}));
|
|
2367
|
+
/**
|
|
2368
|
+
* CloudWatch metrics facade for AWS/VPN
|
|
2369
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
2370
|
+
* for selected resources if available.
|
|
2371
|
+
*
|
|
2372
|
+
* @stability external
|
|
2373
|
+
*/
|
|
2374
|
+
class VPNMetrics {
|
|
2375
|
+
}
|
|
2376
|
+
exports.VPNMetrics = VPNMetrics;
|
|
2377
|
+
(function (VPNMetrics) {
|
|
2378
|
+
/**
|
|
2379
|
+
* Metrics for dimension set: VpnConnection {VpnId}
|
|
2380
|
+
*
|
|
2381
|
+
* @stability external
|
|
2382
|
+
*/
|
|
2383
|
+
class VpnConnectionMetrics {
|
|
2384
|
+
dimensions;
|
|
2385
|
+
constructor(props) {
|
|
2386
|
+
this.dimensions = {
|
|
2387
|
+
VpnId: props.vpnId
|
|
2388
|
+
};
|
|
2389
|
+
}
|
|
2390
|
+
/**
|
|
2391
|
+
* Sum of the TunnelDataIn metric
|
|
2392
|
+
*
|
|
2393
|
+
* @default - Sum over 5 minutes
|
|
2394
|
+
*/
|
|
2395
|
+
tunnelDataIn(options) {
|
|
2396
|
+
return new cloudwatch.Metric({
|
|
2397
|
+
namespace: "AWS/VPN",
|
|
2398
|
+
metricName: "TunnelDataIn",
|
|
2399
|
+
dimensionsMap: this.dimensions,
|
|
2400
|
+
statistic: "Sum",
|
|
2401
|
+
...options
|
|
2402
|
+
});
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2405
|
+
* Average of the TunnelState metric
|
|
2406
|
+
*
|
|
2407
|
+
* @default - Average over 5 minutes
|
|
2408
|
+
*/
|
|
2409
|
+
tunnelState(options) {
|
|
2410
|
+
return new cloudwatch.Metric({
|
|
2411
|
+
namespace: "AWS/VPN",
|
|
2412
|
+
metricName: "TunnelState",
|
|
2413
|
+
dimensionsMap: this.dimensions,
|
|
2414
|
+
statistic: "Average",
|
|
2415
|
+
...options
|
|
2416
|
+
});
|
|
2417
|
+
}
|
|
2418
|
+
/**
|
|
2419
|
+
* Sum of the TunnelDataOut metric
|
|
2420
|
+
*
|
|
2421
|
+
* @default - Sum over 5 minutes
|
|
2422
|
+
*/
|
|
2423
|
+
tunnelDataOut(options) {
|
|
2424
|
+
return new cloudwatch.Metric({
|
|
2425
|
+
namespace: "AWS/VPN",
|
|
2426
|
+
metricName: "TunnelDataOut",
|
|
2427
|
+
dimensionsMap: this.dimensions,
|
|
2428
|
+
statistic: "Sum",
|
|
2429
|
+
...options
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
VPNMetrics.VpnConnectionMetrics = VpnConnectionMetrics;
|
|
2434
|
+
})(VPNMetrics || (exports.VPNMetrics = VPNMetrics = {}));
|