37 lines
1.1 KiB
Go
Raw Normal View History

2024-05-08 01:56:48 +02:00
package types
type Params struct {
2024-05-10 14:23:54 +02:00
Url string
Sender string `yaml:"sender,omitempty"`
Priority int
Tags string
Click string `yaml:"click,omitempty"`
Targets string `yaml:"targets,omitempty"`
2024-05-27 11:29:47 +02:00
FullAlert string `yaml:"full_message,omitempty"`
2024-05-10 14:23:54 +02:00
ExcludedRules string `yaml:"excluded_rules,omitempty"`
ExcludedAgents string `yaml:"excluded_agents,omitempty"`
2024-05-13 16:03:00 +02:00
Color int
Mention string
2024-05-10 14:23:54 +02:00
WazuhMessage WazuhMessage
2024-05-13 14:44:32 +02:00
PriorityMaps []PriorityMap `yaml:"priority_map"`
}
type PriorityMap struct {
ThreatMap []int `yaml:"threat_map"`
MentionThreshold int `yaml:"mention_threshold"`
2024-05-13 14:52:42 +02:00
Color int `yaml:"color"`
2024-05-08 01:56:48 +02:00
}
type Message struct {
Username string `json:"username,omitempty"`
AvatarUrl string `json:"avatar_url,omitempty"`
Content string `json:"content,omitempty"`
Embeds []Embed `json:"embeds,omitempty"`
}
type Embed struct {
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
2024-05-09 17:52:16 +02:00
Color int `json:"color,omitempty"`
2024-05-08 01:56:48 +02:00
}