.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, str key, str type_hint, str help_hint, list data_info, list data) | |
__str__ (self) | |
Public Attributes | |
key = key | |
type_hint = type_hint | |
help_hint = help_hint | |
data_info = data_info | |
data = data | |
A family of metrics. The key parameter is the metric name that should be used (snake case). The type_hint parameter must be one of 'counter', 'gauge', 'histogram', 'summary'. The help_hint parameter is a short string explaining the metric. The data_info parameter is a dictionary of descriptionary parameters for the data point (e.g. request method/path). The data parameter is a flat list of the actual data in shape of a primive type. See https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md for more information.
Definition at line 5 of file openmetrics.py.
searx.openmetrics.OpenMetricsFamily.__init__ | ( | self, | |
str | key, | ||
str | type_hint, | ||
str | help_hint, | ||
list | data_info, | ||
list | data ) |
Definition at line 16 of file openmetrics.py.
searx.openmetrics.OpenMetricsFamily.__str__ | ( | self | ) |
Definition at line 23 of file openmetrics.py.
References searx.openmetrics.OpenMetricsFamily.data, and searx.openmetrics.OpenMetricsFamily.data_info.
searx.openmetrics.OpenMetricsFamily.data = data |
Definition at line 21 of file openmetrics.py.
Referenced by searx.openmetrics.OpenMetricsFamily.__str__().
searx.openmetrics.OpenMetricsFamily.data_info = data_info |
Definition at line 20 of file openmetrics.py.
Referenced by searx.openmetrics.OpenMetricsFamily.__str__().
searx.openmetrics.OpenMetricsFamily.help_hint = help_hint |
Definition at line 19 of file openmetrics.py.
searx.openmetrics.OpenMetricsFamily.key = key |
Definition at line 17 of file openmetrics.py.
Referenced by searx.preferences.BooleanSetting.save(), and searx.preferences.MapSetting.save().
searx.openmetrics.OpenMetricsFamily.type_hint = type_hint |
Definition at line 18 of file openmetrics.py.