Skip to content

migrate over bin/query-cloudwatch script:#8075

Merged
Sgtpluck merged 12 commits intomainfrom
query-cloudwatch-script
Mar 27, 2023
Merged

migrate over bin/query-cloudwatch script:#8075
Sgtpluck merged 12 commits intomainfrom
query-cloudwatch-script

Conversation

@Sgtpluck
Copy link
Contributor

🛠 Summary of changes

This change:

  • pulls in the bin/query-cloudwatch script from the devops repo.
  • adds test coverage for the script
  • updates the existing CloudwatchClient to include query time slices

@Sgtpluck Sgtpluck requested a review from mitchellhenke March 27, 2023 14:12
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

changelog: Internal, Scripts, Migrate and refactor script to query Cloudwatch
module SimpleCov
module ResultMerger
RSPEC_FILENAME_REGEX = %r{^(?<filename>[_\w\d/.]+\.rb)}
RSPEC_FILENAME_REGEX = %r{^(?<filename>[-_\w\d/.]+(?<extension>\.rb)?)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes:

  • the source file, bin/query-cloudwatch does not have an .rb extension, so made the .rb optional
  • bin/query-cloudwatch also has dashes instead of underscores, so added - to the character class

@Sgtpluck Sgtpluck merged commit f3e58e2 into main Mar 27, 2023
@Sgtpluck Sgtpluck deleted the query-cloudwatch-script branch March 27, 2023 18:13
@aduth aduth mentioned this pull request Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants