Documentation ¶
Index ¶
- Variables
- type CpuDeviceMetrics
- func (*CpuDeviceMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *CpuDeviceMetrics) GetFrequencyMhz() float64
- func (x *CpuDeviceMetrics) GetFsbFrequencyMhz() float64
- func (x *CpuDeviceMetrics) GetLoad() []int32
- func (x *CpuDeviceMetrics) GetNumCores() int32
- func (x *CpuDeviceMetrics) GetTemperature() []float64
- func (*CpuDeviceMetrics) ProtoMessage()
- func (x *CpuDeviceMetrics) ProtoReflect() protoreflect.Message
- func (x *CpuDeviceMetrics) Reset()
- func (x *CpuDeviceMetrics) String() string
- type DeviceMetrics
- func (*DeviceMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceMetrics) GetCpu() *CpuDeviceMetrics
- func (x *DeviceMetrics) GetKind() string
- func (x *DeviceMetrics) GetName() string
- func (x *DeviceMetrics) GetTemperature() float64
- func (*DeviceMetrics) ProtoMessage()
- func (x *DeviceMetrics) ProtoReflect() protoreflect.Message
- func (x *DeviceMetrics) Reset()
- func (x *DeviceMetrics) String() string
- type MachineMetrics
- func (*MachineMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *MachineMetrics) GetDevice() []*DeviceMetrics
- func (x *MachineMetrics) GetName() string
- func (x *MachineMetrics) GetTimestamp() *timestamppb.Timestamp
- func (*MachineMetrics) ProtoMessage()
- func (x *MachineMetrics) ProtoReflect() protoreflect.Message
- func (x *MachineMetrics) Reset()
- func (x *MachineMetrics) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_hardware_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CpuDeviceMetrics ¶
type CpuDeviceMetrics struct { // Load as a percentage [0-100]. Load []int32 `protobuf:"varint,1,rep,packed,name=load,proto3" json:"load,omitempty"` // Temperature is the temperature of each core in celcius. Temperature []float64 `protobuf:"fixed64,2,rep,packed,name=temperature,proto3" json:"temperature,omitempty"` // NumCores is the total number of cores across all CPUs on the machine. NumCores int32 `protobuf:"varint,3,opt,name=num_cores,json=numCores,proto3" json:"num_cores,omitempty"` // Frequency is the clock frequency (Hz) of the CPU. FrequencyMhz float64 `protobuf:"fixed64,4,opt,name=frequency_mhz,json=frequencyMhz,proto3" json:"frequency_mhz,omitempty"` // FSBFrequency is the clock frequency of the front side bus. FsbFrequencyMhz float64 `protobuf:"fixed64,5,opt,name=fsb_frequency_mhz,json=fsbFrequencyMhz,proto3" json:"fsb_frequency_mhz,omitempty"` // contains filtered or unexported fields }
CpuDeviceMetrics holds details about CPU utilization and temperatures.
func (*CpuDeviceMetrics) Descriptor
deprecated
func (*CpuDeviceMetrics) Descriptor() ([]byte, []int)
Deprecated: Use CpuDeviceMetrics.ProtoReflect.Descriptor instead.
func (*CpuDeviceMetrics) GetFrequencyMhz ¶
func (x *CpuDeviceMetrics) GetFrequencyMhz() float64
func (*CpuDeviceMetrics) GetFsbFrequencyMhz ¶
func (x *CpuDeviceMetrics) GetFsbFrequencyMhz() float64
func (*CpuDeviceMetrics) GetLoad ¶
func (x *CpuDeviceMetrics) GetLoad() []int32
func (*CpuDeviceMetrics) GetNumCores ¶
func (x *CpuDeviceMetrics) GetNumCores() int32
func (*CpuDeviceMetrics) GetTemperature ¶
func (x *CpuDeviceMetrics) GetTemperature() []float64
func (*CpuDeviceMetrics) ProtoMessage ¶
func (*CpuDeviceMetrics) ProtoMessage()
func (*CpuDeviceMetrics) ProtoReflect ¶
func (x *CpuDeviceMetrics) ProtoReflect() protoreflect.Message
func (*CpuDeviceMetrics) Reset ¶
func (x *CpuDeviceMetrics) Reset()
func (*CpuDeviceMetrics) String ¶
func (x *CpuDeviceMetrics) String() string
type DeviceMetrics ¶
type DeviceMetrics struct { // Name of the device. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Kind of device that is described. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // Temperature of the device in celcius if available. Temperature float64 `protobuf:"fixed64,3,opt,name=temperature,proto3" json:"temperature,omitempty"` // CPU is populated if the device is a CPU. Cpu *CpuDeviceMetrics `protobuf:"bytes,4,opt,name=cpu,proto3" json:"cpu,omitempty"` // contains filtered or unexported fields }
DeviceMetrics holds the health metrics (temperature and other measurements) of the device.
func (*DeviceMetrics) Descriptor
deprecated
func (*DeviceMetrics) Descriptor() ([]byte, []int)
Deprecated: Use DeviceMetrics.ProtoReflect.Descriptor instead.
func (*DeviceMetrics) GetCpu ¶
func (x *DeviceMetrics) GetCpu() *CpuDeviceMetrics
func (*DeviceMetrics) GetKind ¶
func (x *DeviceMetrics) GetKind() string
func (*DeviceMetrics) GetName ¶
func (x *DeviceMetrics) GetName() string
func (*DeviceMetrics) GetTemperature ¶
func (x *DeviceMetrics) GetTemperature() float64
func (*DeviceMetrics) ProtoMessage ¶
func (*DeviceMetrics) ProtoMessage()
func (*DeviceMetrics) ProtoReflect ¶
func (x *DeviceMetrics) ProtoReflect() protoreflect.Message
func (*DeviceMetrics) Reset ¶
func (x *DeviceMetrics) Reset()
func (*DeviceMetrics) String ¶
func (x *DeviceMetrics) String() string
type MachineMetrics ¶
type MachineMetrics struct { // Name is the hostname of the machine. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Device is a list of all the instrumented devices on the machine. Device []*DeviceMetrics `protobuf:"bytes,2,rep,name=device,proto3" json:"device,omitempty"` // Timestamp of the sample of metrics. Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
MachineMetrics holds a list of devices that can be instrumented for health.
func (*MachineMetrics) Descriptor
deprecated
func (*MachineMetrics) Descriptor() ([]byte, []int)
Deprecated: Use MachineMetrics.ProtoReflect.Descriptor instead.
func (*MachineMetrics) GetDevice ¶
func (x *MachineMetrics) GetDevice() []*DeviceMetrics
func (*MachineMetrics) GetName ¶
func (x *MachineMetrics) GetName() string
func (*MachineMetrics) GetTimestamp ¶
func (x *MachineMetrics) GetTimestamp() *timestamppb.Timestamp
func (*MachineMetrics) ProtoMessage ¶
func (*MachineMetrics) ProtoMessage()
func (*MachineMetrics) ProtoReflect ¶
func (x *MachineMetrics) ProtoReflect() protoreflect.Message
func (*MachineMetrics) Reset ¶
func (x *MachineMetrics) Reset()
func (*MachineMetrics) String ¶
func (x *MachineMetrics) String() string
Click to show internal directories.
Click to hide internal directories.