pub struct View {
pub id: String,
pub description: Option<String>,
pub widgets: Vec<AggregateWidget>,
pub tags: Vec<String>,
pub origin: Option<RepoOrigin>,
}Expand description
A standalone declarative read/aggregation for the Analytics page (#743).
A view aggregates stored fleet data (obs_events, …) without an
execute or a schedule — unlike a Manifest it only declares
AggregateWidgets. (The first line is concise on purpose: schemars
uses it as the generated schema’s title.) The backend reads views from
BUCKET_VIEWS at
query time and merges their widgets with the co-located aggregate:
hints on jobs, so a cross-cutting dashboard (one that charts events
emitted by several other jobs / the agent) has a home that doesn’t need
a noop job carrier. Stored JSON in BUCKET_VIEWS, keyed by id.
Fields§
§id: StringStable identifier (the KV key). Required, validated non-empty.
description: Option<String>Optional human description shown on the Views admin page.
widgets: Vec<AggregateWidget>The widgets this view contributes to the Analytics page.
Free-form operator taxonomy (same role as Manifest::tags).
origin: Option<RepoOrigin>GitOps provenance (#678), stamped by kanade view create from the
source YAML’s Git context — same as Manifest::origin.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for View
impl<'de> Deserialize<'de> for View
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for View
impl JsonSchema for View
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more