infi.clickhouse_orm/examples/cpu_usage/models.py
2020-06-26 17:53:39 +03:00

12 lines
230 B
Python

from infi.clickhouse_orm import Model, DateTimeField, UInt16Field, Float32Field, Memory
class CPUStats(Model):
timestamp = DateTimeField()
cpu_id = UInt16Field()
cpu_percent = Float32Field()
engine = Memory()