cc-backend/graph/schema.graphqls

167 lines
2.5 KiB
GraphQL
Raw Normal View History

type Job {
id: ID!
jobId: String!
userId: String!
projectId: String!
clusterId: String!
startTime: Time!
duration: Int!
numNodes: Int!
hasProfile: Boolean!
memUsed_max: Float
flopsAny_avg: Float
memBw_avg: Float
netBw_avg: Float
fileBw_avg: Float
2021-04-21 10:12:19 +02:00
tags: [JobTag!]
2021-04-07 09:19:21 +02:00
}
2021-04-22 15:00:54 +02:00
type Cluster {
clusterID: String!
processorType: String!
socketsPerNode: Int!
coresPerSocket: Int!
threadsPerCore: Int!
flopRateScalar: Int!
flopRateSimd: Int!
memoryBandwidth: Int!
metricConfig: [MetricConfig!]!
}
type MetricConfig {
name: String!
unit: String!
sampletime: Int!
peak: Int!
normal: Int!
caution: Int!
alert: Int!
}
2021-04-07 09:19:21 +02:00
type JobMetric {
unit: String!
scope: JobMetricScope!
timestep: Int!
series: [JobMetricSeries]!
}
enum JobMetricScope {
node
cpu
socket
}
type JobMetricSeries {
node_id: String!
statistics: JobMetricStatistics
data: [Float]!
}
type JobMetricStatistics {
avg: Float!
min: Float!
max: Float!
}
2021-04-14 18:53:18 +02:00
type JobTag {
id: ID!
tagType: String!
tagName: String!
}
type Query {
2021-04-22 15:00:54 +02:00
clusters: [Cluster!]!
jobById(jobId: String!): Job
jobs(filter: JobFilterList, page: PageRequest, order: OrderByInput): JobResultList!
jobsStatistics(filter: JobFilterList): JobsStatistics!
jobMetrics(jobId: String!, clusterId: String, startTime: Time, metrics: [String]): [JobMetricWithName]!
2021-04-14 18:53:18 +02:00
# Return all known tags or, if jobId is specified, only tags from this job
2021-04-21 10:12:19 +02:00
tags(jobId: String): [JobTag!]!
}
input JobFilterList {
list: [JobFilter]
}
input JobFilter {
tags: [ID!]
jobId: StringInput
userId: StringInput
projectId: StringInput
clusterId: StringInput
duration: IntRange
numNodes: IntRange
startTime: TimeRange
hasProfile: Boolean
}
input OrderByInput {
field: String!
order: SortDirectionEnum = ASC
}
enum SortDirectionEnum {
DESC
ASC
}
input StringInput {
eq: String
contains: String
startsWith: String
endsWith: String
}
input IntRange {
from: Int!
to: Int!
}
input FloatRange {
from: Float!
to: Float!
}
input TimeRange {
from: Time!
to: Time!
}
type JobResultList {
items: [Job]!
offset: Int
limit: Int
count: Int
}
2021-04-07 09:19:21 +02:00
type JobMetricWithName {
name: String!
metric: JobMetric!
}
type HistoPoint {
count: Int!
value: Int!
}
type JobsStatistics {
totalJobs: Int!
shortJobs: Int!
totalWalltime: Int!
totalCoreHours: Int!
histWalltime: [HistoPoint]!
histNumNodes: [HistoPoint]!
}
input PageRequest {
2021-03-31 08:50:53 +02:00
itemsPerPage: Int
page: Int
}
scalar Time