$55 GRAYBYTE WORDPRESS FILE MANAGER $12

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/prometheus_client/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/prometheus_client//samples.py
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,)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 3.08 AM
root / root
0755
__pycache__
--
14 Aug 2025 9.31 PM
root / root
0755
bridge
--
14 Aug 2025 9.24 PM
root / root
0755
openmetrics
--
14 Aug 2025 9.24 PM
root / root
0755
twisted
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
1.774 KB
17 Apr 2025 8.10 PM
root / root
0644
asgi.py
1.157 KB
17 Apr 2025 8.10 PM
root / root
0644
context_managers.py
1.651 KB
17 Apr 2025 8.10 PM
root / root
0644
core.py
0.874 KB
17 Apr 2025 8.10 PM
root / root
0644
decorator.py
15.432 KB
17 Apr 2025 8.10 PM
root / root
0644
exposition.py
14.925 KB
17 Apr 2025 8.10 PM
root / root
0644
gc_collector.py
1.424 KB
17 Apr 2025 8.10 PM
root / root
0644
metrics.py
21.664 KB
17 Apr 2025 8.10 PM
root / root
0644
metrics_core.py
11.603 KB
17 Apr 2025 8.10 PM
root / root
0644
mmap_dict.py
5.141 KB
17 Apr 2025 8.10 PM
root / root
0644
multiprocess.py
6.322 KB
17 Apr 2025 8.10 PM
root / root
0644
parser.py
7.086 KB
17 Apr 2025 8.10 PM
root / root
0644
platform_collector.py
1.694 KB
17 Apr 2025 8.10 PM
root / root
0644
process_collector.py
3.568 KB
17 Apr 2025 8.10 PM
root / root
0644
registry.py
5.231 KB
17 Apr 2025 8.10 PM
root / root
0644
samples.py
1.326 KB
17 Apr 2025 8.10 PM
root / root
0644
utils.py
0.606 KB
17 Apr 2025 8.10 PM
root / root
0644
values.py
3.746 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF