Versions in this module Expand all Collapse all v2 v2.5.1 Feb 18, 2026 v2.5.0 Feb 18, 2026 Changes in this version type Node + HealthData map[string][]string v2.4.0 Feb 12, 2026 Changes in this version type NodeStateDB + HealthMetrics string v2.3.0 Feb 10, 2026 Changes in this version type Role + const RoleAPI type ScopedStats + ID *string type Series + ID *string v2.2.2 Feb 10, 2026 v2.2.1 Jan 27, 2026 Changes in this version type ScopedJobStats + func (sjs *ScopedJobStats) RoundScopedMetricStats() v2.2.0 Jan 26, 2026 Changes in this version type FloatArray + func (fa FloatArray) MarshalJSON() ([]byte, error) v2.1.0 Jan 14, 2026 Changes in this version type Job + Exclusive int32 v2.0.0 Dec 24, 2025 Changes in this version + const MonitoringStatusArchivingFailed + const MonitoringStatusArchivingSuccessful + const MonitoringStatusDisabled + const MonitoringStatusRunningOrArchiving + func ConvertFloatToFloat64(s []Float) []float64 + func GetRoleString(roleInt Role) string + func GetValidRoles(user *User) ([]string, error) + func GetValidRolesMap(user *User) (map[string]Role, error) + func IsValidRole(role string) bool + func Validate(k Kind, r io.Reader) error + type Accelerator struct + ID string + Model string + Type string + type AuthSource int + const AuthViaAll + const AuthViaLDAP + const AuthViaLocalPassword + const AuthViaOIDC + const AuthViaToken + type AuthType int + const AuthSession + const AuthToken + type Cluster struct + MetricConfig []*MetricConfig + Name string + SubClusters []*SubCluster + type ClusterSupport struct + Cluster string + SubClusters []string + type Float float64 + var NaN Float = Float(math.NaN()) + func ConvertToFloat(input float64) Float + func GetFloat64ToFloat(s []float64) []Float + func (f *Float) UnmarshalGQL(v any) error + func (f *Float) UnmarshalJSON(input []byte) error + func (f Float) Double() float64 + func (f Float) IsNaN() bool + func (f Float) MarshalGQL(w io.Writer) + func (f Float) MarshalJSON() ([]byte, error) + type FloatArray []Float + type GlobalMetricListItem struct + Availability []ClusterSupport + Footprint string + Name string + Restrict bool + Scope MetricScope + Unit Unit + type Job struct + ArrayJobID int64 + Cluster string + ConcurrentJobs JobLinkResultList + Duration int32 + Energy float64 + EnergyFootprint map[string]float64 + Footprint map[string]float64 + ID *int64 + JobID int64 + MetaData map[string]string + MonitoringStatus int32 + NumAcc int32 + NumHWThreads int32 + NumNodes int32 + Partition string + Project string + RawEnergyFootprint []byte + RawFootprint []byte + RawMetaData []byte + RawResources []byte + RequestedMemory int64 + Resources []*Resource + SMT int32 + Shared string + StartTime int64 + State JobState + Statistics map[string]JobStatistics + SubCluster string + SubmitTime int64 + Tags []*Tag + User string + Walltime int64 + func (j Job) GoString() string + type JobData map[string]map[MetricScope]*JobMetric + func (jd *JobData) AddNodeScope(metric string) bool + func (jd *JobData) RoundMetricStats() + func (jd *JobData) Size() int + type JobLink struct + ID int64 + JobID int64 + type JobLinkResultList struct + Count int + Items []*JobLink + type JobMetric struct + Series []Series + StatisticsSeries *StatsSeries + Timestep int + Unit Unit + func (jm *JobMetric) AddPercentiles(ps []int) bool + func (jm *JobMetric) AddStatisticsSeries() + type JobState string + const JobStateBootFail + const JobStateCancelled + const JobStateCompleted + const JobStateDeadline + const JobStateFailed + const JobStateNodeFail + const JobStateOutOfMemory + const JobStatePending + const JobStatePreempted + const JobStateRunning + const JobStateSuspended + const JobStateTimeout + func (e *JobState) UnmarshalGQL(v any) error + func (e JobState) MarshalGQL(w io.Writer) + func (e JobState) Valid() bool + type JobStatistics struct + Avg float64 + Max float64 + Min float64 + Unit Unit + type Kind int + const ClusterCfg + const Data + const Meta + type Metric struct + Alert float64 + Caution float64 + Name string + Normal float64 + Peak float64 + Unit Unit + type MetricConfig struct + Aggregation string + Energy string + Footprint string + LowerIsBetter bool + Restrict bool + Scope MetricScope + SubClusters []*SubClusterConfig + Timestep int + type MetricScope string + const MetricScopeAccelerator + const MetricScopeCore + const MetricScopeHWThread + const MetricScopeInvalid + const MetricScopeMemoryDomain + const MetricScopeNode + const MetricScopeSocket + func (e *MetricScope) LT(other MetricScope) bool + func (e *MetricScope) LTE(other MetricScope) bool + func (e *MetricScope) Max(other MetricScope) MetricScope + func (e *MetricScope) UnmarshalGQL(v any) error + func (e MetricScope) MarshalGQL(w io.Writer) + func (e MetricScope) Valid() bool + type MetricStatistics struct + Avg float64 + Max float64 + Min float64 + type MetricValue struct + Unit Unit + Value float64 + type MonitoringState string + const MonitoringStateFailed + const MonitoringStateFull + const MonitoringStatePartial + type Node struct + Cluster string + CpusAllocated int + GpusAllocated int + HealthState MonitoringState + Hostname string + JobsRunning int + MemoryAllocated int + MetaData map[string]string + NodeState SchedulerState + SubCluster string + type NodeDB struct + Cluster string + Hostname string + ID int64 + RawMetaData []byte + SubCluster string + type NodePayload struct + CpusAllocated int + GpusAllocated int + Hostname string + JobsRunning int + MemoryAllocated int64 + States []string + type NodeStateDB struct + CpusAllocated int + GpusAllocated int + HealthState MonitoringState + ID int64 + JobsRunning int + MemoryAllocated int64 + NodeID int64 + NodeState SchedulerState + TimeStamp int64 + type Resource struct + Accelerators []string + Configuration string + HWThreads []int + Hostname string + type Role int + const RoleAdmin + const RoleAnonymous + const RoleApi + const RoleError + const RoleManager + const RoleSupport + const RoleUser + type SchedulerState string + const NodeStateAllocated + const NodeStateDown + const NodeStateIdle + const NodeStateMixed + const NodeStateReserved + const NodeStateUnknown + type ScopedJobStats map[string]map[MetricScope][]*ScopedStats + type ScopedStats struct + Data *MetricStatistics + Hostname string + Id *string + type Series struct + Data []Float + Hostname string + Id *string + Statistics MetricStatistics + func (s *Series) MarshalJSON() ([]byte, error) + type StatsSeries struct + Max []Float + Mean []Float + Median []Float + Min []Float + Percentiles map[int][]Float + type SubCluster struct + CoresPerSocket int + EnergyFootprint []string + FlopRateScalar MetricValue + FlopRateSimd MetricValue + Footprint []string + MemoryBandwidth MetricValue + MetricConfig []MetricConfig + Name string + Nodes string + ProcessorType string + SocketsPerNode int + ThreadsPerCore int + Topology Topology + type SubClusterConfig struct + Energy string + Footprint string + LowerIsBetter bool + Remove bool + Restrict bool + type Tag struct + ID int64 + Name string + Scope string + Type string + type Topology struct + Accelerators []*Accelerator + Core [][]int + Die [][]*int + MemoryDomain [][]int + Node []int + Socket [][]int + func (topo *Topology) GetAcceleratorID(id int) (string, error) + func (topo *Topology) GetAcceleratorIDs() []string + func (topo *Topology) GetAcceleratorIDsAsInt() ([]int, error) + func (topo *Topology) GetCoresFromHWThreads(hwthreads []int) (cores []int, exclusive bool) + func (topo *Topology) GetMemoryDomainsFromHWThreads(hwthreads []int) (memDoms []int, exclusive bool) + func (topo *Topology) GetSocketsFromCores(cores []int) (sockets []int, exclusive bool) + func (topo *Topology) GetSocketsFromHWThreads(hwthreads []int) (sockets []int, exclusive bool) + type Unit struct + Base string + Prefix string + type User struct + AuthSource AuthSource + AuthType AuthType + Email string + Name string + Password string + Projects []string + Roles []string + Username string + func (u *User) GetAuthLevel() Role + func (u *User) HasAllRoles(queryroles []Role) bool + func (u *User) HasAnyRole(queryroles []Role) bool + func (u *User) HasNotRoles(queryroles []Role) bool + func (u *User) HasProject(project string) bool + func (u *User) HasRole(role Role) bool + func (u *User) HasValidRole(role string) (hasRole bool, isValid bool) Other modules containing this package github.com/ClusterCockpit/cc-lib