Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#361 from ocervell/slo-generato…
Browse files Browse the repository at this point in the history
…r-fix

SLO Generator - Always cast threshold_bucket to int
  • Loading branch information
AdrienWalkowiak authored Nov 27, 2019
2 parents 20e69a9 + 14ae775 commit 7f0c2eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/slo-generator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
long_description = f.read()

setup(name='slo-generator',
version='0.1.6',
version='0.1.7',
description='SLO generator',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion tools/slo-generator/slo_generator/backends/stackdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def exponential_distribution_cut(self, timestamp, window, **kwargs):
project_id = kwargs['project_id']
measurement = kwargs['measurement']
filter_valid = measurement['filter_valid']
threshold_bucket = measurement['threshold_bucket']
threshold_bucket = int(measurement['threshold_bucket'])
good_below_threshold = measurement.get('good_below_threshold', True)

# Query 'valid' events
Expand Down

0 comments on commit 7f0c2eb

Please sign in to comment.