Documentation ¶
Index ¶
- Variables
- type CpuInfo
- func (*CpuInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CpuInfo) GetCores() int32
- func (x *CpuInfo) GetFamily() string
- func (x *CpuInfo) GetMhz() float32
- func (x *CpuInfo) GetModelName() string
- func (x *CpuInfo) GetNum() int32
- func (x *CpuInfo) GetPhysicalId() string
- func (x *CpuInfo) GetVendorId() string
- func (*CpuInfo) ProtoMessage()
- func (x *CpuInfo) ProtoReflect() protoreflect.Message
- func (x *CpuInfo) Reset()
- func (x *CpuInfo) String() string
- type CpuStat
- func (*CpuStat) Descriptor() ([]byte, []int)deprecated
- func (x *CpuStat) GetLogicalCores() int32
- func (x *CpuStat) GetPhysicalCores() int32
- func (x *CpuStat) GetUsedPercent() float32
- func (*CpuStat) ProtoMessage()
- func (x *CpuStat) ProtoReflect() protoreflect.Message
- func (x *CpuStat) Reset()
- func (x *CpuStat) String() string
- type DiskStat
- func (*DiskStat) Descriptor() ([]byte, []int)deprecated
- func (x *DiskStat) GetTotal() float32
- func (x *DiskStat) GetUsed() float32
- func (x *DiskStat) GetUsedPercent() float32
- func (*DiskStat) ProtoMessage()
- func (x *DiskStat) ProtoReflect() protoreflect.Message
- func (x *DiskStat) Reset()
- func (x *DiskStat) String() string
- type HostInfo
- func (*HostInfo) Descriptor() ([]byte, []int)deprecated
- func (x *HostInfo) GetCpuInfos() []*CpuInfo
- func (x *HostInfo) GetHostName() string
- func (x *HostInfo) GetIp() string
- func (x *HostInfo) GetKernelArch() string
- func (x *HostInfo) GetKernelVersion() string
- func (x *HostInfo) GetPlatform() string
- func (x *HostInfo) GetPlatformVersion() string
- func (x *HostInfo) GetTimestamp() *timestamppb.Timestamp
- func (x *HostInfo) GetUpTime() string
- func (*HostInfo) ProtoMessage()
- func (x *HostInfo) ProtoReflect() protoreflect.Message
- func (x *HostInfo) Reset()
- func (x *HostInfo) String() string
- type MemoryStat
- func (*MemoryStat) Descriptor() ([]byte, []int)deprecated
- func (x *MemoryStat) GetTotal() float32
- func (x *MemoryStat) GetUsed() float32
- func (x *MemoryStat) GetUsedPercent() float32
- func (*MemoryStat) ProtoMessage()
- func (x *MemoryStat) ProtoReflect() protoreflect.Message
- func (x *MemoryStat) Reset()
- func (x *MemoryStat) String() string
- type SysStats
- func (*SysStats) Descriptor() ([]byte, []int)deprecated
- func (x *SysStats) GetCpu() *CpuStat
- func (x *SysStats) GetDisk() *DiskStat
- func (x *SysStats) GetIp() string
- func (x *SysStats) GetSwapMemory() *MemoryStat
- func (x *SysStats) GetTimestamp() *timestamppb.Timestamp
- func (x *SysStats) GetVirtualMemory() *MemoryStat
- func (*SysStats) ProtoMessage()
- func (x *SysStats) ProtoReflect() protoreflect.Message
- func (x *SysStats) Reset()
- func (x *SysStats) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_grpc_model_host_info_proto protoreflect.FileDescriptor
View Source
var File_grpc_model_sys_stats_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CpuInfo ¶
type CpuInfo struct { Num int32 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` VendorId string `protobuf:"bytes,2,opt,name=vendorId,proto3" json:"vendorId,omitempty"` Family string `protobuf:"bytes,3,opt,name=family,proto3" json:"family,omitempty"` PhysicalId string `protobuf:"bytes,4,opt,name=physicalId,proto3" json:"physicalId,omitempty"` Cores int32 `protobuf:"varint,5,opt,name=cores,proto3" json:"cores,omitempty"` ModelName string `protobuf:"bytes,6,opt,name=modelName,proto3" json:"modelName,omitempty"` Mhz float32 `protobuf:"fixed32,7,opt,name=mhz,proto3" json:"mhz,omitempty"` // contains filtered or unexported fields }
func (*CpuInfo) Descriptor
deprecated
func (*CpuInfo) GetModelName ¶
func (*CpuInfo) GetPhysicalId ¶
func (*CpuInfo) GetVendorId ¶
func (*CpuInfo) ProtoMessage ¶
func (*CpuInfo) ProtoMessage()
func (*CpuInfo) ProtoReflect ¶
func (x *CpuInfo) ProtoReflect() protoreflect.Message
type CpuStat ¶
type CpuStat struct { PhysicalCores int32 `protobuf:"varint,1,opt,name=physicalCores,proto3" json:"physicalCores,omitempty"` LogicalCores int32 `protobuf:"varint,2,opt,name=logicalCores,proto3" json:"logicalCores,omitempty"` UsedPercent float32 `protobuf:"fixed32,3,opt,name=usedPercent,proto3" json:"usedPercent,omitempty"` // contains filtered or unexported fields }
func (*CpuStat) Descriptor
deprecated
func (*CpuStat) GetLogicalCores ¶
func (*CpuStat) GetPhysicalCores ¶
func (*CpuStat) GetUsedPercent ¶
func (*CpuStat) ProtoMessage ¶
func (*CpuStat) ProtoMessage()
func (*CpuStat) ProtoReflect ¶
func (x *CpuStat) ProtoReflect() protoreflect.Message
type DiskStat ¶
type DiskStat struct { Total float32 `protobuf:"fixed32,1,opt,name=total,proto3" json:"total,omitempty"` Used float32 `protobuf:"fixed32,2,opt,name=used,proto3" json:"used,omitempty"` UsedPercent float32 `protobuf:"fixed32,3,opt,name=usedPercent,proto3" json:"usedPercent,omitempty"` // contains filtered or unexported fields }
func (*DiskStat) Descriptor
deprecated
func (*DiskStat) GetUsedPercent ¶
func (*DiskStat) ProtoMessage ¶
func (*DiskStat) ProtoMessage()
func (*DiskStat) ProtoReflect ¶
func (x *DiskStat) ProtoReflect() protoreflect.Message
type HostInfo ¶
type HostInfo struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` HostName string `protobuf:"bytes,2,opt,name=hostName,proto3" json:"hostName,omitempty"` UpTime string `protobuf:"bytes,3,opt,name=upTime,proto3" json:"upTime,omitempty"` Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"` PlatformVersion string `protobuf:"bytes,5,opt,name=platformVersion,proto3" json:"platformVersion,omitempty"` KernelVersion string `protobuf:"bytes,6,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"` KernelArch string `protobuf:"bytes,7,opt,name=kernelArch,proto3" json:"kernelArch,omitempty"` CpuInfos []*CpuInfo `protobuf:"bytes,8,rep,name=cpuInfos,proto3" json:"cpuInfos,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*HostInfo) Descriptor
deprecated
func (*HostInfo) GetCpuInfos ¶
func (*HostInfo) GetHostName ¶
func (*HostInfo) GetKernelArch ¶
func (*HostInfo) GetKernelVersion ¶
func (*HostInfo) GetPlatform ¶
func (*HostInfo) GetPlatformVersion ¶
func (*HostInfo) GetTimestamp ¶
func (x *HostInfo) GetTimestamp() *timestamppb.Timestamp
func (*HostInfo) ProtoMessage ¶
func (*HostInfo) ProtoMessage()
func (*HostInfo) ProtoReflect ¶
func (x *HostInfo) ProtoReflect() protoreflect.Message
type MemoryStat ¶
type MemoryStat struct { Total float32 `protobuf:"fixed32,1,opt,name=total,proto3" json:"total,omitempty"` Used float32 `protobuf:"fixed32,2,opt,name=used,proto3" json:"used,omitempty"` UsedPercent float32 `protobuf:"fixed32,3,opt,name=usedPercent,proto3" json:"usedPercent,omitempty"` // contains filtered or unexported fields }
func (*MemoryStat) Descriptor
deprecated
func (*MemoryStat) Descriptor() ([]byte, []int)
Deprecated: Use MemoryStat.ProtoReflect.Descriptor instead.
func (*MemoryStat) GetTotal ¶
func (x *MemoryStat) GetTotal() float32
func (*MemoryStat) GetUsed ¶
func (x *MemoryStat) GetUsed() float32
func (*MemoryStat) GetUsedPercent ¶
func (x *MemoryStat) GetUsedPercent() float32
func (*MemoryStat) ProtoMessage ¶
func (*MemoryStat) ProtoMessage()
func (*MemoryStat) ProtoReflect ¶
func (x *MemoryStat) ProtoReflect() protoreflect.Message
func (*MemoryStat) Reset ¶
func (x *MemoryStat) Reset()
func (*MemoryStat) String ¶
func (x *MemoryStat) String() string
type SysStats ¶
type SysStats struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Cpu *CpuStat `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"` VirtualMemory *MemoryStat `protobuf:"bytes,3,opt,name=virtualMemory,proto3" json:"virtualMemory,omitempty"` SwapMemory *MemoryStat `protobuf:"bytes,4,opt,name=swapMemory,proto3" json:"swapMemory,omitempty"` Disk *DiskStat `protobuf:"bytes,5,opt,name=disk,proto3" json:"disk,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*SysStats) Descriptor
deprecated
func (*SysStats) GetSwapMemory ¶
func (x *SysStats) GetSwapMemory() *MemoryStat
func (*SysStats) GetTimestamp ¶
func (x *SysStats) GetTimestamp() *timestamppb.Timestamp
func (*SysStats) GetVirtualMemory ¶
func (x *SysStats) GetVirtualMemory() *MemoryStat
func (*SysStats) ProtoMessage ¶
func (*SysStats) ProtoMessage()
func (*SysStats) ProtoReflect ¶
func (x *SysStats) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.