-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyotheus.pyi
More file actions
58 lines (54 loc) · 1.38 KB
/
pyotheus.pyi
File metadata and controls
58 lines (54 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
class Registry:
def __init__(self) -> None: ...
def __repr__(self) -> str: ...
def __str__(self) -> str: ...
def encode(self) -> bytes: ...
class Histogram:
def __init__(
self,
name: str,
documentation: str,
buckets: list[float],
registry: Registry | None = None,
) -> None: ...
def observe(
self,
labels: dict[str, str] | list[tuple[str, str]],
value: float,
) -> None: ...
class Counter:
def __init__(
self,
name: str,
documentation: str,
registry: Registry | None = None,
) -> None: ...
def inc(
self,
labels: dict[str, str] | list[tuple[str, str]],
amount: float | None = None,
) -> float: ...
class Gauge:
def __init__(
self,
name: str,
documentation: str,
registry: Registry | None = None,
) -> None: ...
def inc(
self,
labels: dict[str, str] | list[tuple[str, str]],
amount: float | None = None,
) -> float: ...
def dec(
self,
labels: dict[str, str] | list[tuple[str, str]],
amount: float | None = None,
) -> float: ...
def set(
self,
labels: dict[str, str] | list[tuple[str, str]],
value: float,
) -> float: ...
def init_tracing(level: str) -> None: ...
def encode_global_registry() -> bytes: ...