Documentation
¶
Index ¶
- Constants
- func ApplySubstitutions(body, startTime, endTime string, clusterLabels map[string]string) string
- func IsExplicitlyTransientError(err error) bool
- func IsMissingTableError(err error) bool
- func IsThrottlingError(err error) bool
- func IsThrottlingMessage(message string) bool
- func ParseError(err error) string
Constants ¶
const ( // MaxErrorMessageLength defines the maximum length for error messages // to prevent excessively long messages in status conditions MaxErrorMessageLength = 256 )
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 ¶
ApplySubstitutions applies time and cluster label substitutions to a KQL query body
func IsExplicitlyTransientError ¶ added in v0.4.0
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
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
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
IsThrottlingMessage recognizes saved REST messages without their HTTP metadata. Script failures must retain the throttle in their details, not just the command.
func ParseError ¶
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.