Skip to content

Commit

Permalink
Merge pull request #233 from ClusterCockpit/214_user_status_histograms
Browse files Browse the repository at this point in the history
214 user status histograms
  • Loading branch information
moebiusband73 authored Feb 8, 2024
2 parents 04f37a8 + 21dde87 commit 63f3dc9
Show file tree
Hide file tree
Showing 14 changed files with 1,272 additions and 120 deletions.
16 changes: 15 additions & 1 deletion api/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ type Query {
jobsFootprints(filter: [JobFilter!], metrics: [String!]!): Footprints

jobs(filter: [JobFilter!], page: PageRequest, order: OrderByInput): JobResultList!
jobsStatistics(filter: [JobFilter!], page: PageRequest, sortBy: SortByAggregate, groupBy: Aggregate): [JobsStatistics!]!
jobsStatistics(filter: [JobFilter!], metrics: [String!], page: PageRequest, sortBy: SortByAggregate, groupBy: Aggregate): [JobsStatistics!]!

rooflineHeatmap(filter: [JobFilter!]!, rows: Int!, cols: Int!, minX: Float!, minY: Float!, maxX: Float!, maxY: Float!): [[Float!]!]!

Expand Down Expand Up @@ -291,6 +291,19 @@ type HistoPoint {
value: Int!
}

type MetricHistoPoints {
metric: String!
unit: String!
data: [MetricHistoPoint!]
}

type MetricHistoPoint {
bin: Int
count: Int!
min: Int
max: Int
}

type JobsStatistics {
id: ID! # If `groupBy` was used, ID of the user/project/cluster
name: String! # if User-Statistics: Given Name of Account (ID) Owner
Expand All @@ -308,6 +321,7 @@ type JobsStatistics {
histNumNodes: [HistoPoint!]! # value: number of nodes, count: number of jobs with that number of nodes
histNumCores: [HistoPoint!]! # value: number of cores, count: number of jobs with that number of cores
histNumAccs: [HistoPoint!]! # value: number of accs, count: number of jobs with that number of accs
histMetrics: [MetricHistoPoints!]! # metric: metricname, data array of histopoints: value: metric average bin, count: number of jobs with that metric average
}

input PageRequest {
Expand Down
Loading

0 comments on commit 63f3dc9

Please sign in to comment.