datadog_query/filter
Values
pub fn all_of(filters: List(String)) -> String
Joins sub-filters with AND. Empty-string fragments are dropped so
composing with tag_in([]) doesn’t leave a dangling joiner.
Empty list (or all-empty list) returns “”.
pub fn any_of(filters: List(String)) -> String
Joins sub-filters with OR. See all_of for empty-fragment handling.
pub fn group(filter: String) -> String
Wraps a sub-filter in parens. Empty input returns “” (no ()).
pub fn negated_tag(name: String, value: String) -> String
!name:value — negated tag filter.
pub fn not_(filter: String) -> String
NOT <filter> — boolean negation of a sub-expression.
Differs from negated_tag: that emits !key:value (negation of a
SimpleFilter token); this emits NOT (...) over arbitrary sub-filters.
Empty input returns “”.
pub fn tag(name: String, value: String) -> String
name:value — wildcards in value are preserved.
pub fn tag_gt(name: String, value: Float) -> String
name:>value — numeric greater-than. Value rendered without quoting
since comparisons are only meaningful on numbers/durations.
pub fn tag_gt_int(name: String, value: Int) -> String
Integer variant of tag_gt. Convenience for callers working with
integer thresholds (e.g. @http.status_code:>=500).
pub fn tag_gte_int(name: String, value: Int) -> String
pub fn tag_in(name: String, values: List(String)) -> String
name IN (v1, v2, ...) — empty list returns “”.
pub fn tag_lt_int(name: String, value: Int) -> String
pub fn tag_lte_int(name: String, value: Int) -> String
pub fn tag_not_in(name: String, values: List(String)) -> String
name NOT IN (v1, v2, ...) — empty list returns “”.
pub fn tag_regex(name: String, pattern: String) -> String
name:~pattern — regex match. Pattern is quoted via quote.value so
patterns containing whitespace round-trip safely.
pub const wildcard_all: String
Bare * — match-everything scope. Use as the entire filter body of a
scope: metric{*}.