Documentation
¶
Overview ¶
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Index ¶
- Variables
- type Aggregate
- type Count
- type EnergyFootprintValue
- type FloatRange
- type FootprintValue
- type Footprints
- type HistoPoint
- type IntRangeOutput
- type JobFilter
- type JobLink
- type JobLinkResultList
- type JobMetricWithName
- type JobResultList
- type JobStats
- type JobStatsWithScope
- type JobsStatistics
- type MetricFootprints
- type MetricHistoPoint
- type MetricHistoPoints
- type MetricStatItem
- type Mutation
- type NodeMetrics
- type NodesResultList
- type OrderByInput
- type PageRequest
- type ScopedStats
- type SortByAggregate
- type SortDirectionEnum
- type StringInput
- type TimeRangeOutput
- type TimeWeights
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAggregate = []Aggregate{ AggregateUser, AggregateProject, AggregateCluster, }
View Source
var AllSortByAggregate = []SortByAggregate{ SortByAggregateTotalwalltime, SortByAggregateTotaljobs, SortByAggregateTotalnodes, SortByAggregateTotalnodehours, SortByAggregateTotalcores, SortByAggregateTotalcorehours, SortByAggregateTotalaccs, SortByAggregateTotalacchours, }
View Source
var AllSortDirectionEnum = []SortDirectionEnum{ SortDirectionEnumDesc, SortDirectionEnumAsc, }
Functions ¶
This section is empty.
Types ¶
type Aggregate ¶
type Aggregate string
func (Aggregate) MarshalGQL ¶
func (*Aggregate) UnmarshalGQL ¶
type EnergyFootprintValue ¶ added in v1.4.0
type FloatRange ¶
type FootprintValue ¶ added in v1.4.0
type Footprints ¶
type Footprints struct {
TimeWeights *TimeWeights `json:"timeWeights"`
Metrics []*MetricFootprints `json:"metrics"`
}
type HistoPoint ¶
type IntRangeOutput ¶
type JobFilter ¶
type JobFilter struct {
Tags []string `json:"tags,omitempty"`
JobID *StringInput `json:"jobId,omitempty"`
ArrayJobID *int `json:"arrayJobId,omitempty"`
User *StringInput `json:"user,omitempty"`
Project *StringInput `json:"project,omitempty"`
JobName *StringInput `json:"jobName,omitempty"`
Cluster *StringInput `json:"cluster,omitempty"`
Partition *StringInput `json:"partition,omitempty"`
Duration *schema.IntRange `json:"duration,omitempty"`
Energy *FloatRange `json:"energy,omitempty"`
MinRunningFor *int `json:"minRunningFor,omitempty"`
NumNodes *schema.IntRange `json:"numNodes,omitempty"`
NumAccelerators *schema.IntRange `json:"numAccelerators,omitempty"`
NumHWThreads *schema.IntRange `json:"numHWThreads,omitempty"`
StartTime *schema.TimeRange `json:"startTime,omitempty"`
State []schema.JobState `json:"state,omitempty"`
MetricStats []*MetricStatItem `json:"metricStats,omitempty"`
Exclusive *int `json:"exclusive,omitempty"`
Node *StringInput `json:"node,omitempty"`
}
type JobLinkResultList ¶
type JobMetricWithName ¶
type JobMetricWithName struct {
Name string `json:"name"`
Scope schema.MetricScope `json:"scope"`
Metric *schema.JobMetric `json:"metric"`
}
type JobResultList ¶
type JobStats ¶ added in v1.4.4
type JobStats struct {
Name string `json:"name"`
Stats *schema.MetricStatistics `json:"stats"`
}
type JobStatsWithScope ¶ added in v1.4.4
type JobStatsWithScope struct {
Name string `json:"name"`
Scope schema.MetricScope `json:"scope"`
Stats []*ScopedStats `json:"stats"`
}
type JobsStatistics ¶
type JobsStatistics struct {
ID string `json:"id"`
Name string `json:"name"`
TotalJobs int `json:"totalJobs"`
RunningJobs int `json:"runningJobs"`
ShortJobs int `json:"shortJobs"`
TotalWalltime int `json:"totalWalltime"`
TotalNodes int `json:"totalNodes"`
TotalNodeHours int `json:"totalNodeHours"`
TotalCores int `json:"totalCores"`
TotalCoreHours int `json:"totalCoreHours"`
TotalAccs int `json:"totalAccs"`
TotalAccHours int `json:"totalAccHours"`
HistDuration []*HistoPoint `json:"histDuration"`
HistNumNodes []*HistoPoint `json:"histNumNodes"`
HistNumCores []*HistoPoint `json:"histNumCores"`
HistNumAccs []*HistoPoint `json:"histNumAccs"`
HistMetrics []*MetricHistoPoints `json:"histMetrics"`
}
type MetricFootprints ¶
type MetricHistoPoint ¶ added in v1.3.0
type MetricHistoPoints ¶ added in v1.3.0
type MetricHistoPoints struct {
Metric string `json:"metric"`
Unit string `json:"unit"`
Stat *string `json:"stat,omitempty"`
Data []*MetricHistoPoint `json:"data,omitempty"`
}
type MetricStatItem ¶ added in v1.4.0
type MetricStatItem struct {
MetricName string `json:"metricName"`
Range *FloatRange `json:"range"`
}
type NodeMetrics ¶
type NodeMetrics struct {
Host string `json:"host"`
SubCluster string `json:"subCluster"`
Metrics []*JobMetricWithName `json:"metrics"`
}
type NodesResultList ¶ added in v1.4.3
type OrderByInput ¶
type OrderByInput struct {
Field string `json:"field"`
Type string `json:"type"`
Order SortDirectionEnum `json:"order"`
}
type PageRequest ¶
type ScopedStats ¶ added in v1.4.4
type ScopedStats struct {
Hostname string `json:"hostname"`
ID *string `json:"id,omitempty"`
Data *schema.MetricStatistics `json:"data"`
}
type SortByAggregate ¶ added in v1.2.0
type SortByAggregate string
const ( SortByAggregateTotalwalltime SortByAggregate = "TOTALWALLTIME" SortByAggregateTotaljobs SortByAggregate = "TOTALJOBS" SortByAggregateTotalnodes SortByAggregate = "TOTALNODES" SortByAggregateTotalnodehours SortByAggregate = "TOTALNODEHOURS" SortByAggregateTotalcores SortByAggregate = "TOTALCORES" SortByAggregateTotalcorehours SortByAggregate = "TOTALCOREHOURS" SortByAggregateTotalaccs SortByAggregate = "TOTALACCS" SortByAggregateTotalacchours SortByAggregate = "TOTALACCHOURS" )
func (SortByAggregate) IsValid ¶ added in v1.2.0
func (e SortByAggregate) IsValid() bool
func (SortByAggregate) MarshalGQL ¶ added in v1.2.0
func (e SortByAggregate) MarshalGQL(w io.Writer)
func (SortByAggregate) String ¶ added in v1.2.0
func (e SortByAggregate) String() string
func (*SortByAggregate) UnmarshalGQL ¶ added in v1.2.0
func (e *SortByAggregate) UnmarshalGQL(v any) error
type SortDirectionEnum ¶
type SortDirectionEnum string
const ( SortDirectionEnumDesc SortDirectionEnum = "DESC" SortDirectionEnumAsc SortDirectionEnum = "ASC" )
func (SortDirectionEnum) IsValid ¶
func (e SortDirectionEnum) IsValid() bool
func (SortDirectionEnum) MarshalGQL ¶
func (e SortDirectionEnum) MarshalGQL(w io.Writer)
func (SortDirectionEnum) String ¶
func (e SortDirectionEnum) String() string
func (*SortDirectionEnum) UnmarshalGQL ¶
func (e *SortDirectionEnum) UnmarshalGQL(v any) error
type StringInput ¶
type TimeRangeOutput ¶
type TimeWeights ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.