Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Name string `yaml:"name" json:"name"`
DestinationName string `json:"destination_name,omitempty"`
DestinationID string `yaml:"destinationID" json:"destination_id"`
SubjectTemplate Script `yaml:"subject" json:"subject_template"`
MessageTemplate Script `yaml:"message" json:"message_template"`
}
type CustomWebhook ¶
type CustomWebhook struct {
HeaderParams map[string]string `json:"header_params,omitempty" yaml:",omitempty"`
QueryParams map[string]string `json:"query_params,omitempty" yaml:",omitempty"`
Path string `json:"path,omitempty" yaml:",omitempty"`
Password string `json:"password,omitempty" yaml:",omitempty"`
Scheme string `json:"scheme,omitempty" yaml:",omitempty"`
Host string `json:"host,omitempty" yaml:",omitempty"`
URL string `json:"url,omitempty" yaml:",omitempty"`
Username string `json:"username,omitempty" yaml:",omitempty"`
Port int `json:"port,omitempty" yaml:",omitempty"`
}
type Destination ¶
type Destination struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Slack Slack `json:"slack,omitempty" yaml:",omitempty"`
CustomWebhook CustomWebhook `json:"custom_webhook,omitempty" yaml:",omitempty"`
}
type ElasticFetchResponse ¶
type ElasticFetchResponse struct {
Hits struct {
Hits []struct {
ID string `json:"_id"`
Source struct {
Destination Destination `json:"destination,omitempty"`
Monitor Monitor `json:"monitor,omitempty"`
} `json:"_source"`
} `json:"hits"`
} `json:"hits"`
}
type InnerQuery ¶
type InnerQuery struct {
Bool BoolParam `yaml:"bool" json:"bool"`
}
type Monitor ¶
type Monitor struct {
Schedule Schedule `yaml:"schedule" json:"schedule"`
ID string `yaml:"-" json:"-"`
Type string `yaml:"type" json:"type"`
Name string `yaml:"name" json:"name"`
Inputs []Input `yaml:"inputs" json:"inputs"`
Triggers []Trigger `yaml:"triggers" json:"triggers"`
Enabled bool `yaml:"enabled" json:"enabled"`
}
type QueryParam ¶
type QueryParam struct {
Query InnerQuery `yaml:"query" json:"query"`
}
type RangeParam ¶
type RangeParam struct {
Field string `yaml:"field" json:"field"`
From string `yaml:"from" json:"from"`
TimeZone string `yaml:"time_zone" json:"timeZone"`
To string `yaml:"to" json:"to"`
Boost int `yaml:"boost" json:"boost"`
IncludeLower bool `yaml:"include_lower" json:"include_lower"`
IncludeUpper bool `yaml:"include_upper" json:"includeUpper"`
}
type Search ¶
type Search struct {
Indices []string `yaml:"indices" json:"indices"`
Query QueryParam `yaml:"query" json:"query"`
}
Click to show internal directories.
Click to hide internal directories.