caffeine_lang/analysis/templatizer

Types

Template types for Datadog query value replacement. Each type defines how an input value should be formatted in the final query.

Most formatting is auto-detected from the value:

  • String -> attr:value
  • List -> attr IN (value1, value2, ...)
  • Value containing * -> wildcard preserved as-is

The only explicit type needed is Not for negation.

pub type DatadogTemplateType {
  Raw
  Default
  Not
}

Constructors

  • Raw
  • Default
  • Not

A parsed template variable containing all the information needed for substitution.

pub type TemplateVariable {
  TemplateVariable(
    input_name: String,
    datadog_attr: String,
    template_type: DatadogTemplateType,
  )
}

Constructors

  • TemplateVariable(
      input_name: String,
      datadog_attr: String,
      template_type: DatadogTemplateType,
    )
Search Document