Tor  0.4.7.0-alpha-dev
Macros | Variables
hs_metrics_entry.c File Reference

Defines the metrics entry that are collected by an onion service. More...

#include "orconfig.h"
#include "lib/cc/compat_compiler.h"
#include "feature/hs/hs_metrics_entry.h"

Go to the source code of this file.

Variables

const hs_metrics_entry_t base_metrics []
 
const size_t base_metrics_size = ARRAY_LENGTH(base_metrics)
 

Detailed Description

Defines the metrics entry that are collected by an onion service.

Definition in file hs_metrics_entry.c.

Variable Documentation

◆ base_metrics

const hs_metrics_entry_t base_metrics[]

The base metrics that is a static array of metrics that are added to every single new stores.

The key member MUST be also the index of the entry in the array.

Definition at line 21 of file hs_metrics_entry.c.

Referenced by hs_metrics_update_by_service(), and init_store().

◆ base_metrics_size

const size_t base_metrics_size = ARRAY_LENGTH(base_metrics)

Size of base_metrics array that is number of entries.

Definition at line 65 of file hs_metrics_entry.c.

Referenced by init_store().