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"` }
Event generated by pipelines and nodes in the cluster. Events include common information and error information, which can be easily located when an error occurs
func NewErrorPipeline ¶
NewErrorPipeline returns a new pipeline error event
func NewInfoNode ¶
NewInfoNode returns a new node event of info level
func NewInfoPipeline ¶
NewInfoPipeline returns a new pipeline info event
func NewWarnPipeline ¶
NewWarnPipeline returns a new pipeline warn event
type ResourceType ¶
type ResourceType string
ResourceType pipeline or node or etc.
const ( // PIPELINE resource type PIPELINE ResourceType = "pipeline" // ResourceType resource type NODE ResourceType = "node" // CLUSTER resource type CLUSTER ResourceType = "cluster" )
Click to show internal directories.
Click to hide internal directories.