mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
c2be670806
1. Table implementations (spec files) can mark the table as 'cachable'. 2. Cached results depend on the shortest/quickest interval of scheduled queries that act on results of the table. 3. The table API generator blocks caching on index/additional/required table column options.
19 lines
846 B
Plaintext
19 lines
846 B
Plaintext
table_name("interface_details")
|
|
description("Detailed information and stats of network interfaces.")
|
|
schema([
|
|
Column("interface", TEXT, "Interface name"),
|
|
Column("mac", TEXT, "MAC of interface (optional)"),
|
|
Column("type", INTEGER, "Interface type (includes virtual)"),
|
|
Column("mtu", INTEGER, "Network MTU"),
|
|
Column("metric", INTEGER, "Metric based on the speed of the interface"),
|
|
Column("ipackets", BIGINT, "Input packets"),
|
|
Column("opackets", BIGINT, "Output packets"),
|
|
Column("ibytes", BIGINT, "Input bytes"),
|
|
Column("obytes", BIGINT, "Output bytes"),
|
|
Column("ierrors", BIGINT, "Input errors"),
|
|
Column("oerrors", BIGINT, "Output errors"),
|
|
Column("last_change", BIGINT, "Time of last device modification (optional)"),
|
|
])
|
|
attributes(cachable=True)
|
|
implementation("interfaces@genInterfaceDetails")
|