9 #define HS_METRICS_ENTRY_PRIVATE
46 metrics_store_entry_t *entry =
58 } SMARTLIST_FOREACH_END(p);
91 } SMARTLIST_FOREACH_END(entry);
103 const uint16_t port, int64_t n)
129 smartlist_free(stores_list);
void hs_metrics_update_by_ident(const hs_metrics_key_t key, const ed25519_public_key_t *ident_pk, const uint16_t port, int64_t n)
static const char * port_to_str(const uint16_t port)
void hs_metrics_service_free(hs_service_t *service)
void hs_metrics_update_by_service(const hs_metrics_key_t key, hs_service_t *service, const uint16_t port, int64_t n)
void hs_metrics_service_init(hs_service_t *service)
static void init_store(hs_service_t *service)
const smartlist_t * hs_metrics_get_stores(void)
Header for feature/hs/hs_metrics.c.
const hs_metrics_entry_t base_metrics[]
const size_t base_metrics_size
Header for feature/hs/hs_metrics_entry.c.
smartlist_t * hs_service_get_metrics_stores(void)
hs_service_t * hs_service_find(const ed25519_public_key_t *identity_pk)
Header file containing service data for the HS subsystem.
Headers for util_malloc.c.
const char * metrics_format_label(const char *key, const char *value)
smartlist_t * metrics_store_get_all(const metrics_store_t *store, const char *name)
metrics_store_entry_t * metrics_store_add(metrics_store_t *store, metrics_type_t type, const char *name, const char *help)
metrics_store_t * metrics_store_new(void)
Header for lib/metrics/metrics_store.c.
void metrics_store_entry_update(metrics_store_entry_t *entry, const int64_t value)
void metrics_store_entry_add_label(metrics_store_entry_t *entry, const char *label)
bool metrics_store_entry_has_label(const metrics_store_entry_t *entry, const char *label)
int tor_snprintf(char *str, size_t size, const char *format,...)
#define SMARTLIST_FOREACH_BEGIN(sl, type, var)
char onion_address[HS_SERVICE_ADDR_LEN_BASE32+1]
hs_service_config_t config
hs_service_metrics_t metrics