query

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTimestamp added in v1.4.0

func FormatTimestamp(nanoStr string) string

FormatTimestamp converts a nanosecond Unix timestamp string to a human-readable format.

func NormalizeTimestamp

func NormalizeTimestamp(s string) string

NormalizeTimestamp normalizes an absolute timestamp to the format required by the Dash0 API (RFC 3339 with millisecond precision). Relative expressions like "now" and "now-1h" are returned as-is.

func ParseFilter

func ParseFilter(s string) (dash0api.AttributeFilter, error)

ParseFilter parses a single filter string into an AttributeFilter.

Format: key [operator] value

  • If key starts with single quote, consume until closing quote
  • Next token is checked against known operators
  • If it matches: use that operator, rest is value
  • If no match: implicit "is" operator, rest (from that token) is value
  • is_set/is_not_set expect no value
  • is_one_of/is_not_one_of split value on whitespace (single-quoted tokens may contain spaces)

func ParseFilters

func ParseFilters(filterStrings []string) (*dash0api.FilterCriteria, error)

ParseFilters parses a list of filter strings into FilterCriteria.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL