Skip to content

Commit

Permalink
chore(repo): review CW metric logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle authored and fjnoyp committed Oct 9, 2023
1 parent 85171ac commit 12fc814
Show file tree
Hide file tree
Showing 12 changed files with 33,150 additions and 86 deletions.
55 changes: 55 additions & 0 deletions .github/composite_actions/log_cw_metric/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Log CW Metric
description: Logs a metric to Cloudwatch.
inputs:
# For getting failing step
job-status:
description: Used to determine if we track success or failure.
required: true
github-token:
required: true
description: Github token for requesting failing steps.
package-name:
description: The name of the package being tested
required: true
matrix:
description: The matrix of the workflow
required: true

# Global Metric Dimensions
metric-name:
description: Name of the metric to track in Cloudwatch.
required: true
test-type:
description: canary, integration, unit testType.
required: true
category:
description: analytics, api, authenticator, etc.
required: true

# FlutterDart Workflows Metric Dimensions
framework:
description: flutter, dart.
required: false
flutter-dart-channel:
description: beta, stable.
required: false
dart-version:
description: 3, 2.19, 2.18, etc.
required: false
flutter-version:
description: 3.10.6, 3.10.5, etc.
required: false
dart-compiler:
description: dart2js, ddc, dart, dart2wasm.
required: false

# Platform Workflows Metric Dimensions
platform:
description: android, ios, web, linux, windows.
required: false
platform-version:
description: ios-14.5, ios-16, android-25-x86, etc.
required: false
runs:
using: "node16"
main: "dist/index.mjs"
Loading

0 comments on commit 12fc814

Please sign in to comment.