tisdb.model package

Module contents

class tisdb.model.TsdbData(metric: str, ts: datetime.datetime = datetime.datetime(2021, 5, 4, 0, 13, 4, 488002), tags: tisdb.model.TsdbTags = {}, fields: tisdb.model.TsdbFields = {'value': 0})

Bases: object

Tsdb Data Value Object

Args:

metric (str): metric name ts (datetime): timestamp of this data tags (TsdbTags): tags of this data fields (TsdbFields): fields of this data

get_value(field_name: str)float
property metric
property tags
property tags_uuid
property ts
property value_id