Add GraphQL endpoint for counting jobs

This commit is contained in:
Lou Knauer
2022-02-19 10:28:29 +01:00
parent 2ca27a83b9
commit dcb3fd6a6a
8 changed files with 382 additions and 17 deletions

View File

@@ -126,6 +126,11 @@ type NodeMetrics {
metrics: [JobMetricWithName!]!
}
type Count {
name: String!
count: Int!
}
type Query {
clusters: [Cluster!]! # List of all clusters
tags: [Tag!]! # List of all tags
@@ -136,6 +141,7 @@ type Query {
jobs(filter: [JobFilter!], page: PageRequest, order: OrderByInput): JobResultList!
jobsStatistics(filter: [JobFilter!], groupBy: Aggregate): [JobsStatistics!]!
jobsCount(filter: [JobFilter]!, groupBy: Aggregate!, limit: Int): [Count!]!
rooflineHeatmap(filter: [JobFilter!]!, rows: Int!, cols: Int!, minX: Float!, minY: Float!, maxX: Float!, maxY: Float!): [[Float!]!]!