caffeine_lang/helpers

Types

A tuple of a label, type, and value used for template resolution.

pub type ValueTuple {
  ValueTuple(
    label: String,
    typ: types.AcceptedTypes,
    value: value.Value,
  )
}

Constructors

Values

pub fn build_system_tag_pairs(
  org_name org_name: String,
  team_name team_name: String,
  service_name service_name: String,
  blueprint_name blueprint_name: String,
  friendly_label friendly_label: String,
  artifact_refs artifact_refs: List(artifacts.ArtifactType),
  misc misc: dict.Dict(String, List(String)),
) -> List(#(String, String))

Build system tag key-value pairs from IR metadata fields and artifact refs. Returns a sorted, deterministic list of tag pairs shared across all generators.

pub const default_threshold_percentage: Float

Default SLO threshold percentage used when no explicit threshold is provided.

pub const default_window_in_days: Int

Default SLO window in days used when no explicit window is provided.

Search Document