Current Path: > > opt > cloudlinux > venv > lib > python3.11 > site-packages > prometheus_client >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
bridge | Directory | - | - | |
openmetrics | Directory | - | - | |
twisted | Directory | - | - | |
__init__.py | File | 1817 bytes | April 17 2025 13:10:58. | |
asgi.py | File | 1185 bytes | April 17 2025 13:10:58. | |
context_managers.py | File | 1691 bytes | April 17 2025 13:10:58. | |
core.py | File | 895 bytes | April 17 2025 13:10:58. | |
decorator.py | File | 15802 bytes | April 17 2025 13:10:58. | |
exposition.py | File | 15283 bytes | April 17 2025 13:10:58. | |
gc_collector.py | File | 1458 bytes | April 17 2025 13:10:58. | |
metrics.py | File | 22184 bytes | April 17 2025 13:10:58. | |
metrics_core.py | File | 11881 bytes | April 17 2025 13:10:58. | |
mmap_dict.py | File | 5264 bytes | April 17 2025 13:10:58. | |
multiprocess.py | File | 6474 bytes | April 17 2025 13:10:58. | |
parser.py | File | 7256 bytes | April 17 2025 13:10:58. | |
platform_collector.py | File | 1735 bytes | April 17 2025 13:10:58. | |
process_collector.py | File | 3654 bytes | April 17 2025 13:10:58. | |
registry.py | File | 5357 bytes | April 17 2025 13:10:58. | |
samples.py | File | 1358 bytes | April 17 2025 13:10:58. | |
utils.py | File | 621 bytes | April 17 2025 13:10:58. | |
values.py | File | 3836 bytes | April 17 2025 13:10:58. |
from collections import namedtuple class Timestamp(object): """A nanosecond-resolution timestamp.""" def __init__(self, sec, nsec): if nsec < 0 or nsec >= 1e9: raise ValueError("Invalid value for nanoseconds in Timestamp: {0}".format(nsec)) if sec < 0: nsec = -nsec self.sec = int(sec) self.nsec = int(nsec) def __str__(self): return "{0}.{1:09d}".format(self.sec, self.nsec) def __repr__(self): return "Timestamp({0}, {1})".format(self.sec, self.nsec) def __float__(self): return float(self.sec) + float(self.nsec) / 1e9 def __eq__(self, other): return type(self) == type(other) and self.sec == other.sec and self.nsec == other.nsec def __ne__(self, other): return not self == other def __gt__(self, other): return self.sec > other.sec or self.nsec > other.nsec # Timestamp and exemplar are optional. # Value can be an int or a float. # Timestamp can be a float containing a unixtime in seconds, # a Timestamp object, or None. # Exemplar can be an Exemplar object, or None. Sample = namedtuple('Sample', ['name', 'labels', 'value', 'timestamp', 'exemplar']) Sample.__new__.__defaults__ = (None, None) Exemplar = namedtuple('Exemplar', ['labels', 'value', 'timestamp']) Exemplar.__new__.__defaults__ = (None,)
SILENT KILLER Tool