mirror of
https://github.com/sprockets/sprockets.mixins.metrics.git
synced 2024-11-22 03:00:25 +00:00
fix docstring and flake8
This commit is contained in:
parent
7b7010b0a2
commit
df76061eec
2 changed files with 3 additions and 2 deletions
|
@ -95,7 +95,7 @@ class StatsdMixin(object):
|
|||
|
||||
|
||||
class StatsDCollector(object):
|
||||
"""Collects and submits stats to StatsD via UDP socket.
|
||||
"""Collects and submits stats to StatsD.
|
||||
|
||||
This class should be constructed using the
|
||||
:meth:`~sprockets.mixins.statsd.install` method. When installed,
|
||||
|
@ -104,7 +104,7 @@ class StatsDCollector(object):
|
|||
|
||||
:param str host: The StatsD host
|
||||
:param str port: The StatsD port
|
||||
:param str protocol: lowercase udp or tcp
|
||||
:param str protocol: The StatsD protocol. May be either ``udp`` or ``tcp``.
|
||||
:param str namespace: The StatsD bucket to write metrics into.
|
||||
:param bool prepend_metric_type: Optional flag to prepend bucket path
|
||||
with the StatsD metric type
|
||||
|
|
1
tests.py
1
tests.py
|
@ -41,6 +41,7 @@ def assert_between(low, value, high):
|
|||
raise AssertionError('Expected {} to be between {} and {}'.format(
|
||||
value, low, high))
|
||||
|
||||
|
||||
class TCPStatsdMetricCollectionTests(testing.AsyncHTTPTestCase):
|
||||
|
||||
def get_app(self):
|
||||
|
|
Loading…
Reference in a new issue