Documentation ¶
Index ¶
- Variables
- type Config
- type HECEvent
- type Splunk
- func (s Splunk) IsValidCredential(ctx context.Context) (bool, error)
- func (s Splunk) SendNotification(ctx context.Context, message string, extras map[string]interface{}) error
- func (s Splunk) Sender(in chan []byte, wg *sync.WaitGroup)
- func (s Splunk) ValidateConfig(validate *validator.Validate) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxContentLength = 10000
Functions ¶
This section is empty.
Types ¶
type HECEvent ¶
type HECEvent struct {
Event map[string]interface{} `json:"event"`
}
HECEvent represents an event for the Splunk HTTP Event Collector (HEC) API
type Splunk ¶
type Splunk struct { Config Config `json:"config"` IntegrationType string `json:"integration_type"` NotificationType string `json:"notification_type"` Filters reporters.FieldsFilters `json:"filters"` Message string `json:"message"` // contains filtered or unexported fields }
func (Splunk) IsValidCredential ¶
todo
func (Splunk) SendNotification ¶
func (Splunk) ValidateConfig ¶
Click to show internal directories.
Click to hide internal directories.