Documentation ¶
Index ¶
- Constants
- type AgentEventMeta
- func (aem *AgentEventMeta) CreateActivityEvent(message string, nginxId string) *eventsProto.ActivityEvent
- func (aem *AgentEventMeta) CreateAgentEvent(timestamp *types.Timestamp, level, message, correlationId, module string) *eventsProto.Event
- func (aem *AgentEventMeta) GenerateAgentStartEventCommand() *proto.Command
- func (aem *AgentEventMeta) GenerateAgentStopEventCommand() *proto.Command
- func (aem *AgentEventMeta) GetPid() string
- func (aem *AgentEventMeta) GetVersion() string
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
Click to show internal directories.
Click to hide internal directories.