aws-actions/Post Amazon Cloudwatch Metrics
Publishes a metric to Amazon CloudWatch.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| metric-name | Name of the metric to be published | — | Builds |
| metric-value | Value of the metric to be published true, and false are respectfully converted to 1.0, and 0.0 automatically | — | ${{ job.status == 'success' }} |
| metric-dimensions | Dimension of the metric to be published, as a JSON object | — | [ { "Name": "github.event_name", "Value": "${{ github.event_name }}" }, { "Name": "github.ref", "Value": "${{ github.ref }}" }, { "Name": "github.repository", "Value": "${{ github.repository }}" } ] |
| metric-data | Path to a JSON file containing CloudWatch-compatible metrics, according to https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudwatch/put-metric-data.html If this input is specified, the action will ignore the single-value inputs "metric-name", "metric-value", "metric-dimensions" and only publish the data from this file. | no | — |
| namespace | The namespace for the metric data. | — | ActionCloudWatchMetrics |
Outputs
no outputs