@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,159 @@
|
|
|
1
|
+
import * as cloudwatch from "aws-cdk-lib/aws-cloudwatch";
|
|
2
|
+
import { IActivityRef, IStateMachineRef } from "aws-cdk-lib/aws-stepfunctions";
|
|
3
|
+
/**
|
|
4
|
+
* CloudWatch metrics facade for AWS/States
|
|
5
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
6
|
+
* for selected resources if available.
|
|
7
|
+
*
|
|
8
|
+
* @stability external
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class StatesMetrics {
|
|
11
|
+
/**
|
|
12
|
+
* Create ActivityMetrics from a Activity reference
|
|
13
|
+
*/
|
|
14
|
+
static fromActivity(ref: IActivityRef): StatesMetrics.ActivityMetrics;
|
|
15
|
+
/**
|
|
16
|
+
* Create StateMachineMetrics from a StateMachine reference
|
|
17
|
+
*/
|
|
18
|
+
static fromStateMachine(ref: IStateMachineRef): StatesMetrics.StateMachineMetrics;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace StatesMetrics {
|
|
21
|
+
/**
|
|
22
|
+
* Metrics for dimension set: StateMachine {StateMachineArn}
|
|
23
|
+
*
|
|
24
|
+
* @stability external
|
|
25
|
+
*/
|
|
26
|
+
class StateMachineMetrics {
|
|
27
|
+
private readonly dimensions;
|
|
28
|
+
constructor(props: StatesMetrics.StateMachineMetricsProps);
|
|
29
|
+
/**
|
|
30
|
+
* Sum of the ExecutionsAborted metric
|
|
31
|
+
*
|
|
32
|
+
* @default - Sum over 5 minutes
|
|
33
|
+
*/
|
|
34
|
+
executionsAborted(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
35
|
+
/**
|
|
36
|
+
* Sum of the ExecutionsFailed metric
|
|
37
|
+
*
|
|
38
|
+
* @default - Sum over 5 minutes
|
|
39
|
+
*/
|
|
40
|
+
executionsFailed(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
41
|
+
/**
|
|
42
|
+
* Sum of the ExecutionsStarted metric
|
|
43
|
+
*
|
|
44
|
+
* @default - Sum over 5 minutes
|
|
45
|
+
*/
|
|
46
|
+
executionsStarted(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
47
|
+
/**
|
|
48
|
+
* Sum of the ExecutionsSucceeded metric
|
|
49
|
+
*
|
|
50
|
+
* @default - Sum over 5 minutes
|
|
51
|
+
*/
|
|
52
|
+
executionsSucceeded(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
53
|
+
/**
|
|
54
|
+
* Sum of the ExecutionThrottled metric
|
|
55
|
+
*
|
|
56
|
+
* @default - Sum over 5 minutes
|
|
57
|
+
*/
|
|
58
|
+
executionThrottled(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
59
|
+
/**
|
|
60
|
+
* Sum of the ExecutionsTimedOut metric
|
|
61
|
+
*
|
|
62
|
+
* @default - Sum over 5 minutes
|
|
63
|
+
*/
|
|
64
|
+
executionsTimedOut(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
65
|
+
/**
|
|
66
|
+
* Average of the ExecutionTime metric
|
|
67
|
+
*
|
|
68
|
+
* @default - Average over 5 minutes
|
|
69
|
+
*/
|
|
70
|
+
executionTime(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Dimensions for StateMachineMetrics
|
|
74
|
+
*
|
|
75
|
+
* @struct
|
|
76
|
+
* @stability external
|
|
77
|
+
*/
|
|
78
|
+
interface StateMachineMetricsProps {
|
|
79
|
+
/**
|
|
80
|
+
* The StateMachineArn dimension
|
|
81
|
+
*/
|
|
82
|
+
readonly stateMachineArn: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Metrics for dimension set: Activity {ActivityArn}
|
|
86
|
+
*
|
|
87
|
+
* @stability external
|
|
88
|
+
*/
|
|
89
|
+
class ActivityMetrics {
|
|
90
|
+
private readonly dimensions;
|
|
91
|
+
constructor(props: StatesMetrics.ActivityMetricsProps);
|
|
92
|
+
/**
|
|
93
|
+
* Sum of the ActivitiesFailed metric
|
|
94
|
+
*
|
|
95
|
+
* @default - Sum over 5 minutes
|
|
96
|
+
*/
|
|
97
|
+
activitiesFailed(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
98
|
+
/**
|
|
99
|
+
* Sum of the ActivitiesHeartbeatTimedOut metric
|
|
100
|
+
*
|
|
101
|
+
* @default - Sum over 5 minutes
|
|
102
|
+
*/
|
|
103
|
+
activitiesHeartbeatTimedOut(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
104
|
+
/**
|
|
105
|
+
* Sum of the ActivitiesScheduled metric
|
|
106
|
+
*
|
|
107
|
+
* @default - Sum over 5 minutes
|
|
108
|
+
*/
|
|
109
|
+
activitiesScheduled(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
110
|
+
/**
|
|
111
|
+
* Sum of the ActivitiesStarted metric
|
|
112
|
+
*
|
|
113
|
+
* @default - Sum over 5 minutes
|
|
114
|
+
*/
|
|
115
|
+
activitiesStarted(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
116
|
+
/**
|
|
117
|
+
* Sum of the ActivitiesSucceeded metric
|
|
118
|
+
*
|
|
119
|
+
* @default - Sum over 5 minutes
|
|
120
|
+
*/
|
|
121
|
+
activitiesSucceeded(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
122
|
+
/**
|
|
123
|
+
* Sum of the ActivitiesTimedOut metric
|
|
124
|
+
*
|
|
125
|
+
* @default - Sum over 5 minutes
|
|
126
|
+
*/
|
|
127
|
+
activitiesTimedOut(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
128
|
+
/**
|
|
129
|
+
* Average of the ActivityRunTime metric
|
|
130
|
+
*
|
|
131
|
+
* @default - Average over 5 minutes
|
|
132
|
+
*/
|
|
133
|
+
activityRunTime(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
134
|
+
/**
|
|
135
|
+
* Average of the ActivityScheduleTime metric
|
|
136
|
+
*
|
|
137
|
+
* @default - Average over 5 minutes
|
|
138
|
+
*/
|
|
139
|
+
activityScheduleTime(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
140
|
+
/**
|
|
141
|
+
* Average of the ActivityTime metric
|
|
142
|
+
*
|
|
143
|
+
* @default - Average over 5 minutes
|
|
144
|
+
*/
|
|
145
|
+
activityTime(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Dimensions for ActivityMetrics
|
|
149
|
+
*
|
|
150
|
+
* @struct
|
|
151
|
+
* @stability external
|
|
152
|
+
*/
|
|
153
|
+
interface ActivityMetricsProps {
|
|
154
|
+
/**
|
|
155
|
+
* The ActivityArn dimension
|
|
156
|
+
*/
|
|
157
|
+
readonly activityArn: string;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,318 @@
|
|
|
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.StatesMetrics = 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/States
|
|
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 StatesMetrics {
|
|
47
|
+
/**
|
|
48
|
+
* Create ActivityMetrics from a Activity reference
|
|
49
|
+
*/
|
|
50
|
+
static fromActivity(ref) {
|
|
51
|
+
return new StatesMetrics.ActivityMetrics({
|
|
52
|
+
activityArn: ref.activityRef.activityArn
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Create StateMachineMetrics from a StateMachine reference
|
|
57
|
+
*/
|
|
58
|
+
static fromStateMachine(ref) {
|
|
59
|
+
return new StatesMetrics.StateMachineMetrics({
|
|
60
|
+
stateMachineArn: ref.stateMachineRef.stateMachineArn
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.StatesMetrics = StatesMetrics;
|
|
65
|
+
(function (StatesMetrics) {
|
|
66
|
+
/**
|
|
67
|
+
* Metrics for dimension set: StateMachine {StateMachineArn}
|
|
68
|
+
*
|
|
69
|
+
* @stability external
|
|
70
|
+
*/
|
|
71
|
+
class StateMachineMetrics {
|
|
72
|
+
dimensions;
|
|
73
|
+
constructor(props) {
|
|
74
|
+
this.dimensions = {
|
|
75
|
+
StateMachineArn: props.stateMachineArn
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Sum of the ExecutionsAborted metric
|
|
80
|
+
*
|
|
81
|
+
* @default - Sum over 5 minutes
|
|
82
|
+
*/
|
|
83
|
+
executionsAborted(options) {
|
|
84
|
+
return new cloudwatch.Metric({
|
|
85
|
+
namespace: "AWS/States",
|
|
86
|
+
metricName: "ExecutionsAborted",
|
|
87
|
+
dimensionsMap: this.dimensions,
|
|
88
|
+
statistic: "Sum",
|
|
89
|
+
...options
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Sum of the ExecutionsFailed metric
|
|
94
|
+
*
|
|
95
|
+
* @default - Sum over 5 minutes
|
|
96
|
+
*/
|
|
97
|
+
executionsFailed(options) {
|
|
98
|
+
return new cloudwatch.Metric({
|
|
99
|
+
namespace: "AWS/States",
|
|
100
|
+
metricName: "ExecutionsFailed",
|
|
101
|
+
dimensionsMap: this.dimensions,
|
|
102
|
+
statistic: "Sum",
|
|
103
|
+
...options
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Sum of the ExecutionsStarted metric
|
|
108
|
+
*
|
|
109
|
+
* @default - Sum over 5 minutes
|
|
110
|
+
*/
|
|
111
|
+
executionsStarted(options) {
|
|
112
|
+
return new cloudwatch.Metric({
|
|
113
|
+
namespace: "AWS/States",
|
|
114
|
+
metricName: "ExecutionsStarted",
|
|
115
|
+
dimensionsMap: this.dimensions,
|
|
116
|
+
statistic: "Sum",
|
|
117
|
+
...options
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Sum of the ExecutionsSucceeded metric
|
|
122
|
+
*
|
|
123
|
+
* @default - Sum over 5 minutes
|
|
124
|
+
*/
|
|
125
|
+
executionsSucceeded(options) {
|
|
126
|
+
return new cloudwatch.Metric({
|
|
127
|
+
namespace: "AWS/States",
|
|
128
|
+
metricName: "ExecutionsSucceeded",
|
|
129
|
+
dimensionsMap: this.dimensions,
|
|
130
|
+
statistic: "Sum",
|
|
131
|
+
...options
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Sum of the ExecutionThrottled metric
|
|
136
|
+
*
|
|
137
|
+
* @default - Sum over 5 minutes
|
|
138
|
+
*/
|
|
139
|
+
executionThrottled(options) {
|
|
140
|
+
return new cloudwatch.Metric({
|
|
141
|
+
namespace: "AWS/States",
|
|
142
|
+
metricName: "ExecutionThrottled",
|
|
143
|
+
dimensionsMap: this.dimensions,
|
|
144
|
+
statistic: "Sum",
|
|
145
|
+
...options
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Sum of the ExecutionsTimedOut metric
|
|
150
|
+
*
|
|
151
|
+
* @default - Sum over 5 minutes
|
|
152
|
+
*/
|
|
153
|
+
executionsTimedOut(options) {
|
|
154
|
+
return new cloudwatch.Metric({
|
|
155
|
+
namespace: "AWS/States",
|
|
156
|
+
metricName: "ExecutionsTimedOut",
|
|
157
|
+
dimensionsMap: this.dimensions,
|
|
158
|
+
statistic: "Sum",
|
|
159
|
+
...options
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Average of the ExecutionTime metric
|
|
164
|
+
*
|
|
165
|
+
* @default - Average over 5 minutes
|
|
166
|
+
*/
|
|
167
|
+
executionTime(options) {
|
|
168
|
+
return new cloudwatch.Metric({
|
|
169
|
+
namespace: "AWS/States",
|
|
170
|
+
metricName: "ExecutionTime",
|
|
171
|
+
dimensionsMap: this.dimensions,
|
|
172
|
+
statistic: "Average",
|
|
173
|
+
...options
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
StatesMetrics.StateMachineMetrics = StateMachineMetrics;
|
|
178
|
+
/**
|
|
179
|
+
* Metrics for dimension set: Activity {ActivityArn}
|
|
180
|
+
*
|
|
181
|
+
* @stability external
|
|
182
|
+
*/
|
|
183
|
+
class ActivityMetrics {
|
|
184
|
+
dimensions;
|
|
185
|
+
constructor(props) {
|
|
186
|
+
this.dimensions = {
|
|
187
|
+
ActivityArn: props.activityArn
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Sum of the ActivitiesFailed metric
|
|
192
|
+
*
|
|
193
|
+
* @default - Sum over 5 minutes
|
|
194
|
+
*/
|
|
195
|
+
activitiesFailed(options) {
|
|
196
|
+
return new cloudwatch.Metric({
|
|
197
|
+
namespace: "AWS/States",
|
|
198
|
+
metricName: "ActivitiesFailed",
|
|
199
|
+
dimensionsMap: this.dimensions,
|
|
200
|
+
statistic: "Sum",
|
|
201
|
+
...options
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Sum of the ActivitiesHeartbeatTimedOut metric
|
|
206
|
+
*
|
|
207
|
+
* @default - Sum over 5 minutes
|
|
208
|
+
*/
|
|
209
|
+
activitiesHeartbeatTimedOut(options) {
|
|
210
|
+
return new cloudwatch.Metric({
|
|
211
|
+
namespace: "AWS/States",
|
|
212
|
+
metricName: "ActivitiesHeartbeatTimedOut",
|
|
213
|
+
dimensionsMap: this.dimensions,
|
|
214
|
+
statistic: "Sum",
|
|
215
|
+
...options
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Sum of the ActivitiesScheduled metric
|
|
220
|
+
*
|
|
221
|
+
* @default - Sum over 5 minutes
|
|
222
|
+
*/
|
|
223
|
+
activitiesScheduled(options) {
|
|
224
|
+
return new cloudwatch.Metric({
|
|
225
|
+
namespace: "AWS/States",
|
|
226
|
+
metricName: "ActivitiesScheduled",
|
|
227
|
+
dimensionsMap: this.dimensions,
|
|
228
|
+
statistic: "Sum",
|
|
229
|
+
...options
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Sum of the ActivitiesStarted metric
|
|
234
|
+
*
|
|
235
|
+
* @default - Sum over 5 minutes
|
|
236
|
+
*/
|
|
237
|
+
activitiesStarted(options) {
|
|
238
|
+
return new cloudwatch.Metric({
|
|
239
|
+
namespace: "AWS/States",
|
|
240
|
+
metricName: "ActivitiesStarted",
|
|
241
|
+
dimensionsMap: this.dimensions,
|
|
242
|
+
statistic: "Sum",
|
|
243
|
+
...options
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Sum of the ActivitiesSucceeded metric
|
|
248
|
+
*
|
|
249
|
+
* @default - Sum over 5 minutes
|
|
250
|
+
*/
|
|
251
|
+
activitiesSucceeded(options) {
|
|
252
|
+
return new cloudwatch.Metric({
|
|
253
|
+
namespace: "AWS/States",
|
|
254
|
+
metricName: "ActivitiesSucceeded",
|
|
255
|
+
dimensionsMap: this.dimensions,
|
|
256
|
+
statistic: "Sum",
|
|
257
|
+
...options
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Sum of the ActivitiesTimedOut metric
|
|
262
|
+
*
|
|
263
|
+
* @default - Sum over 5 minutes
|
|
264
|
+
*/
|
|
265
|
+
activitiesTimedOut(options) {
|
|
266
|
+
return new cloudwatch.Metric({
|
|
267
|
+
namespace: "AWS/States",
|
|
268
|
+
metricName: "ActivitiesTimedOut",
|
|
269
|
+
dimensionsMap: this.dimensions,
|
|
270
|
+
statistic: "Sum",
|
|
271
|
+
...options
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Average of the ActivityRunTime metric
|
|
276
|
+
*
|
|
277
|
+
* @default - Average over 5 minutes
|
|
278
|
+
*/
|
|
279
|
+
activityRunTime(options) {
|
|
280
|
+
return new cloudwatch.Metric({
|
|
281
|
+
namespace: "AWS/States",
|
|
282
|
+
metricName: "ActivityRunTime",
|
|
283
|
+
dimensionsMap: this.dimensions,
|
|
284
|
+
statistic: "Average",
|
|
285
|
+
...options
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Average of the ActivityScheduleTime metric
|
|
290
|
+
*
|
|
291
|
+
* @default - Average over 5 minutes
|
|
292
|
+
*/
|
|
293
|
+
activityScheduleTime(options) {
|
|
294
|
+
return new cloudwatch.Metric({
|
|
295
|
+
namespace: "AWS/States",
|
|
296
|
+
metricName: "ActivityScheduleTime",
|
|
297
|
+
dimensionsMap: this.dimensions,
|
|
298
|
+
statistic: "Average",
|
|
299
|
+
...options
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Average of the ActivityTime metric
|
|
304
|
+
*
|
|
305
|
+
* @default - Average over 5 minutes
|
|
306
|
+
*/
|
|
307
|
+
activityTime(options) {
|
|
308
|
+
return new cloudwatch.Metric({
|
|
309
|
+
namespace: "AWS/States",
|
|
310
|
+
metricName: "ActivityTime",
|
|
311
|
+
dimensionsMap: this.dimensions,
|
|
312
|
+
statistic: "Average",
|
|
313
|
+
...options
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
StatesMetrics.ActivityMetrics = ActivityMetrics;
|
|
318
|
+
})(StatesMetrics || (exports.StatesMetrics = StatesMetrics = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"targets": {
|
|
3
|
+
"java": {
|
|
4
|
+
"package": "software.amazon.awscdk.metricsfacade.alpha.services.synthetics"
|
|
5
|
+
},
|
|
6
|
+
"dotnet": {
|
|
7
|
+
"namespace": "Amazon.CDK.MetricsFacade.Alpha.AWS.Synthetics"
|
|
8
|
+
},
|
|
9
|
+
"python": {
|
|
10
|
+
"module": "aws_cdk.metrics_facade_alpha.aws_synthetics"
|
|
11
|
+
},
|
|
12
|
+
"go": {
|
|
13
|
+
"packageName": "metricsfacadealphaawssynthetics"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './metrics.generated';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./metrics.generated"), exports);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as cloudwatch from "aws-cdk-lib/aws-cloudwatch";
|
|
2
|
+
import { ICanaryRef } from "aws-cdk-lib/aws-synthetics";
|
|
3
|
+
/**
|
|
4
|
+
* CloudWatch metrics facade for CloudWatchSynthetics
|
|
5
|
+
* This class contains helper functions to initialize the dimension-sets classes
|
|
6
|
+
* for selected resources if available.
|
|
7
|
+
*
|
|
8
|
+
* @stability external
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class CloudWatchSyntheticsMetrics {
|
|
11
|
+
/**
|
|
12
|
+
* Create CanaryMetrics from a Canary reference
|
|
13
|
+
*/
|
|
14
|
+
static fromCanary(ref: ICanaryRef): CloudWatchSyntheticsMetrics.CanaryMetrics;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace CloudWatchSyntheticsMetrics {
|
|
17
|
+
/**
|
|
18
|
+
* Metrics for dimension set: Canary {CanaryName}
|
|
19
|
+
*
|
|
20
|
+
* @stability external
|
|
21
|
+
*/
|
|
22
|
+
class CanaryMetrics {
|
|
23
|
+
private readonly dimensions;
|
|
24
|
+
constructor(props: CloudWatchSyntheticsMetrics.CanaryMetricsProps);
|
|
25
|
+
/**
|
|
26
|
+
* Sum of the 2xx metric
|
|
27
|
+
*
|
|
28
|
+
* @default - Sum over 5 minutes
|
|
29
|
+
*/
|
|
30
|
+
_2xx(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
31
|
+
/**
|
|
32
|
+
* Sum of the 4xx metric
|
|
33
|
+
*
|
|
34
|
+
* @default - Sum over 5 minutes
|
|
35
|
+
*/
|
|
36
|
+
_4xx(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
37
|
+
/**
|
|
38
|
+
* Sum of the 5xx metric
|
|
39
|
+
*
|
|
40
|
+
* @default - Sum over 5 minutes
|
|
41
|
+
*/
|
|
42
|
+
_5xx(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum of the Duration metric
|
|
45
|
+
*
|
|
46
|
+
* @default - Maximum over 5 minutes
|
|
47
|
+
*/
|
|
48
|
+
duration(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
49
|
+
/**
|
|
50
|
+
* Sum of the Failed metric
|
|
51
|
+
*
|
|
52
|
+
* @default - Sum over 5 minutes
|
|
53
|
+
*/
|
|
54
|
+
failed(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
55
|
+
/**
|
|
56
|
+
* Sum of the Failed requests metric
|
|
57
|
+
*
|
|
58
|
+
* @default - Sum over 5 minutes
|
|
59
|
+
*/
|
|
60
|
+
failedRequests(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
61
|
+
/**
|
|
62
|
+
* Average of the SuccessPercent metric
|
|
63
|
+
*
|
|
64
|
+
* @default - Average over 5 minutes
|
|
65
|
+
*/
|
|
66
|
+
successPercent(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Dimensions for CanaryMetrics
|
|
70
|
+
*
|
|
71
|
+
* @struct
|
|
72
|
+
* @stability external
|
|
73
|
+
*/
|
|
74
|
+
interface CanaryMetricsProps {
|
|
75
|
+
/**
|
|
76
|
+
* The CanaryName dimension
|
|
77
|
+
*/
|
|
78
|
+
readonly canaryName: string;
|
|
79
|
+
}
|
|
80
|
+
}
|