events

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// Types
	NGINX_EVENT_TYPE = "Nginx"
	AGENT_EVENT_TYPE = "Agent"

	// Categories
	STATUS_CATEGORY      = "Status"
	CONFIG_CATEGORY      = "Config"
	APP_PROTECT_CATEGORY = "AppProtect"

	// Event Levels
	INFO_EVENT_LEVEL     = "INFO"
	DEBUG_EVENT_LEVEL    = "DEBUG"
	WARN_EVENT_LEVEL     = "WARN"
	ERROR_EVENT_LEVEL    = "ERROR"
	CRITICAL_EVENT_LEVEL = "CRITICAL"

	// Messages
	AGENT_START_MESSAGE = "nginx-agent %s started on %s with pid %s"
	AGENT_STOP_MESSAGE  = "nginx-agent %s (pid: %s) stopped on %s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentEventMeta

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

func NewAgentEventMeta

func NewAgentEventMeta(
	module, version, pid, hostname, systemUuid, instanceGroup string,
	tags []string,
) *AgentEventMeta

func (*AgentEventMeta) CreateActivityEvent

func (aem *AgentEventMeta) CreateActivityEvent(message string, nginxId string) *eventsProto.ActivityEvent

func (*AgentEventMeta) CreateAgentEvent

func (aem *AgentEventMeta) CreateAgentEvent(timestamp *types.Timestamp, level, message, correlationId, module string) *eventsProto.Event

func (*AgentEventMeta) GenerateAgentStartEventCommand

func (aem *AgentEventMeta) GenerateAgentStartEventCommand() *proto.Command

func (*AgentEventMeta) GenerateAgentStopEventCommand

func (aem *AgentEventMeta) GenerateAgentStopEventCommand() *proto.Command

func (*AgentEventMeta) GetPid

func (aem *AgentEventMeta) GetPid() string

func (*AgentEventMeta) GetVersion

func (aem *AgentEventMeta) GetVersion() string

Jump to

Keyboard shortcuts

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