util

package
v0.0.0-...-2acabb3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateAvg

func CalculateAvg(s []float64) float64

CalculateAvg CalculateAvg

func Convert2CPUTimeSumResp

func Convert2CPUTimeSumResp(cpuTimeSumMetric *job.GetJobMetricResponse) *dto.CPUTimeSumMetricsResp

func Convert2JobCountResp

func Convert2JobCountResp(cpuTimeSumMetric *job.GetJobMetricResponse) *dto.JobCountMetricResp

func Convert2JobDeliverCountResp

func Convert2JobDeliverCountResp(jobDeliverCountMetric *job.GetJobMetricResponse) *dto.JobDeliverCountResp

func Convert2JobWaitStatisticResp

func Convert2JobWaitStatisticResp(jobWaitStatistic *job.GetJobWaitTimeStatisticResponse) *dto.JobWaitStatisticResp

func Convert2ResourceUtAvgReport

func Convert2ResourceUtAvgReport(values []*dto.Value, nodeLabel string) *dto.UtAvgMetric

func GetHostNameMap

func GetHostNameMap() map[string]string

func InitHostNameMapping

func InitHostNameMapping()

func ParseHpcCommandOutFields

func ParseHpcCommandOutFields(fields []string) (*dto.NodeHpcRunningInfo, error)

func PromQuery

func PromQuery(queryCondition string) (model.Value, error)

func PromRangeQuery

func PromRangeQuery(queryCondition string, startTime int64, endTime int64, step int64) (model.Value, error)

func ValidReportType

func ValidReportType(reportType string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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