UNPKG

@aws-cdk-testing/cli-integ

Version:

Integration tests for the AWS CDK CLI

36 lines (35 loc) 1.15 kB
/** * Emit an EMF event with the versions of the CLI, library, toolkit-lib and cdk-assets that were used to run the tests. * * The version numbers are first scalarized so that they can be graphed, and the CodeBuild Project Name is used as * a dimension to keep different test runs in the same account separate. * * The way EMF works, if CloudWatch sees a log message like this it will * automatically emit metric data from these fields. */ export declare function emitVersionsEmf(versions: Versions): void; export declare function createVersionsEmf(versions: Versions): { _aws: { Timestamp: number; CloudWatchMetrics: { Namespace: string; Dimensions: string[][]; Metrics: { Name: string; }[]; }[]; }; ProjectName: string; CliVersion: number; LibraryVersion: number; ToolkitLibVersion: number; CdkAssetsVersion: number; TestsVersion: number; }; export interface Versions { readonly cli: string; readonly library: string; readonly toolkitLib: string; readonly cdkAssets: string; readonly tests: string; }