Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds metric_format_string config to Metric Aggregation rule #399

Merged
merged 3 commits into from
Aug 15, 2021
Merged

Adds metric_format_string config to Metric Aggregation rule #399

merged 3 commits into from
Aug 15, 2021

Conversation

iamxeph
Copy link
Contributor

@iamxeph iamxeph commented Aug 13, 2021

Description

This PR adds metric_format_string optional configuration to Metric Aggregation rule. 'metric_format_string' formats match_body's metric_{metric_agg_key} value supporting both format() and %-formatted syntax.

Checklist

Questions or Comments

After this gets merged, I am going to change 'percentage_format_string' of Percentage Aggregation rule to support format() syntax in addition to old %-formatted syntax to make both 'metric_format_string' and 'percentage_format_string' have consistency.

Copy link
Owner

@jertel jertel left a comment

Choose a reason for hiding this comment

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

I like the reusable format_string() method. Thank you.

@jertel jertel merged commit c5bd069 into jertel:master Aug 15, 2021
@iamxeph iamxeph deleted the feature_add_metric_format_string_to_metricaggregation branch August 15, 2021 17:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants