Skip to content

Commit

Permalink
change argument names
Browse files Browse the repository at this point in the history
  • Loading branch information
iamxeph committed Aug 15, 2021
1 parent 85f9e4f commit 84eb7ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions elastalert/ruletypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,11 +1140,11 @@ def crossed_thresholds(self, metric_value):
return True
return False

def format_string(self, metric_format_string, target_string):
if (metric_format_string.startswith('{')):
return metric_format_string.format(target_string)
def format_string(self, format_config, target_value):
if (format_config.startswith('{')):
return format_config.format(target_value)
else:
return metric_format_string % (target_string)
return format_config % (target_value)


class SpikeMetricAggregationRule(BaseAggregationRule, SpikeRule):
Expand Down

0 comments on commit 84eb7ab

Please sign in to comment.