Skip to content
Snippets Groups Projects
data_points.py 261 B
Newer Older
Christoph Alt's avatar
Christoph Alt committed
from dataclasses import dataclass, asdict


@dataclass
class DataPoint:
    """Represents a single Datapoint from the InfluxDB perspective."""
    measurement: str
    time: int
    fields: dict
    tags: dict
Christoph Alt's avatar
Christoph Alt committed

    def asdict(self):
        return asdict(self)