Skip to content

Commit

Permalink
Fix messup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Prin committed Sep 27, 2016
1 parent 4206d2d commit e651d3e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions system_tests/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,15 @@
retry_500 = RetryErrors(InternalServerError)
retry_503 = RetryErrors(ServiceUnavailable)


def _has_timeseries(result):
"""Return True if a time series query has non-empty results."""
return len(list(result)) > 0

UNKNOWN_METRIC_ERROR = ('The provided filter doesn\'t refer to any known '
'metric.')


def _unknown_metric(result):
"""Return True if the error describes writing to an unknown metric.."""
import sys
sys.stderr.write("WOW %s " % result.args)
return UNKNOWN_METRIC_ERROR in result.message


Expand Down

2 comments on commit e651d3e

@dhermes
Copy link
Contributor

Choose a reason for hiding this comment

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

@waprin FYI __dict__ would give a more comprehensive idea of what's in result

@waprin
Copy link
Contributor

@waprin waprin commented on e651d3e Sep 27, 2016

Choose a reason for hiding this comment

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

yeah I was experimenting with different things.

Please sign in to comment.