Documentation ¶
Overview ¶
Package status is a generated protocol buffer package.
Package status provides data model for status information of the agent.
It is generated from these files:
status.proto
It has these top-level messages:
AgentStatus PluginStatus
Index ¶
Constants ¶
View Source
const ( // StatusPrefix is the relative key prefix for the agent/plugin status. StatusPrefix = "check/status/v1/" // AgentStatusPrefix is the relative key prefix for the agent status, // filtering out statuses of individual plugins. AgentStatusPrefix = StatusPrefix + "agent" )
Variables ¶
Functions ¶
Types ¶
type AgentStatus ¶
type AgentStatus struct { BuildVersion string `protobuf:"bytes,1,opt,name=build_version,proto3" json:"build_version,omitempty"` BuildDate string `protobuf:"bytes,2,opt,name=build_date,proto3" json:"build_date,omitempty"` State OperationalState `protobuf:"varint,3,opt,name=state,proto3,enum=status.OperationalState" json:"state,omitempty"` StartTime int64 `protobuf:"varint,4,opt,name=start_time,proto3" json:"start_time,omitempty"` LastChange int64 `protobuf:"varint,5,opt,name=last_change,proto3" json:"last_change,omitempty"` LastUpdate int64 `protobuf:"varint,6,opt,name=last_update,proto3" json:"last_update,omitempty"` }
func (*AgentStatus) ProtoMessage ¶
func (*AgentStatus) ProtoMessage()
func (*AgentStatus) Reset ¶
func (m *AgentStatus) Reset()
func (*AgentStatus) String ¶
func (m *AgentStatus) String() string
type OperationalState ¶
type OperationalState int32
const ( OperationalState_INIT OperationalState = 0 OperationalState_OK OperationalState = 1 OperationalState_ERROR OperationalState = 2 )
func (OperationalState) String ¶
func (x OperationalState) String() string
type PluginStatus ¶
type PluginStatus struct { State OperationalState `protobuf:"varint,1,opt,name=state,proto3,enum=status.OperationalState" json:"state,omitempty"` LastChange int64 `protobuf:"varint,4,opt,name=last_change,proto3" json:"last_change,omitempty"` LastUpdate int64 `protobuf:"varint,5,opt,name=last_update,proto3" json:"last_update,omitempty"` Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` }
func (*PluginStatus) ProtoMessage ¶
func (*PluginStatus) ProtoMessage()
func (*PluginStatus) Reset ¶
func (m *PluginStatus) Reset()
func (*PluginStatus) String ¶
func (m *PluginStatus) String() string
Click to show internal directories.
Click to hide internal directories.