Module ImportFrom alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Dict Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad ListLoad TupleLoad Str Dict Str Str Num Num TupleLoad Str Dict Str Str Num Num Assign AttributeStore NameLoad attr Call NameLoad ListLoad TupleLoad Str Str Dict Str Str Str Num Num Num TupleLoad Str Str Dict Str Str Str Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Num decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str decorator_list
N/A test CollectorTestCase get_collector_config mock MagicMock patch pgq PgQCollector TestPgQCollector N/A CollectorTestCase N/A setUp N/A N/A self N/A N/A N/A config N/A get_collector_config PgQCollector N/A N/A N/A self collector N/A PgQCollector config None N/A test_import N/A N/A self N/A N/A N/A N/A N/A self assertTrue PgQCollector N/A test_collect N/A N/A self get_queue_info get_consumer_info publish N/A N/A N/A N/A get_queue_info return_value N/A iter N/A N/A q1 N/A ticker_lag ev_per_sec 1 2 N/A q2 N/A ticker_lag ev_per_sec 3 4 N/A N/A get_consumer_info return_value N/A iter N/A N/A q1 c1 N/A lag pending_events last_seen 1 2 3 N/A q2 c1 N/A lag pending_events last_seen 4 5 6 N/A N/A N/A N/A self collector _collect_for_instance db1 connection N/A MagicMock N/A N/A N/A self assertPublished publish db1.q1.ticker_lag 1 N/A N/A N/A self assertPublished publish db1.q1.ev_per_sec 2 N/A N/A N/A self assertPublished publish db1.q2.ticker_lag 3 N/A N/A N/A self assertPublished publish db1.q2.ev_per_sec 4 N/A N/A N/A self assertPublished publish db1.q1.consumers.c1.lag 1 N/A N/A N/A self assertPublished publish db1.q1.consumers.c1.pending_events 2 N/A N/A N/A self assertPublished publish db1.q1.consumers.c1.last_seen 3 N/A N/A N/A self assertPublished publish db1.q2.consumers.c1.lag 4 N/A N/A N/A self assertPublished publish db1.q2.consumers.c1.pending_events 5 N/A N/A N/A self assertPublished publish db1.q2.consumers.c1.last_seen 6 N/A N/A N/A patch object PgQCollector publish N/A N/A patch object PgQCollector get_consumer_info N/A N/A patch object PgQCollector get_queue_info N/A