@connectci/xdmod-charts 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/caption.d.ts +68 -0
- package/dist/caption.js +118 -0
- package/dist/csv.d.ts +22 -0
- package/dist/csv.js +95 -0
- package/dist/fixtures.d.ts +58 -0
- package/dist/fixtures.js +1 -0
- package/dist/format.d.ts +6 -0
- package/dist/format.js +39 -0
- package/dist/generated/palette.d.ts +4 -0
- package/dist/generated/palette.js +23 -0
- package/dist/generated/statistics.d.ts +6 -0
- package/dist/generated/statistics.js +217 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +8 -0
- package/dist/measure.d.ts +7 -0
- package/dist/measure.js +14 -0
- package/dist/palette.d.ts +11 -0
- package/dist/palette.js +19 -0
- package/dist/parse.d.ts +3 -0
- package/dist/parse.js +82 -0
- package/dist/payload.d.ts +81 -0
- package/dist/payload.js +1 -0
- package/dist/view.d.ts +58 -0
- package/dist/view.js +243 -0
- package/fixtures/README.md +13 -0
- package/fixtures/aggregate-empty.json +85 -0
- package/fixtures/aggregate-fills-empty-buckets.json +118 -0
- package/fixtures/aggregate-has-more-others-count.json +103 -0
- package/fixtures/aggregate-incomplete-with-probe-day.json +108 -0
- package/fixtures/aggregate-jobs-by-resource.json +66 -0
- package/fixtures/aggregate-marks-resources-that-stop.json +125 -0
- package/fixtures/aggregate-no-fill-for-average.json +115 -0
- package/fixtures/aggregate-no-fill-incomplete-buckets.json +110 -0
- package/fixtures/aggregate-no-fill-when-bucket-filtered.json +114 -0
- package/fixtures/aggregate-no-fill-when-more.json +110 -0
- package/fixtures/aggregate-no-fill-with-offset.json +110 -0
- package/fixtures/aggregate-nominal-not-reordered.json +107 -0
- package/fixtures/aggregate-offset-page.json +103 -0
- package/fixtures/aggregate-ordered-bucket-order.json +116 -0
- package/fixtures/aggregate-probe-reaches-end.json +108 -0
- package/fixtures/aggregate-unknown-bucket-last.json +115 -0
- package/fixtures/aggregate-unordered.json +103 -0
- package/fixtures/average-leaves-gaps.json +125 -0
- package/fixtures/calendar-december-into-january.json +113 -0
- package/fixtures/calendar-range-ends-at-month-end.json +108 -0
- package/fixtures/cpu-hours-by-resource-incomplete.json +125 -0
- package/fixtures/early-end-average-by-resource-not-filled.json +147 -0
- package/fixtures/early-end-average-other-dimension.json +144 -0
- package/fixtures/early-end-daily-by-queue.json +180 -0
- package/fixtures/early-end-daily-series-stops.json +139 -0
- package/fixtures/early-end-day-inside-last-period.json +147 -0
- package/fixtures/early-end-fill-stops-at-last-day.json +145 -0
- package/fixtures/early-end-fills-to-resource-last-day.json +149 -0
- package/fixtures/early-end-other-dimension-never-filled.json +145 -0
- package/fixtures/early-end-probe-window-too-short.json +144 -0
- package/fixtures/early-end-resource-retired.json +144 -0
- package/fixtures/early-end-several-resources.json +205 -0
- package/fixtures/early-end-without-probe.json +140 -0
- package/fixtures/label-stripped-from-description.json +95 -0
- package/fixtures/no-series-values.json +86 -0
- package/fixtures/partial-last-day.json +119 -0
- package/fixtures/partial-last-month.json +122 -0
- package/fixtures/probe-day-after-range.json +113 -0
- package/fixtures/probe-day-inside-last-month.json +113 -0
- package/fixtures/probe-day-last-day-of-period.json +113 -0
- package/fixtures/rank-prefixes-on-series.json +130 -0
- package/fixtures/series-ended-before-probe-day.json +188 -0
- package/fixtures/timeseries-complete-last-period.json +113 -0
- package/fixtures/timeseries-month-gaps.json +121 -0
- package/fixtures/timeseries-more-series-than-palette.json +328 -0
- package/fixtures/warnings-all-three.json +104 -0
- package/fixtures/week-total-incomplete-last.json +135 -0
- package/fixtures/week-total-midweek-end.json +130 -0
- package/fixtures/week-total-midweek-start.json +129 -0
- package/package.json +32 -4
- package/rules/README.md +29 -0
- package/rules/palette.json +4 -0
- package/rules/statistics.json +217 -0
- package/schema/chart-payload.v1.json +320 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Monthly job_count by resource with ten series, more than the palette's eight colours: the builder passes every series through in XDMoD's order; capping is the adapter's and the client's job.",
|
|
3
|
+
"producers": [
|
|
4
|
+
"ts",
|
|
5
|
+
"py"
|
|
6
|
+
],
|
|
7
|
+
"input": {
|
|
8
|
+
"request": {
|
|
9
|
+
"realm": "Jobs",
|
|
10
|
+
"statistic": "job_count",
|
|
11
|
+
"group_by": "resource",
|
|
12
|
+
"dataset_type": "timeseries",
|
|
13
|
+
"start_date": "2026-08-01",
|
|
14
|
+
"end_date": "2026-10-31",
|
|
15
|
+
"filters_notes": [],
|
|
16
|
+
"dimension_filtered": false,
|
|
17
|
+
"offset": 0,
|
|
18
|
+
"limit": 10,
|
|
19
|
+
"unit": "Month"
|
|
20
|
+
},
|
|
21
|
+
"label": "Number of Jobs Ended",
|
|
22
|
+
"description": "Number of Jobs Ended: The total number of jobs that ended during the selected period.",
|
|
23
|
+
"today": "2026-11-27",
|
|
24
|
+
"others_count": 0,
|
|
25
|
+
"has_more": false,
|
|
26
|
+
"latest_data_day": null,
|
|
27
|
+
"resource_days": null,
|
|
28
|
+
"link": null,
|
|
29
|
+
"time_zone": null,
|
|
30
|
+
"instance": null,
|
|
31
|
+
"series": [
|
|
32
|
+
{
|
|
33
|
+
"name": "cluster-a",
|
|
34
|
+
"values": {
|
|
35
|
+
"2026-08-01": 100,
|
|
36
|
+
"2026-09-01": 101,
|
|
37
|
+
"2026-10-01": 102
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "cluster-b",
|
|
42
|
+
"values": {
|
|
43
|
+
"2026-08-01": 90,
|
|
44
|
+
"2026-09-01": 91,
|
|
45
|
+
"2026-10-01": 92
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "cluster-c",
|
|
50
|
+
"values": {
|
|
51
|
+
"2026-08-01": 80,
|
|
52
|
+
"2026-09-01": 81,
|
|
53
|
+
"2026-10-01": 82
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "cluster-d",
|
|
58
|
+
"values": {
|
|
59
|
+
"2026-08-01": 70,
|
|
60
|
+
"2026-09-01": 71,
|
|
61
|
+
"2026-10-01": 72
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "cluster-e",
|
|
66
|
+
"values": {
|
|
67
|
+
"2026-08-01": 60,
|
|
68
|
+
"2026-09-01": 61,
|
|
69
|
+
"2026-10-01": 62
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "cluster-f",
|
|
74
|
+
"values": {
|
|
75
|
+
"2026-08-01": 50,
|
|
76
|
+
"2026-09-01": 51,
|
|
77
|
+
"2026-10-01": 52
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "cluster-g",
|
|
82
|
+
"values": {
|
|
83
|
+
"2026-08-01": 40,
|
|
84
|
+
"2026-09-01": 41,
|
|
85
|
+
"2026-10-01": 42
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "cluster-h",
|
|
90
|
+
"values": {
|
|
91
|
+
"2026-08-01": 30,
|
|
92
|
+
"2026-09-01": 31,
|
|
93
|
+
"2026-10-01": 32
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "cluster-i",
|
|
98
|
+
"values": {
|
|
99
|
+
"2026-08-01": 20,
|
|
100
|
+
"2026-09-01": 21,
|
|
101
|
+
"2026-10-01": 22
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "cluster-j",
|
|
106
|
+
"values": {
|
|
107
|
+
"2026-08-01": 10,
|
|
108
|
+
"2026-09-01": 11,
|
|
109
|
+
"2026-10-01": 12
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"expected": {
|
|
115
|
+
"version": 1,
|
|
116
|
+
"realm": "Jobs",
|
|
117
|
+
"statistic": "job_count",
|
|
118
|
+
"group_by": "resource",
|
|
119
|
+
"dataset_type": "timeseries",
|
|
120
|
+
"requested": {
|
|
121
|
+
"start": "2026-08-01",
|
|
122
|
+
"end": "2026-10-31"
|
|
123
|
+
},
|
|
124
|
+
"counted": {
|
|
125
|
+
"start": "2026-08-01",
|
|
126
|
+
"end": "2026-10-31"
|
|
127
|
+
},
|
|
128
|
+
"last_period_incomplete": false,
|
|
129
|
+
"measure": {
|
|
130
|
+
"label": "Number of Jobs Ended",
|
|
131
|
+
"description": "The total number of jobs that ended during the selected period.",
|
|
132
|
+
"kind": "total",
|
|
133
|
+
"missing": "zero",
|
|
134
|
+
"unit": "jobs"
|
|
135
|
+
},
|
|
136
|
+
"dimension": {
|
|
137
|
+
"name": "resource",
|
|
138
|
+
"ordered": false
|
|
139
|
+
},
|
|
140
|
+
"filters": {
|
|
141
|
+
"notes": []
|
|
142
|
+
},
|
|
143
|
+
"offset": 0,
|
|
144
|
+
"others_count": 0,
|
|
145
|
+
"has_more": false,
|
|
146
|
+
"ranked_by": "value",
|
|
147
|
+
"link": null,
|
|
148
|
+
"source": "XDMoD",
|
|
149
|
+
"retrieved": "2026-11-27",
|
|
150
|
+
"unit": "Month",
|
|
151
|
+
"warnings": [],
|
|
152
|
+
"data_through": "2026-10-01",
|
|
153
|
+
"data_through_precision": "period",
|
|
154
|
+
"last_data_period_partial": false,
|
|
155
|
+
"series": [
|
|
156
|
+
{
|
|
157
|
+
"name": "cluster-a",
|
|
158
|
+
"points": [
|
|
159
|
+
{
|
|
160
|
+
"start": "2026-08-01",
|
|
161
|
+
"value": 100
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"start": "2026-09-01",
|
|
165
|
+
"value": 101
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"start": "2026-10-01",
|
|
169
|
+
"value": 102
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "cluster-b",
|
|
175
|
+
"points": [
|
|
176
|
+
{
|
|
177
|
+
"start": "2026-08-01",
|
|
178
|
+
"value": 90
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"start": "2026-09-01",
|
|
182
|
+
"value": 91
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"start": "2026-10-01",
|
|
186
|
+
"value": 92
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "cluster-c",
|
|
192
|
+
"points": [
|
|
193
|
+
{
|
|
194
|
+
"start": "2026-08-01",
|
|
195
|
+
"value": 80
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"start": "2026-09-01",
|
|
199
|
+
"value": 81
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"start": "2026-10-01",
|
|
203
|
+
"value": 82
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "cluster-d",
|
|
209
|
+
"points": [
|
|
210
|
+
{
|
|
211
|
+
"start": "2026-08-01",
|
|
212
|
+
"value": 70
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"start": "2026-09-01",
|
|
216
|
+
"value": 71
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"start": "2026-10-01",
|
|
220
|
+
"value": 72
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "cluster-e",
|
|
226
|
+
"points": [
|
|
227
|
+
{
|
|
228
|
+
"start": "2026-08-01",
|
|
229
|
+
"value": 60
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"start": "2026-09-01",
|
|
233
|
+
"value": 61
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"start": "2026-10-01",
|
|
237
|
+
"value": 62
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "cluster-f",
|
|
243
|
+
"points": [
|
|
244
|
+
{
|
|
245
|
+
"start": "2026-08-01",
|
|
246
|
+
"value": 50
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"start": "2026-09-01",
|
|
250
|
+
"value": 51
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"start": "2026-10-01",
|
|
254
|
+
"value": 52
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "cluster-g",
|
|
260
|
+
"points": [
|
|
261
|
+
{
|
|
262
|
+
"start": "2026-08-01",
|
|
263
|
+
"value": 40
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"start": "2026-09-01",
|
|
267
|
+
"value": 41
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"start": "2026-10-01",
|
|
271
|
+
"value": 42
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "cluster-h",
|
|
277
|
+
"points": [
|
|
278
|
+
{
|
|
279
|
+
"start": "2026-08-01",
|
|
280
|
+
"value": 30
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"start": "2026-09-01",
|
|
284
|
+
"value": 31
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"start": "2026-10-01",
|
|
288
|
+
"value": 32
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "cluster-i",
|
|
294
|
+
"points": [
|
|
295
|
+
{
|
|
296
|
+
"start": "2026-08-01",
|
|
297
|
+
"value": 20
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"start": "2026-09-01",
|
|
301
|
+
"value": 21
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"start": "2026-10-01",
|
|
305
|
+
"value": 22
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "cluster-j",
|
|
311
|
+
"points": [
|
|
312
|
+
{
|
|
313
|
+
"start": "2026-08-01",
|
|
314
|
+
"value": 10
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"start": "2026-09-01",
|
|
318
|
+
"value": 11
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"start": "2026-10-01",
|
|
322
|
+
"value": 12
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Aggregate avg_cpu_hours by resource through today: all three warnings, in rule 9's order. avg_cpu_hours is not in statistics.json, so the prefix fallback makes it an average and there is no unit.",
|
|
3
|
+
"producers": [
|
|
4
|
+
"ts",
|
|
5
|
+
"py"
|
|
6
|
+
],
|
|
7
|
+
"input": {
|
|
8
|
+
"request": {
|
|
9
|
+
"realm": "Jobs",
|
|
10
|
+
"statistic": "avg_cpu_hours",
|
|
11
|
+
"group_by": "resource",
|
|
12
|
+
"dataset_type": "aggregate",
|
|
13
|
+
"start_date": "2026-11-01",
|
|
14
|
+
"end_date": "2026-11-27",
|
|
15
|
+
"filters_notes": [],
|
|
16
|
+
"dimension_filtered": false,
|
|
17
|
+
"offset": 0,
|
|
18
|
+
"limit": 8
|
|
19
|
+
},
|
|
20
|
+
"label": "CPU Hours: Per Job",
|
|
21
|
+
"description": "CPU Hours: Per Job: The average core time, in hours, of a job.",
|
|
22
|
+
"today": "2026-11-27",
|
|
23
|
+
"others_count": 0,
|
|
24
|
+
"has_more": false,
|
|
25
|
+
"latest_data_day": null,
|
|
26
|
+
"resource_days": null,
|
|
27
|
+
"link": null,
|
|
28
|
+
"time_zone": null,
|
|
29
|
+
"instance": null,
|
|
30
|
+
"categories": [
|
|
31
|
+
{
|
|
32
|
+
"name": "1. cluster-a",
|
|
33
|
+
"value": 3.5
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "2. cluster-b",
|
|
37
|
+
"value": 1.25
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"expected": {
|
|
42
|
+
"version": 1,
|
|
43
|
+
"realm": "Jobs",
|
|
44
|
+
"statistic": "avg_cpu_hours",
|
|
45
|
+
"group_by": "resource",
|
|
46
|
+
"dataset_type": "aggregate",
|
|
47
|
+
"requested": {
|
|
48
|
+
"start": "2026-11-01",
|
|
49
|
+
"end": "2026-11-27"
|
|
50
|
+
},
|
|
51
|
+
"counted": {
|
|
52
|
+
"start": "2026-11-01",
|
|
53
|
+
"end": "2026-11-27"
|
|
54
|
+
},
|
|
55
|
+
"last_period_incomplete": true,
|
|
56
|
+
"measure": {
|
|
57
|
+
"label": "CPU Hours: Per Job",
|
|
58
|
+
"description": "The average core time, in hours, of a job.",
|
|
59
|
+
"kind": "average",
|
|
60
|
+
"missing": "gap"
|
|
61
|
+
},
|
|
62
|
+
"dimension": {
|
|
63
|
+
"name": "resource",
|
|
64
|
+
"ordered": false
|
|
65
|
+
},
|
|
66
|
+
"filters": {
|
|
67
|
+
"notes": []
|
|
68
|
+
},
|
|
69
|
+
"offset": 0,
|
|
70
|
+
"others_count": 0,
|
|
71
|
+
"has_more": false,
|
|
72
|
+
"ranked_by": "value",
|
|
73
|
+
"link": null,
|
|
74
|
+
"source": "XDMoD",
|
|
75
|
+
"retrieved": "2026-11-27",
|
|
76
|
+
"warnings": [
|
|
77
|
+
{
|
|
78
|
+
"code": "waiting-not-counted",
|
|
79
|
+
"text": "XDMoD counts a job when it ends, so jobs still waiting or running aren't counted, and the last period may be incomplete."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"code": "not-comparable-across-resources",
|
|
83
|
+
"text": "CPU hours don't allow for differences in per-core speed, so they aren't comparable across resources."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"code": "mean-of-jobs",
|
|
87
|
+
"text": "This is an average per job, so a few long jobs can pull it up."
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"data_through": null,
|
|
91
|
+
"data_through_precision": null,
|
|
92
|
+
"last_data_period_partial": false,
|
|
93
|
+
"categories": [
|
|
94
|
+
{
|
|
95
|
+
"name": "cluster-a",
|
|
96
|
+
"value": 3.5
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "cluster-b",
|
|
100
|
+
"value": 1.25
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Weekly job_count by queue through today, a Friday: the today cap cuts the last week, so it is incomplete and the waiting warning applies; counted still ends on Sunday; the latest data day sharpens data_through inside the last week, so that week is partial.",
|
|
3
|
+
"producers": [
|
|
4
|
+
"py"
|
|
5
|
+
],
|
|
6
|
+
"input": {
|
|
7
|
+
"request": {
|
|
8
|
+
"realm": "Jobs",
|
|
9
|
+
"statistic": "job_count",
|
|
10
|
+
"group_by": "queue",
|
|
11
|
+
"dataset_type": "timeseries",
|
|
12
|
+
"start_date": "2026-11-09",
|
|
13
|
+
"end_date": "2026-11-27",
|
|
14
|
+
"filters_notes": [],
|
|
15
|
+
"dimension_filtered": false,
|
|
16
|
+
"offset": 0,
|
|
17
|
+
"limit": 8,
|
|
18
|
+
"unit": "Week"
|
|
19
|
+
},
|
|
20
|
+
"label": "Number of Jobs Ended",
|
|
21
|
+
"description": "Number of Jobs Ended: The total number of jobs that ended during the selected period.",
|
|
22
|
+
"today": "2026-11-27",
|
|
23
|
+
"others_count": 0,
|
|
24
|
+
"has_more": false,
|
|
25
|
+
"latest_data_day": "2026-11-26",
|
|
26
|
+
"resource_days": null,
|
|
27
|
+
"link": null,
|
|
28
|
+
"time_zone": null,
|
|
29
|
+
"instance": null,
|
|
30
|
+
"series": [
|
|
31
|
+
{
|
|
32
|
+
"name": "queue-a",
|
|
33
|
+
"values": {
|
|
34
|
+
"2026-11-09": 4,
|
|
35
|
+
"2026-11-13": 6,
|
|
36
|
+
"2026-11-16": 3,
|
|
37
|
+
"2026-11-23": 2,
|
|
38
|
+
"2026-11-26": 5
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "queue-b",
|
|
43
|
+
"values": {
|
|
44
|
+
"2026-11-10": 1
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"expected": {
|
|
50
|
+
"version": 1,
|
|
51
|
+
"realm": "Jobs",
|
|
52
|
+
"statistic": "job_count",
|
|
53
|
+
"group_by": "queue",
|
|
54
|
+
"dataset_type": "timeseries",
|
|
55
|
+
"requested": {
|
|
56
|
+
"start": "2026-11-09",
|
|
57
|
+
"end": "2026-11-27"
|
|
58
|
+
},
|
|
59
|
+
"counted": {
|
|
60
|
+
"start": "2026-11-09",
|
|
61
|
+
"end": "2026-11-29"
|
|
62
|
+
},
|
|
63
|
+
"last_period_incomplete": true,
|
|
64
|
+
"measure": {
|
|
65
|
+
"label": "Number of Jobs Ended",
|
|
66
|
+
"description": "The total number of jobs that ended during the selected period.",
|
|
67
|
+
"kind": "total",
|
|
68
|
+
"missing": "zero",
|
|
69
|
+
"unit": "jobs"
|
|
70
|
+
},
|
|
71
|
+
"dimension": {
|
|
72
|
+
"name": "queue",
|
|
73
|
+
"ordered": false
|
|
74
|
+
},
|
|
75
|
+
"filters": {
|
|
76
|
+
"notes": []
|
|
77
|
+
},
|
|
78
|
+
"offset": 0,
|
|
79
|
+
"others_count": 0,
|
|
80
|
+
"has_more": false,
|
|
81
|
+
"ranked_by": "value",
|
|
82
|
+
"link": null,
|
|
83
|
+
"source": "XDMoD",
|
|
84
|
+
"retrieved": "2026-11-27",
|
|
85
|
+
"unit": "Week",
|
|
86
|
+
"warnings": [
|
|
87
|
+
{
|
|
88
|
+
"code": "waiting-not-counted",
|
|
89
|
+
"text": "XDMoD counts a job when it ends, so jobs still waiting or running aren't counted, and the last period may be incomplete."
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"data_through": "2026-11-26",
|
|
93
|
+
"data_through_precision": "day",
|
|
94
|
+
"last_data_period_partial": true,
|
|
95
|
+
"series": [
|
|
96
|
+
{
|
|
97
|
+
"name": "queue-a",
|
|
98
|
+
"points": [
|
|
99
|
+
{
|
|
100
|
+
"start": "2026-11-09",
|
|
101
|
+
"value": 10
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"start": "2026-11-16",
|
|
105
|
+
"value": 3
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"start": "2026-11-23",
|
|
109
|
+
"value": 7
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "queue-b",
|
|
115
|
+
"points": [
|
|
116
|
+
{
|
|
117
|
+
"start": "2026-11-09",
|
|
118
|
+
"value": 1
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"start": "2026-11-16",
|
|
122
|
+
"value": null
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"start": "2026-11-23",
|
|
126
|
+
"value": null
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"data_through": "2026-11-09",
|
|
130
|
+
"data_through_precision": "period",
|
|
131
|
+
"data_through_source": "series"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Weekly total_cpu_hours by queue, range ending on a Wednesday: counted ends the Sunday after, days after the requested end are in the last week, fractional days sum, a queue with no later week is marked by its own last week (source series).",
|
|
3
|
+
"producers": [
|
|
4
|
+
"py"
|
|
5
|
+
],
|
|
6
|
+
"input": {
|
|
7
|
+
"request": {
|
|
8
|
+
"realm": "Jobs",
|
|
9
|
+
"statistic": "total_cpu_hours",
|
|
10
|
+
"group_by": "queue",
|
|
11
|
+
"dataset_type": "timeseries",
|
|
12
|
+
"start_date": "2026-10-05",
|
|
13
|
+
"end_date": "2026-10-21",
|
|
14
|
+
"filters_notes": [],
|
|
15
|
+
"dimension_filtered": false,
|
|
16
|
+
"offset": 0,
|
|
17
|
+
"limit": 8,
|
|
18
|
+
"unit": "Week"
|
|
19
|
+
},
|
|
20
|
+
"label": "CPU Hours: Total",
|
|
21
|
+
"description": "CPU Hours: Total: The total core time, in hours, of jobs that ended.",
|
|
22
|
+
"today": "2026-11-27",
|
|
23
|
+
"others_count": 0,
|
|
24
|
+
"has_more": false,
|
|
25
|
+
"latest_data_day": null,
|
|
26
|
+
"resource_days": null,
|
|
27
|
+
"link": null,
|
|
28
|
+
"time_zone": null,
|
|
29
|
+
"instance": null,
|
|
30
|
+
"series": [
|
|
31
|
+
{
|
|
32
|
+
"name": "queue-a",
|
|
33
|
+
"values": {
|
|
34
|
+
"2026-10-05": 1.5,
|
|
35
|
+
"2026-10-11": 2.25,
|
|
36
|
+
"2026-10-21": 0.5,
|
|
37
|
+
"2026-10-24": 4
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "queue-b",
|
|
42
|
+
"values": {
|
|
43
|
+
"2026-10-13": 10,
|
|
44
|
+
"2026-10-14": 0
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"expected": {
|
|
50
|
+
"version": 1,
|
|
51
|
+
"realm": "Jobs",
|
|
52
|
+
"statistic": "total_cpu_hours",
|
|
53
|
+
"group_by": "queue",
|
|
54
|
+
"dataset_type": "timeseries",
|
|
55
|
+
"requested": {
|
|
56
|
+
"start": "2026-10-05",
|
|
57
|
+
"end": "2026-10-21"
|
|
58
|
+
},
|
|
59
|
+
"counted": {
|
|
60
|
+
"start": "2026-10-05",
|
|
61
|
+
"end": "2026-10-25"
|
|
62
|
+
},
|
|
63
|
+
"last_period_incomplete": false,
|
|
64
|
+
"measure": {
|
|
65
|
+
"label": "CPU Hours: Total",
|
|
66
|
+
"description": "The total core time, in hours, of jobs that ended.",
|
|
67
|
+
"kind": "total",
|
|
68
|
+
"missing": "zero",
|
|
69
|
+
"unit": "core-hours"
|
|
70
|
+
},
|
|
71
|
+
"dimension": {
|
|
72
|
+
"name": "queue",
|
|
73
|
+
"ordered": false
|
|
74
|
+
},
|
|
75
|
+
"filters": {
|
|
76
|
+
"notes": []
|
|
77
|
+
},
|
|
78
|
+
"offset": 0,
|
|
79
|
+
"others_count": 0,
|
|
80
|
+
"has_more": false,
|
|
81
|
+
"ranked_by": "value",
|
|
82
|
+
"link": null,
|
|
83
|
+
"source": "XDMoD",
|
|
84
|
+
"retrieved": "2026-11-27",
|
|
85
|
+
"unit": "Week",
|
|
86
|
+
"warnings": [],
|
|
87
|
+
"data_through": "2026-10-19",
|
|
88
|
+
"data_through_precision": "period",
|
|
89
|
+
"last_data_period_partial": false,
|
|
90
|
+
"series": [
|
|
91
|
+
{
|
|
92
|
+
"name": "queue-a",
|
|
93
|
+
"points": [
|
|
94
|
+
{
|
|
95
|
+
"start": "2026-10-05",
|
|
96
|
+
"value": 3.75
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"start": "2026-10-12",
|
|
100
|
+
"value": null
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"start": "2026-10-19",
|
|
104
|
+
"value": 4.5
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "queue-b",
|
|
110
|
+
"points": [
|
|
111
|
+
{
|
|
112
|
+
"start": "2026-10-05",
|
|
113
|
+
"value": null
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"start": "2026-10-12",
|
|
117
|
+
"value": 10
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"start": "2026-10-19",
|
|
121
|
+
"value": null
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"data_through": "2026-10-12",
|
|
125
|
+
"data_through_precision": "period",
|
|
126
|
+
"data_through_source": "series"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
}
|