.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, width=10, size=200) | |
observe (self, value) | |
quartiles (self) | |
count (self) | |
sum (self) | |
average (self) | |
quartile_percentage (self) | |
quartile_percentage_map (self) | |
percentage (self, percentage) | |
__repr__ (self) | |
Public Attributes | |
int | _lock = 1 |
average | |
Protected Attributes | |
_lock = threading.Lock() | |
_width = width | |
_size = size | |
list | _quartiles = [0] * size |
int | _count = 0 |
int | _sum = 0 |
Static Protected Attributes | |
str | _slots__ = '_lock', '_size', '_sum', '_quartiles', '_count', '_width' |
searx.metrics.models.Histogram.__init__ | ( | self, | |
width = 10, | |||
size = 200 ) |
searx.metrics.models.Histogram.__repr__ | ( | self | ) |
searx.metrics.models.Histogram.average | ( | self | ) |
Definition at line 53 of file models.py.
References searx.metrics.models.Histogram._count, searx.metrics.models.Histogram._lock, searx.results.ResultContainer._lock, and searx.metrics.models.Histogram._sum.
searx.metrics.models.Histogram.count | ( | self | ) |
Definition at line 45 of file models.py.
References searx.metrics.models.Histogram._count.
searx.metrics.models.Histogram.observe | ( | self, | |
value ) |
Reimplemented in searx.metrics.models.VoidHistogram.
Definition at line 27 of file models.py.
References searx.metrics.models.Histogram._size, and searx.metrics.models.Histogram._width.
searx.metrics.models.Histogram.percentage | ( | self, | |
percentage ) |
Definition at line 83 of file models.py.
References searx.metrics.models.Histogram._count, searx.metrics.models.Histogram._lock, searx.results.ResultContainer._lock, searx.metrics.models.Histogram._quartiles, and searx.metrics.models.Histogram._width.
searx.metrics.models.Histogram.quartile_percentage | ( | self | ) |
Quartile in percentage
Definition at line 60 of file models.py.
References searx.metrics.models.Histogram._count, searx.metrics.models.Histogram._lock, searx.results.ResultContainer._lock, and searx.metrics.models.Histogram._quartiles.
searx.metrics.models.Histogram.quartile_percentage_map | ( | self | ) |
Definition at line 68 of file models.py.
References searx.metrics.models.Histogram._count, searx.metrics.models.Histogram._lock, searx.results.ResultContainer._lock, searx.metrics.models.Histogram._quartiles, and searx.metrics.models.Histogram._width.
searx.metrics.models.Histogram.quartiles | ( | self | ) |
Definition at line 41 of file models.py.
References searx.metrics.models.Histogram._quartiles.
searx.metrics.models.Histogram.sum | ( | self | ) |
Definition at line 49 of file models.py.
References searx.metrics.models.Histogram._sum.
|
protected |
|
protected |
Definition at line 20 of file models.py.
Referenced by searx.metrics.models.Histogram.average(), searx.metrics.models.Histogram.percentage(), searx.metrics.models.Histogram.quartile_percentage(), and searx.metrics.models.Histogram.quartile_percentage_map().
int searx.metrics.models.Histogram._lock = 1 |
Definition at line 35 of file models.py.
Referenced by searx.metrics.models.Histogram.average(), searx.metrics.models.Histogram.percentage(), searx.metrics.models.Histogram.quartile_percentage(), and searx.metrics.models.Histogram.quartile_percentage_map().
|
protected |
Definition at line 23 of file models.py.
Referenced by searx.metrics.models.Histogram.percentage(), searx.metrics.models.Histogram.quartile_percentage(), searx.metrics.models.Histogram.quartile_percentage_map(), and searx.metrics.models.Histogram.quartiles().
|
protected |
Definition at line 22 of file models.py.
Referenced by searx.metrics.models.Histogram.observe().
|
protected |
Definition at line 25 of file models.py.
Referenced by searx.metrics.models.Histogram.average(), and searx.metrics.models.Histogram.sum().
|
protected |
Definition at line 21 of file models.py.
Referenced by searx.metrics.models.Histogram.observe(), searx.metrics.models.Histogram.percentage(), and searx.metrics.models.Histogram.quartile_percentage_map().