kustoutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 8 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 IsExplicitlyTransientError added in v0.4.0

func IsExplicitlyTransientError(err error) bool

IsExplicitlyTransientError reports whether the REST error explicitly marks itself as non-permanent. Missing or malformed flags do not imply retryability.

func IsMissingTableError added in v0.4.0

func IsMissingTableError(err error) bool

IsMissingTableError reports whether Kusto rejected a query because a referenced table could not be resolved. The table may be created later.

func IsThrottlingError added in v0.4.0

func IsThrottlingError(err error) bool

IsThrottlingError recognizes HTTP throttling and capacity failures wrapped by database scripts, even when Kusto labels the script failure as permanent.

func IsThrottlingMessage added in v0.4.0

func IsThrottlingMessage(message string) bool

IsThrottlingMessage recognizes saved REST messages without their HTTP metadata. Script failures must retain the throttle in their details, not just the command.

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