infi.clickhouse_orm/examples/cpu_usage/models.py

12 lines
230 B
Python
Raw Normal View History

2020-06-26 17:53:39 +03:00
from infi.clickhouse_orm import Model, DateTimeField, UInt16Field, Float32Field, Memory
class CPUStats(Model):
timestamp = DateTimeField()
cpu_id = UInt16Field()
cpu_percent = Float32Field()
engine = Memory()