osquery-1/specs/darwin/power_sensors.table
2016-02-21 16:02:58 -08:00

14 lines
514 B
Plaintext

table_name("power_sensors")
description("Machine power (currents, voltages, wattages, etc) sensors.")
schema([
Column("key", TEXT, "The SMC key on OS X", index=True),
Column("category", TEXT, "The sensor category: currents, voltage, wattage"),
Column("name", TEXT, "Name of power source"),
Column("value", TEXT, "Power in Watts"),
ForeignKey(column="key", table="smc_keys"),
])
examples([
"select * from power_sensors where category = 'voltage'"
])
implementation("smc_keys@genPowerSensors")