sumologic

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 {
	HTTPEndpoint string `json:"endpoint_url" validate:"required,url" required:"true"`
}

type SumoLogic

type SumoLogic 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) (SumoLogic, error)

func (SumoLogic) FormatMessage

func (s SumoLogic) FormatMessage(message []map[string]interface{}) (bytes.Buffer, error)

func (SumoLogic) IsValidCredential

func (s SumoLogic) IsValidCredential(ctx context.Context) (bool, error)

todo

func (SumoLogic) SendNotification

func (s SumoLogic) SendNotification(ctx context.Context, data string, extra map[string]interface{}) error

func (SumoLogic) ValidateConfig

func (s SumoLogic) ValidateConfig(validate *validator.Validate) error

Jump to

Keyboard shortcuts

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