Skip to content

Commit

Permalink
Show number of pruned ec2 instances in dashboard (#1728)
Browse files Browse the repository at this point in the history
Small fix to show number of pruned instances in dashboard.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
  • Loading branch information
samuel40791765 authored Jul 30, 2024
1 parent b5a6227 commit c1aa9d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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
"TerminatedEC2Instances": ec2_terminated_instances.len()
})
.to_string()
);
Expand Down
2 changes: 1 addition & 1 deletion util/whitespace.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This file is ignored. It exists to make no-op commits to trigger new builds.
This file is ignored. It exists to make no-op commits to trigger new builds.

0 comments on commit c1aa9d3

Please sign in to comment.