kustoutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxErrorMessageLength defines the maximum length for error messages
	// to prevent excessively long messages in status conditions
	MaxErrorMessageLength = 256
)
View Source
const OneTick = 100 * time.Nanosecond

OneTick represents 1 tick in Kusto datetime, which is 100 nanoseconds. This is the smallest time unit supported by Kusto datetime.

Variables

This section is empty.

Functions

func ApplySubstitutions

func ApplySubstitutions(body, startTime, endTime string, clusterLabels map[string]string) string

ApplySubstitutions applies time and cluster label substitutions to a KQL query body

func ParseError

func ParseError(err error) string

ParseError extracts a clean error message from Kusto HttpError objects and truncates the message to a maximum length for consistent error handling. This utility is used across different CRD types that interact with Kusto.

Types

This section is empty.

Jump to

Keyboard shortcuts

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