Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MessageTimestamp ¶ added in v0.3.0
func MessageTimestamp() int64
Types ¶
type Action ¶
type Action struct {
Type string `json:"type"`
Command string `json:"command"`
HideOutput bool `json:"hide_output"`
OutputToVar bool `json:"output_to_var"`
RunOnFail bool `json:"run_on_fail"`
LastConfig bool `json:"last_config"`
Config map[string]string `json:"config"`
}
Action Struct
type Config ¶
type Config struct {
Version string
Logger hclog.Logger
Admins string `json:"admins"`
ACL string `json:"acl"`
PluginsDir string `json:"plugins_dir"`
RulesDir string `json:"rules_dir"`
LogFile string `json:"log_file"`
Debug bool `json:"debug"`
Trace bool `json:"trace"`
Quiet bool `json:"quiet"`
BotName string `json:"bot_name"`
CLI bool `json:"cli"`
Auditing bool `json:"auditing"`
AuditingFile string `json:"auditing_file"`
Slack bool `json:"slack"`
SlackToken string `json:"slack_token"`
SlackIcon string `json:"slack_icon"`
SlackDebug bool `json:"slack_debug"`
Scheduler bool `json:"scheduler"`
Webhook bool `json:"webhook"`
WebhookPort int `json:"webhook_port"`
Command string `json:"command"`
Vars map[string]string `json:"vars"`
}
Config struct
type Message ¶
type Message struct {
Debug bool
StartTime int64
EndTime int64
Attributes map[string]string
Outputs []Output
}
Message struct
type Rule ¶ added in v0.3.0
type Rule struct {
Id string
Name string `json:"rule"`
Match string `json:"match"`
Schedule string `json:"schedule"`
URL string `json:"url"`
ACL string `json:"acl"`
Channel string `json:"channel"`
Format bool `json:"format"`
OutputFailOnly bool `json:"output_fail_only"`
OutputOnChange bool `json:"output_on_change"`
Help string `json:"help"`
Hide bool `json:"hide"`
Active bool `json:"active"`
Debug bool `json:"debug"`
Actions []Action `json:"actions"`
}
Rule Struct
Click to show internal directories.
Click to hide internal directories.