osquery-1/specs/routes.table
Teddy Reed c2be670806 Table results caching
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.
2015-11-14 15:57:23 -08:00

16 lines
656 B
Plaintext

table_name("routes")
description("The active route table for the host system.")
schema([
Column("destination", TEXT, "Destination IP address"),
Column("netmask", TEXT, "Netmask length"),
Column("gateway", TEXT, "Route gateway"),
Column("source", TEXT, "Route source"),
Column("flags", INTEGER, "Flags to describe route"),
Column("interface", TEXT, "Route local interface"),
Column("mtu", INTEGER, "Maximum Transmission Unit for the route"),
Column("metric", INTEGER, "Cost of route. Lowest is preferred"),
Column("type", TEXT, "Type of route"),
])
attributes(cachable=True)
implementation("networking/routes@genRoutes")