collect device metrics
This commit is contained in:
parent
7f1bc47b87
commit
b812d730dc
3 changed files with 51 additions and 0 deletions
|
|
@ -82,6 +82,24 @@ model NeighbourInfo {
|
|||
@@map("neighbour_infos")
|
||||
}
|
||||
|
||||
model DeviceMetric {
|
||||
id BigInt @id @default(autoincrement())
|
||||
node_id BigInt
|
||||
|
||||
battery_level Int?
|
||||
voltage Decimal?
|
||||
channel_utilization Decimal?
|
||||
air_util_tx Decimal?
|
||||
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @default(now()) @updatedAt
|
||||
|
||||
@@index(created_at)
|
||||
@@index(updated_at)
|
||||
@@index(node_id)
|
||||
@@map("device_metrics")
|
||||
}
|
||||
|
||||
model TraceRoute {
|
||||
id BigInt @id @default(autoincrement())
|
||||
node_id BigInt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue