Skip to content
Snippets Groups Projects
Commit 13972e57 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

add slots for metricdata

parent 9948642c
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@ def join_metric_data_name(prefix: str, name: str):
class MetricData(JSONAble):
__slots__ = ['name', 'value', 'labels', 'timestamp', 'internal']
def __init__(self, name: str, value: float, labels: dict = None,
timestamp: tp.Optional[float] = None,
internal: bool = False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment