Skip to content

Commit 1b593ea

Browse files
committed
Fix config formatting
1 parent 085d978 commit 1b593ea

File tree

1 file changed

+84
-84
lines changed

1 file changed

+84
-84
lines changed

simvue/config/simvue_config_schema.json

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@
1313
},
1414
"DefaultRunSpecifications": {
1515
"properties": {
16-
"name": {
17-
"anyOf": [
18-
{
19-
"type": "string"
20-
},
21-
{
22-
"type": "null"
23-
}
24-
],
25-
"default": null,
26-
"title": "Name"
27-
},
2816
"description": {
2917
"anyOf": [
3018
{
@@ -37,21 +25,6 @@
3725
"default": null,
3826
"title": "Description"
3927
},
40-
"tags": {
41-
"anyOf": [
42-
{
43-
"items": {
44-
"type": "string"
45-
},
46-
"type": "array"
47-
},
48-
{
49-
"type": "null"
50-
}
51-
],
52-
"default": null,
53-
"title": "Tags"
54-
},
5528
"folder": {
5629
"default": "/",
5730
"pattern": "^/.*",
@@ -95,6 +68,33 @@
9568
],
9669
"title": "Mode",
9770
"type": "string"
71+
},
72+
"name": {
73+
"anyOf": [
74+
{
75+
"type": "string"
76+
},
77+
{
78+
"type": "null"
79+
}
80+
],
81+
"default": null,
82+
"title": "Name"
83+
},
84+
"tags": {
85+
"anyOf": [
86+
{
87+
"items": {
88+
"type": "string"
89+
},
90+
"type": "array"
91+
},
92+
{
93+
"type": "null"
94+
}
95+
],
96+
"default": null,
97+
"title": "Tags"
9898
}
9999
},
100100
"title": "DefaultRunSpecifications",
@@ -103,6 +103,18 @@
103103
"EcoConfig": {
104104
"description": "Configurations for CO2 emission metrics gathering.\n\nParameters\n----------\nco2_signal_api_token: str | None, optional\n the CO2 signal API token (Recommended), default is None\ncpu_thermal_design_power: int | None, optional\n the TDP for the CPU\ngpu_thermal_design_power: int | None, optional\n the TDP for each GPU",
105105
"properties": {
106+
"co2_intensity": {
107+
"anyOf": [
108+
{
109+
"type": "number"
110+
},
111+
{
112+
"type": "null"
113+
}
114+
],
115+
"default": null,
116+
"title": "Co2 Intensity"
117+
},
106118
"co2_signal_api_token": {
107119
"anyOf": [
108120
{
@@ -117,7 +129,7 @@
117129
"default": null,
118130
"title": "Co2 Signal Api Token"
119131
},
120-
"cpu_thermal_design_power": {
132+
"cpu_n_cores": {
121133
"anyOf": [
122134
{
123135
"exclusiveMinimum": 0,
@@ -128,9 +140,9 @@
128140
}
129141
],
130142
"default": null,
131-
"title": "Cpu Thermal Design Power"
143+
"title": "Cpu N Cores"
132144
},
133-
"cpu_n_cores": {
145+
"cpu_thermal_design_power": {
134146
"anyOf": [
135147
{
136148
"exclusiveMinimum": 0,
@@ -141,7 +153,7 @@
141153
}
142154
],
143155
"default": null,
144-
"title": "Cpu N Cores"
156+
"title": "Cpu Thermal Design Power"
145157
},
146158
"gpu_thermal_design_power": {
147159
"anyOf": [
@@ -176,25 +188,18 @@
176188
],
177189
"default": "1 hour",
178190
"title": "Intensity Refresh Interval"
179-
},
180-
"co2_intensity": {
181-
"anyOf": [
182-
{
183-
"type": "number"
184-
},
185-
{
186-
"type": "null"
187-
}
188-
],
189-
"default": null,
190-
"title": "Co2 Intensity"
191191
}
192192
},
193193
"title": "EcoConfig",
194194
"type": "object"
195195
},
196196
"MetricsSpecifications": {
197197
"properties": {
198+
"enable_emission_metrics": {
199+
"default": false,
200+
"title": "Enable Emission Metrics",
201+
"type": "boolean"
202+
},
198203
"system_metrics_interval": {
199204
"anyOf": [
200205
{
@@ -207,11 +212,6 @@
207212
],
208213
"default": -1,
209214
"title": "System Metrics Interval"
210-
},
211-
"enable_emission_metrics": {
212-
"default": false,
213-
"title": "Enable Emission Metrics",
214-
"type": "boolean"
215215
}
216216
},
217217
"title": "MetricsSpecifications",
@@ -238,31 +238,31 @@
238238
},
239239
"ServerSpecifications": {
240240
"properties": {
241-
"url": {
241+
"token": {
242242
"anyOf": [
243243
{
244-
"format": "uri",
245-
"minLength": 1,
246-
"type": "string"
244+
"format": "password",
245+
"type": "string",
246+
"writeOnly": true
247247
},
248248
{
249249
"type": "null"
250250
}
251251
],
252-
"title": "Url"
252+
"title": "Token"
253253
},
254-
"token": {
254+
"url": {
255255
"anyOf": [
256256
{
257-
"format": "password",
258-
"type": "string",
259-
"writeOnly": true
257+
"format": "uri",
258+
"minLength": 1,
259+
"type": "string"
260260
},
261261
{
262262
"type": "null"
263263
}
264264
],
265-
"title": "Token"
265+
"title": "Url"
266266
}
267267
},
268268
"required": [
@@ -280,19 +280,22 @@
280280
"debug": false
281281
}
282282
},
283-
"server": {
284-
"$ref": "#/$defs/ServerSpecifications",
285-
"description": "Specifications for Simvue server"
283+
"eco": {
284+
"$ref": "#/$defs/EcoConfig",
285+
"default": {
286+
"co2_intensity": null,
287+
"co2_signal_api_token": null,
288+
"cpu_n_cores": null,
289+
"cpu_thermal_design_power": null,
290+
"gpu_thermal_design_power": null,
291+
"intensity_refresh_interval": "1 hour"
292+
}
286293
},
287-
"run": {
288-
"$ref": "#/$defs/DefaultRunSpecifications",
294+
"metrics": {
295+
"$ref": "#/$defs/MetricsSpecifications",
289296
"default": {
290-
"name": null,
291-
"description": null,
292-
"tags": null,
293-
"folder": "/",
294-
"metadata": null,
295-
"mode": "online"
297+
"enable_emission_metrics": false,
298+
"system_metrics_interval": -1
296299
}
297300
},
298301
"offline": {
@@ -301,28 +304,25 @@
301304
"cache": null
302305
}
303306
},
304-
"metrics": {
305-
"$ref": "#/$defs/MetricsSpecifications",
307+
"run": {
308+
"$ref": "#/$defs/DefaultRunSpecifications",
306309
"default": {
307-
"system_metrics_interval": -1,
308-
"enable_emission_metrics": false
310+
"description": null,
311+
"folder": "/",
312+
"metadata": null,
313+
"mode": "online",
314+
"name": null,
315+
"tags": null
309316
}
310317
},
311-
"eco": {
312-
"$ref": "#/$defs/EcoConfig",
313-
"default": {
314-
"co2_signal_api_token": null,
315-
"cpu_thermal_design_power": null,
316-
"cpu_n_cores": null,
317-
"gpu_thermal_design_power": null,
318-
"intensity_refresh_interval": "1 hour",
319-
"co2_intensity": null
320-
}
318+
"server": {
319+
"$ref": "#/$defs/ServerSpecifications",
320+
"description": "Specifications for Simvue server"
321321
}
322322
},
323323
"required": [
324324
"server"
325325
],
326326
"title": "SimvueConfiguration",
327327
"type": "object"
328-
}
328+
}

0 commit comments

Comments
 (0)