Documentation
¶
Index ¶
Constants ¶
View Source
const (
DmiCallCmd = "zos.system.dmi"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUUtilizationPercent ¶
type CpuBenchmarkResult ¶
type CpuBenchmarkWork ¶
type CpuBenchmarkWork struct {
// contains filtered or unexported fields
}
func NewCpuBenchmarkWork ¶
func NewCpuBenchmarkWork(interval uint) *CpuBenchmarkWork
func (*CpuBenchmarkWork) Get ¶
func (w *CpuBenchmarkWork) Get(ctx context.Context, rmb *peer.RpcClient, twinId uint32) ([]types.CpuBenchmark, error)
func (*CpuBenchmarkWork) Upsert ¶
func (w *CpuBenchmarkWork) Upsert(ctx context.Context, db db.Database, batch []types.CpuBenchmark) error
type DMIWork ¶
type DMIWork struct {
// contains filtered or unexported fields
}
func NewDMIWork ¶
type FeatureWork ¶
type FeatureWork struct {
// contains filtered or unexported fields
}
func NewFeatureWork ¶
func NewFeatureWork(interval uint) *FeatureWork
func (*FeatureWork) Get ¶
func (w *FeatureWork) Get(ctx context.Context, rmb *peer.RpcClient, twinId uint32) ([]types.NodeFeatures, error)
func (*FeatureWork) Upsert ¶
func (w *FeatureWork) Upsert(ctx context.Context, db db.Database, batch []types.NodeFeatures) error
type GPUWork ¶
type GPUWork struct {
// contains filtered or unexported fields
}
type HealthWork ¶
type HealthWork struct {
// contains filtered or unexported fields
}
func NewHealthWork ¶
func NewHealthWork(interval uint) *HealthWork
func (*HealthWork) Get ¶
func (w *HealthWork) Get(ctx context.Context, rmb *peer.RpcClient, twinId uint32) ([]types.HealthReport, error)
func (*HealthWork) Upsert ¶
func (w *HealthWork) Upsert(ctx context.Context, db db.Database, batch []types.HealthReport) error
type Indexer ¶
type Indexer[T any] struct { // contains filtered or unexported fields }
func NewIndexer ¶
type IperfResult ¶
type IperfResult struct {
UploadSpeed float64 `json:"upload_speed"` // in bit/sec
DownloadSpeed float64 `json:"download_speed"` // in bit/sec
NodeID uint32 `json:"node_id"`
NodeIpv4 string `json:"node_ip"`
TestType string `json:"test_type"`
Error string `json:"error"`
CpuReport CPUUtilizationPercent `json:"cpu_report"`
}
type Ipv6Work ¶
type Ipv6Work struct {
// contains filtered or unexported fields
}
func NewIpv6Work ¶
type LocationWork ¶
type LocationWork struct {
// contains filtered or unexported fields
}
func NewLocationWork ¶
func NewLocationWork(interval uint) *LocationWork
func (*LocationWork) Get ¶
func (w *LocationWork) Get(ctx context.Context, rmb *peer.RpcClient, id uint32) ([]types.NodeLocation, error)
func (*LocationWork) Upsert ¶
func (w *LocationWork) Upsert(ctx context.Context, db db.Database, batch []types.NodeLocation) error
type SpeedWork ¶
type SpeedWork struct {
// contains filtered or unexported fields
}
func NewSpeedWork ¶
type TaskResult ¶
type WorkloadWork ¶
type WorkloadWork struct {
// contains filtered or unexported fields
}
func NewWorkloadWork ¶
func NewWorkloadWork(interval uint) *WorkloadWork
func (*WorkloadWork) Get ¶
func (w *WorkloadWork) Get(ctx context.Context, rmb *peer.RpcClient, twinId uint32) ([]types.NodesWorkloads, error)
func (*WorkloadWork) Upsert ¶
func (w *WorkloadWork) Upsert(ctx context.Context, db db.Database, batch []types.NodesWorkloads) error
Click to show internal directories.
Click to hide internal directories.