Update GraphQL schema

This commit is contained in:
Lou Knauer
2021-09-23 11:45:20 +02:00
parent 341091a796
commit e4c0b3e955
7 changed files with 1058 additions and 202 deletions

View File

@@ -44,7 +44,7 @@ type JobFilter struct {
Duration *IntRange `json:"duration"`
NumNodes *IntRange `json:"numNodes"`
StartTime *TimeRange `json:"startTime"`
HasProfile *bool `json:"hasProfile"`
IsRunning *bool `json:"isRunning"`
FlopsAnyAvg *FloatRange `json:"flopsAnyAvg"`
MemBwAvg *FloatRange `json:"memBwAvg"`
LoadAvg *FloatRange `json:"loadAvg"`
@@ -111,8 +111,8 @@ type OrderByInput struct {
}
type PageRequest struct {
ItemsPerPage *int `json:"itemsPerPage"`
Page *int `json:"page"`
ItemsPerPage int `json:"itemsPerPage"`
Page int `json:"page"`
}
type StringInput struct {
@@ -132,6 +132,13 @@ type TimeRangeOutput struct {
To time.Time `json:"to"`
}
type UserStats struct {
UserID string `json:"userId"`
TotalJobs int `json:"totalJobs"`
TotalWalltime float64 `json:"totalWalltime"`
TotalCoreHours float64 `json:"totalCoreHours"`
}
type JobMetricScope string
const (