logevents

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventTypeEnums = struct {
	Availability         EventTypeEnum
	CustomAlert          EventTypeEnum
	CustomAnnotation     EventTypeEnum
	CustomConfiguration  EventTypeEnum
	CustomDeployment     EventTypeEnum
	Error                EventTypeEnum
	Info                 EventTypeEnum
	MarkedForTermination EventTypeEnum
	Resource             EventTypeEnum
	Slowdown             EventTypeEnum
}{
	"AVAILABILITY",
	"CUSTOM_ALERT",
	"CUSTOM_ANNOTATION",
	"CUSTOM_CONFIGURATION",
	"CUSTOM_DEPLOYMENT",
	"ERROR",
	"INFO",
	"MARKED_FOR_TERMINATION",
	"RESOURCE",
	"SLOWDOWN",
}

Functions

This section is empty.

Types

type EventTemplate

type EventTemplate struct {
	DavisMerge  *bool         `json:"davisMerge,omitempty"` // Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
	Description string        `json:"description"`          // The description of the event to trigger.
	EventType   EventTypeEnum `json:"eventType"`            // Possible Values: `AVAILABILITY`, `CUSTOM_ALERT`, `CUSTOM_ANNOTATION`, `CUSTOM_CONFIGURATION`, `CUSTOM_DEPLOYMENT`, `ERROR`, `INFO`, `MARKED_FOR_TERMINATION`, `RESOURCE`, `SLOWDOWN`
	Metadata    MetadataItems `json:"metadata,omitempty"`   // Set of additional key-value properties to be attached to the triggered event.
	Title       string        `json:"title"`                // The title of the event to trigger.
}

func (*EventTemplate) MarshalHCL

func (me *EventTemplate) MarshalHCL(properties hcl.Properties) error

func (*EventTemplate) Schema

func (me *EventTemplate) Schema() map[string]*schema.Schema

func (*EventTemplate) UnmarshalHCL

func (me *EventTemplate) UnmarshalHCL(decoder hcl.Decoder) error

type EventTypeEnum

type EventTypeEnum string

type MetadataItem

type MetadataItem struct {
	MetadataKey   string `json:"metadataKey"` // Type 'dt.' for key hints.
	MetadataValue string `json:"metadataValue"`
}

func (*MetadataItem) MarshalHCL

func (me *MetadataItem) MarshalHCL(properties hcl.Properties) error

func (*MetadataItem) Schema

func (me *MetadataItem) Schema() map[string]*schema.Schema

func (*MetadataItem) UnmarshalHCL

func (me *MetadataItem) UnmarshalHCL(decoder hcl.Decoder) error

type MetadataItems

type MetadataItems []*MetadataItem

func (MetadataItems) MarshalHCL

func (me MetadataItems) MarshalHCL(properties hcl.Properties) error

func (*MetadataItems) Schema

func (me *MetadataItems) Schema() map[string]*schema.Schema

func (*MetadataItems) UnmarshalHCL

func (me *MetadataItems) UnmarshalHCL(decoder hcl.Decoder) error

type Settings

type Settings struct {
	Enabled       bool           `json:"enabled"`       // This setting is enabled (`true`) or disabled (`false`)
	EventTemplate *EventTemplate `json:"eventTemplate"` // Event template
	Query         string         `json:"query"`         // Log query
	Summary       string         `json:"summary"`       // The textual summary of the log event entry
}

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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