api

package
v0.0.0-...-c229084 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventController

func NewEventController(cc container.Container) web.Controller

Types

type EventController

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

func (*EventController) AddCommonEvent

func (m *EventController) AddCommonEvent(ctx web.Context, messageStore store.EventStore) web.Response

func (*EventController) AddGrafanaEvent

func (m *EventController) AddGrafanaEvent(ctx web.Context, messageStore store.EventStore) web.Response

Add grafana message

func (*EventController) AddLogstashEvent

func (m *EventController) AddLogstashEvent(ctx web.Context, messageStore store.EventStore) web.Response

AddLogstashEvent Add logstash message

func (*EventController) AddOpenFalconEvent

func (m *EventController) AddOpenFalconEvent(ctx web.Context, messageStore store.EventStore) web.Response

add open-falcon message

func (*EventController) AddPrometheusAlertEvent

func (m *EventController) AddPrometheusAlertEvent(ctx web.Context, messageStore store.EventStore) web.Response

add prometheus-alert message

func (*EventController) AddPrometheusEvent

func (m *EventController) AddPrometheusEvent(ctx web.Context, messageStore store.EventStore) web.Response

add prometheus alert message

func (*EventController) Register

func (m *EventController) Register(router *web.Router)

type ServiceProvider

type ServiceProvider struct{}

func (ServiceProvider) Boot

func (s ServiceProvider) Boot(app infra.Glacier)

func (ServiceProvider) Register

func (s ServiceProvider) Register(app container.Container)

Jump to

Keyboard shortcuts

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