Data Fields | |
time_t | since |
time_t | changed |
unsigned long | n_conn_ok |
unsigned long | n_conn_fail |
unsigned long | uptime |
unsigned long | downtime |
time_t | up_since |
time_t | down_since |
unsigned long | weighted_run_length |
time_t | start_of_run |
double | total_run_weights |
time_t | start_of_downtime |
unsigned long | weighted_uptime |
unsigned long | total_weighted_time |
digestmap_t * | link_history_map |
time_t or_history_t::since |
When did we start tracking this OR?
Referenced by get_or_history().
time_t or_history_t::changed |
When did we most recently note a change to this OR?
Referenced by get_or_history(), rep_hist_note_connect_failed(), rep_hist_note_connect_succeeded(), rep_hist_note_connection_died(), rep_hist_note_disconnect(), and rep_history_clean().
unsigned long or_history_t::n_conn_ok |
How many times did we successfully connect?
Referenced by rep_hist_dump_stats(), and rep_hist_note_connect_succeeded().
unsigned long or_history_t::n_conn_fail |
How many times did we try to connect and fail?
Referenced by rep_hist_dump_stats(), and rep_hist_note_connect_failed().
unsigned long or_history_t::uptime |
How many seconds have we been connected to this OR before 'up_since'?
Referenced by mark_or_down(), rep_hist_dump_stats(), and update_or_history().
unsigned long or_history_t::downtime |
How many seconds have we been unable to connect to this OR before 'down_since'?
Referenced by mark_or_up(), rep_hist_dump_stats(), and update_or_history().
time_t or_history_t::up_since |
If nonzero, we have been connected since this time.
Referenced by mark_or_down(), mark_or_up(), and update_or_history().
time_t or_history_t::down_since |
If nonzero, we have been unable to connect since this time.
Referenced by mark_or_down(), mark_or_up(), and update_or_history().
unsigned long or_history_t::weighted_run_length |
Weighted sum total of all times that this router has been online.
Referenced by get_stability(), rep_hist_downrate_old_runs(), rep_hist_format_router_status(), rep_hist_load_mtbf_data(), rep_hist_note_router_unreachable(), and rep_hist_record_mtbf_data().
time_t or_history_t::start_of_run |
If the router is now online (according to stability-checking rules), when did it come online?
Referenced by get_stability(), get_total_weighted_time(), get_weighted_fractional_uptime(), rep_hist_format_router_status(), rep_hist_load_mtbf_data(), rep_hist_note_router_reachable(), rep_hist_note_router_unreachable(), rep_hist_record_mtbf_data(), and rep_history_clean().
Sum of weights for runs in weighted_run_length.
Referenced by get_stability(), rep_hist_downrate_old_runs(), rep_hist_format_router_status(), rep_hist_load_mtbf_data(), rep_hist_note_router_unreachable(), rep_hist_record_mtbf_data(), and rep_history_clean().
digestmap_t* or_history_t::link_history_map |
Map from hex OR2 identity digest to a link_history_t for the link from this OR to OR2.
Referenced by free_or_history(), get_link_history(), get_or_history(), rep_hist_dump_stats(), and rep_history_clean().