event

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Key          string       `json:"key"`
	Type         Type         `json:"type"`
	ResourceType ResourceType `json:"resource_type"`
	ResourceName string       `json:"resource_name"`
	FirstTime    time.Time    `json:"first_time"`
	LastTime     time.Time    `json:"last_time"`
	Count        int          `json:"count"`
	MessageType  MessageType  `json:"type_message"`
	Message      string       `json:"message"`
	NodeName     string       `json:"node_name"`
	NodeIP       net.IP       `json:"node_ip"`
}

func NewErrorPipeline

func NewErrorPipeline(name string, msg string) (e *Event)

func NewInfoNode

func NewInfoNode(msg string) (e *Event)

func NewInfoPipeline

func NewInfoPipeline(name string, msg string) (e *Event)

func NewWarnPipeline

func NewWarnPipeline(name string, msg string) (e *Event)

type MessageType

type MessageType string

type ResourceType

type ResourceType string
const (
	PIPELINE ResourceType = "pipeline"
	NODE     ResourceType = "node"
	CLUSTER  ResourceType = "cluster"
)

type Type

type Type string
const (
	WARN  Type = "warn"
	ERROR Type = "error"
	INFO  Type = "info"
)

Jump to

Keyboard shortcuts

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