elasticsearch

package
v0.0.0-...-6e30feb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EndpointURL string `json:"endpoint_url" validate:"required,url" required:"true"`
	AuthHeader  string `json:"auth_header"`
	Index       string `json:"index" validate:"required,min=1" required:"true"`
}

type ElasticSearch

type ElasticSearch struct {
	Config           Config                  `json:"config"`
	IntegrationType  string                  `json:"integration_type"`
	NotificationType string                  `json:"notification_type"`
	Filters          reporters.FieldsFilters `json:"filters"`
	Message          string                  `json:"message"`
}

func New

func New(ctx context.Context, b []byte) (*ElasticSearch, error)

func (ElasticSearch) IsValidCredential

func (e ElasticSearch) IsValidCredential(ctx context.Context) (bool, error)

func (ElasticSearch) SendNotification

func (e ElasticSearch) SendNotification(ctx context.Context, message string, extras map[string]interface{}) error

func (ElasticSearch) ValidateConfig

func (e ElasticSearch) ValidateConfig(validate *validator.Validate) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL