Documentation
¶
Index ¶
Constants ¶
View Source
const TimeLayout = "2006-01-02T15:04:05.000Z"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputMessage ¶
type InputMessage struct { // time format TsLayout = "2006-01-02T15:04:05.000Z" Timestamp string `json:"@timestamp"` DataID int `json:"dataid"` ObjMeta MessageMeta `json:"objmeta"` Prometheus interface{} `json:"prometheus,omitempty"` Data interface{} `json:"data,omitempty"` }
type Message ¶
type Message struct { Meta MessageMeta `json:"meta"` // pod meta define DataID int Data []byte }
Message will be sent to net
type MessageMeta ¶
type MessageMeta struct { btypes.ObjectMeta IP string `json:"ip"` }
Click to show internal directories.
Click to hide internal directories.