caffeine_lang/linker/measurements
Types
A Measurement provides a partial set of inputs to the SLO param schema and
declares any additional params the bound Expectation must satisfy.
The phantom type parameter state tracks whether the measurement is Raw or MeasurementValidated.
pub type Measurement(state) {
Measurement(
name: String,
params: dict.Dict(String, types.AcceptedTypes),
inputs: dict.Dict(String, value.Value),
expectation_type: option.Option(ast.ExpectationType),
)
}
Constructors
-
Measurement( name: String, params: dict.Dict(String, types.AcceptedTypes), inputs: dict.Dict(String, value.Value), expectation_type: option.Option(ast.ExpectationType), )Arguments
- expectation_type
-
Optional declared SLO type from
"name" success_rate:/"name" time_slice:header. When None, downstream consumers fall back to inferring the type from the formula shape at codegen.
Marker type for measurements that have passed validation.
pub type MeasurementValidated