errorresolver

package
v0.0.0-...-d31b8a1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResolverInfo

type ErrorResolverInfo struct {

	// The error id for which metadata information is needed
	ErrorId int64 `json:"error_id"`

	// Indicates whether there is a resolver associated with the error or not
	ResolverPresent bool `json:"resolver_present"`

	// User supplied metadata that might be required by the resolver
	UserMetadata *ErrorResolverUserMetadata `json:"user_metadata,omitempty"`
}

Metadata related to a given error_id

type ErrorResolverInfoList

type ErrorResolverInfoList struct {

	// ErrorResolverInfo list
	Results []ErrorResolverInfo `json:"results"`
}

Collection of all registered ErrorResolverInfo

type ErrorResolverMetadata

type ErrorResolverMetadata struct {

	// The entity/node UUID where the error has occurred.
	EntityId string `json:"entity_id"`

	// The error id as reported by the entity where the error occurred.
	ErrorId int64 `json:"error_id"`

	// This can come from some external system like syslog collector
	SystemMetadata *ErrorResolverSystemMetadata `json:"system_metadata,omitempty"`

	// User supplied metadata that might be required by the resolver
	UserMetadata *ErrorResolverUserMetadata `json:"user_metadata,omitempty"`
}

Error along with its metadata

type ErrorResolverMetadataList

type ErrorResolverMetadataList struct {

	// List of errors with their corresponding metadata.
	Errors []ErrorResolverMetadata `json:"errors"`
}

List of errors with their metadata

type ErrorResolverSystemMetadata

type ErrorResolverSystemMetadata struct {

	// The value fetched from another system
	Value string `json:"value,omitempty"`
}

Metadata fetched from an external system like Syslog or LogInsight.

type ErrorResolverUserInputData

type ErrorResolverUserInputData struct {

	// The datatype of the given property. Useful for data validation
	DataType string `json:"data_type"`

	// Name of the property supplied by the user
	PropertyName string `json:"property_name"`

	// The value associated with the above property
	PropertyValue string `json:"property_value,omitempty"`
}

Corresponds to one property entered by the user

type ErrorResolverUserMetadata

type ErrorResolverUserMetadata struct {

	// List of user supplied input data.
	UserInputList []ErrorResolverUserInputData `json:"user_input_list,omitempty"`
}

User supplied metadata needed for resolving errors

Jump to

Keyboard shortcuts

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