caffeine_lang/codegen/relay
Types
Routing entry for one external-signal indicator. The fields mirror what the relay binary needs at runtime: which source kind to pull from, which events to match, what metric to emit, what tags to attach, and how to extract a numeric value (if any).
pub type SignalEntry {
SignalEntry(
metric: String,
kind: SignalKind,
source: String,
match: dict.Dict(String, value.Value),
tags: dict.Dict(String, String),
value_path: option.Option(String),
)
}
Constructors
-
SignalEntry( metric: String, kind: SignalKind, source: String, match: dict.Dict(String, value.Value), tags: dict.Dict(String, String), value_path: option.Option(String), )
Count increments the metric by 1 per matching event. Distribution
extracts a numeric value at value_path per matching event. The
distinction maps directly to Datadog metric submission shape.
pub type SignalKind {
Count
Distribution
}
Constructors
-
Count -
Distribution