Skip to content

Commit

Permalink
add Cloudwatch metric tag
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 committed Jul 29, 2024
1 parent 5278c74 commit 61699b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/ci/lambda/src/bin/purge-stale-builds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,19 @@ async fn handle(_event: LambdaEvent<Value>) -> Result<(), Error> {
"Name": "PrunedGitHubBuilds",
"Unit": "Count",
"StorageResolution": 60
},
{
"Name": "TerminatedEC2Instances",
"Unit": "Count",
"StorageResolution": 60
}
]
}],
"Timestamp": timestamp
},
"Project": &project,
"PrunedGitHubBuilds": stopped_builds,
"Terminated EC2 Instances": ec2_terminated_instances.len()
"TerminatedEC2Instances": ec2_terminated_instances.len()
})
.to_string()
);
Expand Down

0 comments on commit 61699b4

Please sign in to comment.