Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom 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 defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict decorator_list Call AttributeLoad NameLoad attr NameLoad Str decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A test CollectorTestCase test get_collector_config test unittest mock Mock mock patch diamond.collector Collector varnish VarnishCollector TestVarnishCollector N/A CollectorTestCase N/A setUp N/A N/A self N/A N/A N/A config N/A get_collector_config VarnishCollector N/A N/A N/A self collector N/A VarnishCollector config None N/A test_import N/A N/A self N/A N/A N/A N/A N/A self assertTrue VarnishCollector N/A test_should_work_with_real_data_3_dot_0 N/A N/A self publish_mock N/A N/A N/A collector_mock N/A N/A patch object VarnishCollector poll N/A Mock return_value N/A N/A N/A N/A self getFixture 3.0/varnish_stats getvalue N/A N/A N/A collector_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A collector_mock stop N/A metrics N/A client_conn client_drop client_req cache_hit cache_hitpass cache_miss backend_conn backend_unhealthy backend_busy backend_fail backend_reuse backend_toolate backend_recycle backend_retry fetch_head fetch_length fetch_chunked fetch_eof fetch_bad fetch_close fetch_oldhttp fetch_zero fetch_failed fetch_1xx fetch_204 fetch_304 n_sess_mem n_sess n_object n_vampireobject n_objectcore n_objecthead n_waitinglist n_vbc n_wrk n_wrk_create n_wrk_failed n_wrk_max n_wrk_lqueue n_wrk_queued n_wrk_drop n_backend n_expired n_lru_nuked n_lru_moved losthdr n_objsendfile n_objwrite n_objoverflow s_sess s_req s_pipe s_pass s_fetch s_hdrbytes s_bodybytes sess_closed sess_pipeline sess_readahead sess_linger sess_herd shm_records shm_writes shm_flushes shm_cont shm_cycles sms_nreq sms_nobj sms_nbytes sms_balloc sms_bfree backend_req n_vcl n_vcl_avail n_vcl_discard n_ban n_ban_add n_ban_retire n_ban_obj_test n_ban_re_test n_ban_dups hcb_nolock hcb_lock hcb_insert esi_errors esi_warnings accept_fail client_drop_late uptime dir_dns_lookups dir_dns_failed dir_dns_hit dir_dns_cache_full n_gzip n_gunzip 10799 0 10796 6580 0 2566 13363 0 0 0 0 0 0 0 0 12986 0 0 0 331 0 0 0 0 0 45 19 1 9 0 17 27 10 1 10 10 0 11451 0 0 0 4 2557 0 5588 0 0 2546 0 10798 10796 0 10796 13362 4764593 23756354 10798 0 0 0 0 1286246 102894 0 0 0 0 0 0 0 0 13363 1 1 0 1 1 0 0 0 0 9146 2379 2379 0 0 0 0 35440 0 0 0 0 8277 11982 N/A N/A N/A self setDocExample collector N/A N/A N/A self collector __class__ __name__ metrics metrics defaultpath N/A N/A N/A self collector config N/A path N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A N/A patch object Collector publish test_should_work_with_real_data_4_dot_0 N/A N/A self publish_mock N/A N/A N/A collector_mock N/A N/A patch object VarnishCollector poll N/A Mock return_value N/A N/A N/A N/A self getFixture 4.0/varnish_stats getvalue N/A N/A N/A collector_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A collector_mock stop N/A metrics N/A MAIN.uptime MAIN.sess_conn MAIN.sess_drop MAIN.sess_fail MAIN.sess_pipe_overflow MAIN.client_req_400 MAIN.client_req_411 MAIN.client_req_413 MAIN.client_req_417 MAIN.client_req MAIN.cache_hit MAIN.cache_hitpass MAIN.cache_miss MAIN.backend_conn MAIN.backend_unhealthy MAIN.backend_busy MAIN.backend_fail MAIN.backend_reuse MAIN.backend_toolate MAIN.backend_recycle MAIN.backend_retry MAIN.fetch_head MAIN.fetch_length MAIN.fetch_chunked MAIN.fetch_eof MAIN.fetch_bad MAIN.fetch_close MAIN.fetch_oldhttp MAIN.fetch_zero MAIN.fetch_1xx MAIN.fetch_204 MAIN.fetch_304 MAIN.fetch_failed MAIN.fetch_no_thread MAIN.pools MAIN.threads MAIN.threads_limited MAIN.threads_created MAIN.threads_destroyed MAIN.threads_failed MAIN.thread_queue_len MAIN.busy_sleep MAIN.busy_wakeup MAIN.sess_queued MAIN.sess_dropped MAIN.n_object MAIN.n_vampireobject MAIN.n_objectcore MAIN.n_objecthead MAIN.n_waitinglist MAIN.n_backend MAIN.n_expired MAIN.n_lru_nuked MAIN.n_lru_moved MAIN.losthdr MAIN.s_sess MAIN.s_req MAIN.s_pipe MAIN.s_pass MAIN.s_fetch MAIN.s_synth MAIN.s_req_hdrbytes MAIN.s_req_bodybytes MAIN.s_resp_hdrbytes MAIN.s_resp_bodybytes MAIN.s_pipe_hdrbytes MAIN.s_pipe_in MAIN.s_pipe_out MAIN.sess_closed MAIN.sess_closed_err MAIN.sess_pipeline MAIN.sess_readahead MAIN.sess_herd MAIN.shm_records MAIN.shm_writes MAIN.shm_flushes MAIN.shm_cont MAIN.shm_cycles MAIN.sms_nreq MAIN.sms_nobj MAIN.sms_nbytes MAIN.sms_balloc MAIN.sms_bfree MAIN.backend_req MAIN.n_vcl MAIN.n_vcl_avail MAIN.n_vcl_discard MAIN.bans MAIN.bans_completed MAIN.bans_obj MAIN.bans_req MAIN.bans_added MAIN.bans_deleted MAIN.bans_tested MAIN.bans_obj_killed MAIN.bans_lurker_tested MAIN.bans_tests_tested MAIN.bans_lurker_tests_tested MAIN.bans_lurker_obj_killed MAIN.bans_dups MAIN.bans_lurker_contention MAIN.bans_persisted_bytes MAIN.bans_persisted_fragmentation MAIN.n_purges MAIN.n_obj_purged MAIN.exp_mailed MAIN.exp_received MAIN.hcb_nolock MAIN.hcb_lock MAIN.hcb_insert MAIN.esi_errors MAIN.esi_warnings MAIN.vmods MAIN.n_gzip MAIN.n_gunzip MAIN.vsm_free MAIN.vsm_used MAIN.vsm_cooling MAIN.vsm_overflow MAIN.vsm_overflowed MGT.uptime MGT.child_start MGT.child_exit MGT.child_stop MGT.child_died MGT.child_dump MGT.child_panic LCK.sms.creat LCK.sms.destroy LCK.sms.locks LCK.smp.creat LCK.smp.destroy LCK.smp.locks LCK.sma.creat LCK.sma.destroy LCK.sma.locks LCK.smf.creat LCK.smf.destroy LCK.smf.locks LCK.hsl.creat LCK.hsl.destroy LCK.hsl.locks LCK.hcb.creat LCK.hcb.destroy LCK.hcb.locks LCK.hcl.creat LCK.hcl.destroy LCK.hcl.locks LCK.vcl.creat LCK.vcl.destroy LCK.vcl.locks LCK.sessmem.creat LCK.sessmem.destroy LCK.sessmem.locks LCK.sess.creat LCK.sess.destroy LCK.sess.locks LCK.wstat.creat LCK.wstat.destroy LCK.wstat.locks LCK.herder.creat LCK.herder.destroy LCK.herder.locks LCK.wq.creat LCK.wq.destroy LCK.wq.locks LCK.objhdr.creat LCK.objhdr.destroy LCK.objhdr.locks LCK.exp.creat LCK.exp.destroy LCK.exp.locks LCK.lru.creat LCK.lru.destroy LCK.lru.locks LCK.cli.creat LCK.cli.destroy LCK.cli.locks LCK.ban.creat LCK.ban.destroy LCK.ban.locks LCK.vbp.creat LCK.vbp.destroy LCK.vbp.locks LCK.backend.creat LCK.backend.destroy LCK.backend.locks LCK.vcapace.creat LCK.vcapace.destroy LCK.vcapace.locks LCK.nbusyobj.creat LCK.nbusyobj.destroy LCK.nbusyobj.locks LCK.busyobj.creat LCK.busyobj.destroy LCK.busyobj.locks LCK.mempool.creat LCK.mempool.destroy LCK.mempool.locks LCK.vxid.creat LCK.vxid.destroy LCK.vxid.locks LCK.pipestat.creat LCK.pipestat.destroy LCK.pipestat.locks 851 3013382 0 0 0 17 0 0 0 4089775 2341983 154893 1300621 4499 0 0 0 2419103 0 2419604 13 25 702690 1216071 0 0 137 0 0 0 0 504930 0 0 2 4000 0 4000 0 0 0 1193 1193 0 0 1120124 0 1120528 1176948 1380 2 180652 0 1552209 0 3013384 4089779 0 352238 1652859 94934 4784250600 52901418 2508258336 16343773348 0 0 0 58799 6412 53 17 4924320 630017674 162187536 133825475 6593666 472 0 0 0 0 0 2423591 1 1 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 13 0 0 0 2842439 2842439 3797501 1266489 1266484 0 0 2 0 1809822 972304 83962304 0 0 0 851 1 0 0 0 0 0 0 0 0 0 0 0 2 0 8079812 0 0 0 0 0 0 1 0 1430122 0 0 0 1 0 4852573 0 0 0 3011371 2995725 154803 1 0 10626608 0 0 0 3 0 24257096 1266966 90130 40326652 1 0 10787337 2 0 7418755 1 0 297 1 0 3025891 1 0 1705 2 0 4852203 1 0 0 0 0 0 2423785 2423780 20093877 6 0 22218269 1 0 1385 1 0 0 N/A N/A N/A self setDocExample collector N/A N/A N/A self collector __class__ __name__ metrics metrics defaultpath N/A N/A N/A self collector config N/A path N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A N/A patch object Collector publish test_should_fail_gracefully N/A N/A self publish_mock N/A N/A N/A collector_mock N/A N/A patch object VarnishCollector poll N/A Mock return_value N/A N/A N/A N/A self getFixture varnish_stats_blank getvalue N/A N/A N/A collector_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A collector_mock stop N/A N/A N/A self assertPublishedMany publish_mock N/A N/A N/A N/A patch object Collector publish N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main