Skip to main content

Module declarations

Module declarations 

Source
Expand description

App-owned declarations shared by both observability sinks.

Structs§

Alert
A metric-threshold declaration carried by the boot manifest: references a named metric declared in the same manifest by metric_id (no query embedded — the server joins by id). PartialEq only (f64 thresholds), mirroring NamedMetric.
AlertBuilder
The ergonomic Rust surface for declaring a metric threshold. All validation happens in AlertBuilder::build — no I/O, no server round trip. The builder does not enforce int-range on severity thresholds: the subscriber cannot know the referenced metric’s value_type; out-of-domain values are rejected server-side at ingest.
Dashboard
A named dashboard with ordered sections and a stable remote identity.
Declarations
One application’s declared dashboards, metrics and alerts.
HogqlCheck
A declarative HogQL health check; cja does not execute it.
Link
One navigation link: rendered, never fetched.
Metric
A metric with a stable ID and editable presentation metadata.
ProductEventMetric
A single event series with optional property aggregation, filters and grouping.
ProductMetricBuilder
Build a product metric shared by Eyes and PostHog.
PropertyFilter
One predicate applied to the event series in both sinks.
RatioMetric
One declared metric divided by another, both in the same Declarations.
RatioMetricBuilder
Build a ratio metric over two other declared metrics.
Section
One titled grouping of dashboard items.
Severity
One severity policy of a metric threshold: a comparison direction and the boundary value. The threshold crosses the wire as an f64 number — serde emits 1.0 for whole values, and the server validates by value, not JSON representation, so 1.0 is accepted for an int metric.
TelemetryMetric
An Eyes telemetry query validated by the telemetry builder.
TelemetryMetricBuilder
Build a span or log metric for the Eyes manifest.

Enums§

Bucket
Width of one time bucket of a product metric.
Comparison
Direction in which a threshold is breached.
FilterOperator
Comparison operators shared by the Eyes and product-event backends.
FilterValue
Scalar event property used in a metric filter.
GroupMatch
How multi-row results feed a threshold breach: Any breaches when at least one numeric cell breaches; All when every numeric cell does.
HogqlComparison
Numeric comparison applied to the first HogQL result cell.
HogqlSeverity
Alert severity for a HogQL check.
Item
Presentation of a metric, health summary or navigation links on a dashboard.
MetricQuery
The source and aggregation used by a metric.
ProductAggregate
Aggregation over matching product events.