Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr CompareLtELtE Num Call NameLoad NameLoad BinOpMult NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr CompareLtELtE Num Call NameLoad NameLoad BinOpMult NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list
N/A N/A Tests for the Metrics convenience class. N/A re N/A time unittest TestCase txstatsd.metrics.extendedmetrics ExtendedMetrics txstatsd.metrics.metrics Metrics FakeStatsDClient N/A object N/A connect N/A N/A self N/A N/A N/A Connect to the StatsD server. N/A N/A disconnect N/A N/A self N/A N/A N/A Disconnect from the StatsD server. N/A N/A write N/A N/A self data N/A N/A N/A Send the metric to the StatsD server. N/A N/A self data data N/A N/A TestMetrics N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self connection N/A FakeStatsDClient N/A N/A self metrics N/A Metrics N/A self connection txstatsd.tests N/A test_gauge N/A N/A self N/A N/A N/A Test reporting of a gauge metric sample. N/A N/A N/A N/A self metrics gauge gauge 102 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.gauge:102|g N/A test_meter N/A N/A self N/A N/A N/A Test reporting of a meter metric sample. N/A N/A N/A N/A self metrics meter meter 3 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.meter:3|m N/A test_counter N/A N/A self N/A N/A N/A Test the increment and decrement operations. N/A N/A N/A N/A self metrics increment counter 18 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.counter:18|c N/A N/A N/A N/A self metrics decrement counter 9 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.counter:-9|c N/A test_timing N/A N/A self N/A N/A N/A Test the timing operation. N/A N/A N/A N/A self metrics timing timing 101.1234 N/A match N/A N/A re match txstatsd.tests.timing:101123.4[0-9]*|ms N/A N/A self connection data N/A N/A N/A self assertFalse N/A match None N/A test_timing_automatic N/A N/A self N/A N/A N/A Test the automatic timing operation with explicit reset N/A start_time N/A N/A time time N/A N/A N/A N/A self metrics reset_timing N/A N/A N/A time sleep 0.1 N/A N/A N/A N/A self metrics timing timing N/A elapsed N/A N/A N/A time time start_time N/A N/A label val units N/A N/A re split :|\| N/A N/A self connection data N/A N/A N/A self assertEqual label txstatsd.tests.timing N/A N/A N/A self assertEqual units ms N/A N/A N/A self assertTrue N/A 100 N/A float val N/A elapsed 1000 N/A test_timing_automatic_implicit_reset N/A N/A self N/A N/A N/A Test the automatic timing operation with implicit reset N/A start_time N/A N/A time time N/A N/A N/A N/A self metrics timing something_else N/A N/A N/A time sleep 0.1 N/A N/A N/A N/A self metrics timing timing N/A elapsed N/A N/A N/A time time start_time N/A N/A label val units N/A N/A re split :|\| N/A N/A self connection data N/A N/A N/A self assertEqual label txstatsd.tests.timing N/A N/A N/A self assertEqual units ms N/A N/A N/A self assertTrue N/A 100 N/A float val N/A elapsed 1000 N/A test_generic N/A N/A self N/A N/A N/A Test the GenericMetric class. N/A N/A N/A N/A self metrics report users pepe pd N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.users:pepe|pd N/A test_generic_extra N/A N/A self N/A N/A N/A Test the GenericMetric class. N/A N/A N/A N/A self metrics report users pepe pd 100 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.users:pepe|pd|100 N/A test_empty_namespace N/A N/A self N/A N/A N/A Test reporting of an empty namespace. N/A N/A N/A self metrics namespace None N/A N/A N/A N/A self metrics gauge gauge 213 N/A N/A N/A self assertEqual N/A N/A self connection data gauge:213|g N/A N/A N/A self metrics namespace N/A N/A N/A N/A self metrics gauge gauge 413 N/A N/A N/A self assertEqual N/A N/A self connection data gauge:413|g N/A N/A TestExtendedMetrics N/A TestMetrics N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestExtendedMetrics self setUp N/A N/A self metrics N/A ExtendedMetrics N/A self connection txstatsd.tests N/A test_counter N/A N/A self N/A N/A N/A Test the increment and decrement operations. N/A N/A N/A N/A self metrics increment counter 18 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.counter:18|c N/A N/A N/A N/A self metrics decrement counter 9 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.counter:9|c N/A test_sli N/A N/A self N/A N/A N/A Test SLI call. N/A N/A N/A N/A self metrics sli users 100 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.users:100|sli N/A N/A N/A N/A self metrics sli users 200 2 N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.users:200|sli|2 N/A N/A N/A N/A self metrics sli_error users N/A N/A N/A self assertEqual N/A N/A self connection data txstatsd.tests.users:error|sli N/A N/A