processor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertmanagerProcessorType added in v0.2.0

func AlertmanagerProcessorType() string

func CustomJsonProcessorType added in v0.2.0

func CustomJsonProcessorType() string

func GitlabProcessorType added in v0.2.0

func GitlabProcessorType() string

func K8sProcessorType added in v0.2.0

func K8sProcessorType() string

func RancherProcessorType added in v0.2.0

func RancherProcessorType() string

Types

type AlertmanagerProcessor

type AlertmanagerProcessor struct {
	// contains filtered or unexported fields
}

func NewAlertmanagerProcessor

func NewAlertmanagerProcessor(outputs *common.Outputs, observability *common.Observability) *AlertmanagerProcessor

func (*AlertmanagerProcessor) EventType added in v0.2.0

func (p *AlertmanagerProcessor) EventType() string

func (*AlertmanagerProcessor) HandleEvent added in v0.2.0

func (p *AlertmanagerProcessor) HandleEvent(e *common.Event)

func (*AlertmanagerProcessor) HandleHttpRequest

func (p *AlertmanagerProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request)

type AlertmanagerResponse

type AlertmanagerResponse struct {
	Message string
}

type CustomJsonProcessor added in v0.1.0

type CustomJsonProcessor struct {
	// contains filtered or unexported fields
}

func NewCustomJsonProcessor added in v0.1.0

func NewCustomJsonProcessor(outputs *common.Outputs, observability *common.Observability) *CustomJsonProcessor

func (*CustomJsonProcessor) EventType added in v0.2.0

func (p *CustomJsonProcessor) EventType() string

func (*CustomJsonProcessor) HandleEvent added in v0.2.0

func (p *CustomJsonProcessor) HandleEvent(e *common.Event)

func (*CustomJsonProcessor) HandleHttpRequest added in v0.1.0

func (p *CustomJsonProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request)

type CustomJsonResponse added in v0.1.0

type CustomJsonResponse struct {
	Message string
}

type GitlabProcessor added in v0.1.0

type GitlabProcessor struct {
	// contains filtered or unexported fields
}

func NewGitlabProcessor added in v0.1.0

func NewGitlabProcessor(outputs *common.Outputs, observability *common.Observability) *GitlabProcessor

func (*GitlabProcessor) EventType added in v0.2.0

func (p *GitlabProcessor) EventType() string

func (*GitlabProcessor) HandleEvent added in v0.2.0

func (p *GitlabProcessor) HandleEvent(e *common.Event)

func (*GitlabProcessor) HandleHttpRequest added in v0.1.0

func (p *GitlabProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request)

type GitlabResponse added in v0.1.0

type GitlabResponse struct {
	Message string
}

type K8sData

type K8sData struct {
	Kind      string      `json:"kind"`
	Location  string      `json:"location"`
	Operation string      `json:"operation"`
	Namespace string      `json:"namespace"`
	Object    interface{} `json:"object,omitempty"`
	User      *K8sUser    `json:"user"`
}

type K8sProcessor

type K8sProcessor struct {
	// contains filtered or unexported fields
}

func NewK8sProcessor

func NewK8sProcessor(outputs *common.Outputs, observability *common.Observability) *K8sProcessor

func (*K8sProcessor) EventType added in v0.2.0

func (p *K8sProcessor) EventType() string

func (*K8sProcessor) HandleEvent added in v0.2.0

func (p *K8sProcessor) HandleEvent(e *common.Event)

func (*K8sProcessor) HandleHttpRequest

func (p *K8sProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request)

type K8sUser

type K8sUser struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type RancherProcessor

type RancherProcessor struct {
	// contains filtered or unexported fields
}

func NewRancherProcessor

func NewRancherProcessor(outputs *common.Outputs, observability *common.Observability) *RancherProcessor

func (*RancherProcessor) EventType added in v0.2.0

func (p *RancherProcessor) EventType() string

func (*RancherProcessor) HandleEvent added in v0.2.0

func (p *RancherProcessor) HandleEvent(e *common.Event)

func (*RancherProcessor) HandleHttpRequest

func (p *RancherProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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