model

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use CpuInfo.ProtoReflect.Descriptor instead.

func (*CpuInfo) GetCores

func (x *CpuInfo) GetCores() int32

func (*CpuInfo) GetFamily

func (x *CpuInfo) GetFamily() string

func (*CpuInfo) GetMhz

func (x *CpuInfo) GetMhz() float32

func (*CpuInfo) GetModelName

func (x *CpuInfo) GetModelName() string

func (*CpuInfo) GetNum

func (x *CpuInfo) GetNum() int32

func (*CpuInfo) GetPhysicalId

func (x *CpuInfo) GetPhysicalId() string

func (*CpuInfo) GetVendorId

func (x *CpuInfo) GetVendorId() string

func (*CpuInfo) ProtoMessage

func (*CpuInfo) ProtoMessage()

func (*CpuInfo) ProtoReflect

func (x *CpuInfo) ProtoReflect() protoreflect.Message

func (*CpuInfo) Reset

func (x *CpuInfo) Reset()

func (*CpuInfo) String

func (x *CpuInfo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CpuStat.ProtoReflect.Descriptor instead.

func (*CpuStat) GetLogicalCores

func (x *CpuStat) GetLogicalCores() int32

func (*CpuStat) GetPhysicalCores

func (x *CpuStat) GetPhysicalCores() int32

func (*CpuStat) GetUsedPercent

func (x *CpuStat) GetUsedPercent() float32

func (*CpuStat) ProtoMessage

func (*CpuStat) ProtoMessage()

func (*CpuStat) ProtoReflect

func (x *CpuStat) ProtoReflect() protoreflect.Message

func (*CpuStat) Reset

func (x *CpuStat) Reset()

func (*CpuStat) String

func (x *CpuStat) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use DiskStat.ProtoReflect.Descriptor instead.

func (*DiskStat) GetTotal

func (x *DiskStat) GetTotal() float32

func (*DiskStat) GetUsed

func (x *DiskStat) GetUsed() float32

func (*DiskStat) GetUsedPercent

func (x *DiskStat) GetUsedPercent() float32

func (*DiskStat) ProtoMessage

func (*DiskStat) ProtoMessage()

func (*DiskStat) ProtoReflect

func (x *DiskStat) ProtoReflect() protoreflect.Message

func (*DiskStat) Reset

func (x *DiskStat) Reset()

func (*DiskStat) String

func (x *DiskStat) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use HostInfo.ProtoReflect.Descriptor instead.

func (*HostInfo) GetCpuInfos

func (x *HostInfo) GetCpuInfos() []*CpuInfo

func (*HostInfo) GetHostName

func (x *HostInfo) GetHostName() string

func (*HostInfo) GetIp

func (x *HostInfo) GetIp() string

func (*HostInfo) GetKernelArch

func (x *HostInfo) GetKernelArch() string

func (*HostInfo) GetKernelVersion

func (x *HostInfo) GetKernelVersion() string

func (*HostInfo) GetPlatform

func (x *HostInfo) GetPlatform() string

func (*HostInfo) GetPlatformVersion

func (x *HostInfo) GetPlatformVersion() string

func (*HostInfo) GetTimestamp

func (x *HostInfo) GetTimestamp() *timestamppb.Timestamp

func (*HostInfo) GetUpTime

func (x *HostInfo) GetUpTime() string

func (*HostInfo) ProtoMessage

func (*HostInfo) ProtoMessage()

func (*HostInfo) ProtoReflect

func (x *HostInfo) ProtoReflect() protoreflect.Message

func (*HostInfo) Reset

func (x *HostInfo) Reset()

func (*HostInfo) String

func (x *HostInfo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SysStats.ProtoReflect.Descriptor instead.

func (*SysStats) GetCpu

func (x *SysStats) GetCpu() *CpuStat

func (*SysStats) GetDisk

func (x *SysStats) GetDisk() *DiskStat

func (*SysStats) GetIp

func (x *SysStats) GetIp() string

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

func (*SysStats) Reset

func (x *SysStats) Reset()

func (*SysStats) String

func (x *SysStats) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL