Add Client.disk_type
to track SD card vs. USB
i.e. assuming raspberry pi device for the client. kind of a specific use case behind this but it seemed like it could be useful generally
This commit is contained in:
parent
30a0f98e1d
commit
18b224a3e0
2 changed files with 39 additions and 0 deletions
|
@ -55,6 +55,12 @@ class Client(Base):
|
|||
hostname = sa.Column(sa.String(length=255), nullable=False)
|
||||
location = sa.Column(sa.String(length=255), nullable=True)
|
||||
|
||||
disk_type = sa.Column(sa.Integer(), nullable=True, doc="""
|
||||
Integer code representing the type of hard disk used, if known. The
|
||||
original motivation for this was to keep track of whether each client
|
||||
(aka. Raspberry Pi) was using a SD card or USB drive for the root disk.
|
||||
""")
|
||||
|
||||
delay = sa.Column(sa.Integer(), nullable=True, doc="""
|
||||
Number of seconds to delay between reading / recording temperatures. If
|
||||
not set, a default of 60 seconds will be assumed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue