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 InterfaceStats
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"` InterfaceStats *InterfaceStats `protobuf:"bytes,7,opt,name=interface_stats" json:"interface_stats,omitempty"` CommitHash string `protobuf:"bytes,8,opt,name=commit_hash,proto3" json:"commit_hash,omitempty"` }
func (*AgentStatus) GetInterfaceStats ¶ added in v1.0.8
func (m *AgentStatus) GetInterfaceStats() *InterfaceStats
func (*AgentStatus) ProtoMessage ¶
func (*AgentStatus) ProtoMessage()
func (*AgentStatus) Reset ¶
func (m *AgentStatus) Reset()
func (*AgentStatus) String ¶
func (m *AgentStatus) String() string
type InterfaceStats ¶ added in v1.0.8
type InterfaceStats struct {
Interfaces []*InterfaceStats_Interface `protobuf:"bytes,1,rep,name=interfaces" json:"interfaces,omitempty"`
}
func (*InterfaceStats) GetInterfaces ¶ added in v1.0.8
func (m *InterfaceStats) GetInterfaces() []*InterfaceStats_Interface
func (*InterfaceStats) ProtoMessage ¶ added in v1.0.8
func (*InterfaceStats) ProtoMessage()
func (*InterfaceStats) Reset ¶ added in v1.0.8
func (m *InterfaceStats) Reset()
func (*InterfaceStats) String ¶ added in v1.0.8
func (m *InterfaceStats) String() string
type InterfaceStats_Interface ¶ added in v1.0.8
type InterfaceStats_Interface struct { InternalName string `protobuf:"bytes,1,opt,name=internal_name,proto3" json:"internal_name,omitempty"` Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` IpAddress string `protobuf:"bytes,5,opt,name=ip_address,proto3" json:"ip_address,omitempty"` MacAddress string `protobuf:"bytes,6,opt,name=mac_address,proto3" json:"mac_address,omitempty"` }
func (*InterfaceStats_Interface) ProtoMessage ¶ added in v1.0.8
func (*InterfaceStats_Interface) ProtoMessage()
func (*InterfaceStats_Interface) Reset ¶ added in v1.0.8
func (m *InterfaceStats_Interface) Reset()
func (*InterfaceStats_Interface) String ¶ added in v1.0.8
func (m *InterfaceStats_Interface) 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.