Current Path: > > opt > hc_python > > > lib > python3.12 > 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 | 1815 bytes | April 04 2025 08:02:24. | |
asgi.py | File | 1606 bytes | April 04 2025 08:02:24. | |
context_managers.py | File | 2343 bytes | April 04 2025 08:02:24. | |
core.py | File | 860 bytes | April 04 2025 08:02:24. | |
decorator.py | File | 15802 bytes | April 04 2025 08:02:24. | |
exposition.py | File | 26176 bytes | April 04 2025 08:02:24. | |
gc_collector.py | File | 1514 bytes | April 04 2025 08:02:24. | |
metrics.py | File | 28109 bytes | April 04 2025 08:02:24. | |
metrics_core.py | File | 15548 bytes | April 04 2025 08:02:24. | |
mmap_dict.py | File | 5393 bytes | April 04 2025 08:02:24. | |
multiprocess.py | File | 7539 bytes | April 04 2025 08:02:24. | |
parser.py | File | 7434 bytes | April 04 2025 08:02:24. | |
platform_collector.py | File | 1879 bytes | April 04 2025 08:02:24. | |
process_collector.py | File | 3864 bytes | April 04 2025 08:02:24. | |
py.typed | File | 0 bytes | April 04 2025 08:02:24. | |
registry.py | File | 6196 bytes | April 04 2025 08:02:24. | |
samples.py | File | 1687 bytes | April 04 2025 08:02:24. | |
utils.py | File | 594 bytes | April 04 2025 08:02:24. | |
values.py | File | 5002 bytes | April 04 2025 08:02:24. |
from typing import Dict, NamedTuple, Optional, Union class Timestamp: """A nanosecond-resolution timestamp.""" def __init__(self, sec: float, nsec: float) -> None: if nsec < 0 or nsec >= 1e9: raise ValueError(f"Invalid value for nanoseconds in Timestamp: {nsec}") if sec < 0: nsec = -nsec self.sec: int = int(sec) self.nsec: int = int(nsec) def __str__(self) -> str: return f"{self.sec}.{self.nsec:09d}" def __repr__(self) -> str: return f"Timestamp({self.sec}, {self.nsec})" def __float__(self) -> float: return float(self.sec) + float(self.nsec) / 1e9 def __eq__(self, other: object) -> bool: return isinstance(other, Timestamp) and self.sec == other.sec and self.nsec == other.nsec def __ne__(self, other: object) -> bool: return not self == other def __gt__(self, other: "Timestamp") -> bool: return self.nsec > other.nsec if self.sec == other.sec else self.sec > other.sec def __lt__(self, other: "Timestamp") -> bool: return self.nsec < other.nsec if self.sec == other.sec else self.sec < other.sec # 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. class Exemplar(NamedTuple): labels: Dict[str, str] value: float timestamp: Optional[Union[float, Timestamp]] = None class Sample(NamedTuple): name: str labels: Dict[str, str] value: float timestamp: Optional[Union[float, Timestamp]] = None exemplar: Optional[Exemplar] = None
SILENT KILLER Tool