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) 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) 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) 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
Click to show internal directories.
Click to hide internal directories.