23 lines
920 B
Go
23 lines
920 B
Go
/* Copyright © INFINI Ltd. All rights reserved.
|
|
* web: https://infinilabs.com
|
|
* mail: hello#infini.ltd */
|
|
|
|
package alerting
|
|
|
|
type CustomWebhook struct {
|
|
HeaderParams map[string]string `json:"header_params,omitempty" elastic_mapping:"header_params:{type:object,enabled:false}"`
|
|
Method string `json:"method" elastic_mapping:"method:{type:keyword}"`
|
|
URL string `json:"url,omitempty"`
|
|
Body string `json:"body" elastic_mapping:"body:{type:text}"`
|
|
}
|
|
|
|
type Email struct {
|
|
ServerID string `json:"server_id"`
|
|
Recipients struct {
|
|
To []string `json:"to" elastic_mapping:"to:{type:keyword}"`
|
|
CC []string `json:"cc" elastic_mapping:"cc:{type:keyword}"`
|
|
BCC []string `json:"bcc" elastic_mapping:"bcc:{type:keyword}"`
|
|
} `json:"recipients" elastic_mapping:"recipients:{type:object}"`
|
|
Subject string `json:"subject" elastic_mapping:"subject:{type:text}"`
|
|
Body string `json:"body" elastic_mapping:"body:{type:text}"`
|
|
} |