integration

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatadogConfig

type DatadogConfig struct {
	APIKey  string   `json:"api_key"`
	Site    string   `json:"site"`
	Service string   `json:"service"`
	Tags    []string `json:"tags"`
}

type DatadogSIEMClient

type DatadogSIEMClient struct {
	DatadogConfig
}

func NewDatadogSIEMClient

func NewDatadogSIEMClient(config DatadogConfig) *DatadogSIEMClient

func (*DatadogSIEMClient) Export

func (d *DatadogSIEMClient) Export(ctx context.Context, events []any) error

type ElasticConfig

type ElasticConfig struct {
	Endpoint      string `json:"endpoint"`
	APIKey        string `json:"api_key"`
	Username      string `json:"username"`
	Password      string `json:"password"`
	Index         string `json:"index"`
	SkipTLSVerify bool   `json:"skip_tls_verify"`
}

type ElasticSIEMClient

type ElasticSIEMClient struct {
	ElasticConfig
}

func NewElasticSIEMClient

func NewElasticSIEMClient(config ElasticConfig) *ElasticSIEMClient

func (*ElasticSIEMClient) Export

func (e *ElasticSIEMClient) Export(ctx context.Context, events []any) error

type Provider

type Provider interface {
	Validate(config json.RawMessage) error
	Test(config json.RawMessage) error
}

func Lookup

func Lookup(intType Type, id ProviderID) (Provider, error)

type ProviderID

type ProviderID string
const (
	ProviderDatadog  ProviderID = "datadog"
	ProviderElastic  ProviderID = "elastic"
	ProviderSentinel ProviderID = "sentinel"
	ProviderSplunk   ProviderID = "splunk"
)

type SIEMClient

type SIEMClient interface {
	Export(ctx context.Context, events []any) error
}

type SentinelConfig

type SentinelConfig struct {
	WorkspaceID string `json:"workspace_id"`
	SharedKey   string `json:"shared_key"`
	LogType     string `json:"log_type"`
}

type SentinelSIEMClient

type SentinelSIEMClient struct {
	SentinelConfig
}

func NewSentinelSIEMClient

func NewSentinelSIEMClient(config SentinelConfig) *SentinelSIEMClient

func (*SentinelSIEMClient) Export

func (s *SentinelSIEMClient) Export(ctx context.Context, events []any) error

type SplunkConfig

type SplunkConfig struct {
	HECEndpoint   string `json:"hec_endpoint"`
	HECToken      string `json:"hec_token"`
	Index         string `json:"index"`
	Source        string `json:"source"`
	SourceType    string `json:"source_type"`
	SkipTLSVerify bool   `json:"skip_tls_verify"`
}

type SplunkSIEMClient

type SplunkSIEMClient struct {
	SplunkConfig
}

func NewSplunkSIEMClient

func NewSplunkSIEMClient(config SplunkConfig) *SplunkSIEMClient

func (*SplunkSIEMClient) Export

func (s *SplunkSIEMClient) Export(ctx context.Context, events []any) error

type Type

type Type string
const (
	TypeSIEM Type = "siem"
)

Jump to

Keyboard shortcuts

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