Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertAPISpec ¶
type AlertAPISpec struct { Name string `json:"name"` Type string `json:"type"` Enabled bool `json:"enabled"` Schedule MonitorSchedule `json:"schedule"` Inputs []MonitorInput `json:"inputs"` Triggers []MonitorTrigger `json:"triggers"` }
AlertAPISpec defines ES alerts API
type ConditionScript ¶
ConditionScript defines language and script to execute
type InputSearch ¶
type InputSearch struct { Indices []string `json:"indices"` Query json.RawMessage `json:"query"` }
InputSearch defines search queries and indices
type MonitorInput ¶
type MonitorInput struct {
Search InputSearch `json:"search"`
}
MonitorInput defines search queries
type MonitorSchedule ¶
type MonitorSchedule struct {
Period SchedulePeroid `json:"period"`
}
MonitorSchedule defines schedule period
type MonitorTrigger ¶
type MonitorTrigger struct { Name string `json:"name"` Severity string `json:"severity"` Condition TriggerCondition `json:"condition"` Actions []TriggerAction `json:"actions"` }
MonitorTrigger defines triggers and required actions
type SchedulePeroid ¶
SchedulePeroid defines schedule time period
type TextTemplate ¶
TextTemplate defines alert text template
type TriggerAction ¶
type TriggerAction struct { Name string `json:"name"` Destination string `json:"destination_id"` SubjectTemplate TextTemplate `json:"subject_template"` MessageTemplate TextTemplate `json:"message_template"` }
TriggerAction defines alerting destination and templates
type TriggerCondition ¶
type TriggerCondition struct {
Script ConditionScript `json:"script"`
}
TriggerCondition defines condition to trigger alert
type TriggerThrottle ¶
TriggerThrottle defines alerting throttle
Click to show internal directories.
Click to hide internal directories.