mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-20 17:57:30 +01:00
Update config schema
This commit is contained in:
@@ -80,7 +80,7 @@ type ProgramConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type NodeStateRetention struct {
|
type NodeStateRetention struct {
|
||||||
Policy string `json:"policy"` // "delete" or "parquet"
|
Policy string `json:"policy"` // "delete" or "move"
|
||||||
Age int `json:"age"` // hours, default 24
|
Age int `json:"age"` // hours, default 24
|
||||||
TargetKind string `json:"target-kind"` // "file" or "s3"
|
TargetKind string `json:"target-kind"` // "file" or "s3"
|
||||||
TargetPath string `json:"target-path"`
|
TargetPath string `json:"target-path"`
|
||||||
|
|||||||
@@ -77,24 +77,18 @@ var configSchema = `
|
|||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"emission-constant": {
|
"emission-constant": {
|
||||||
"description": ".",
|
"description": "Energy mix CO2 emission constant [g/kWh]. If set, displays estimated CO2 emission for jobs.",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"cron-frequency": {
|
"machine-state-dir": {
|
||||||
"description": "Frequency of cron job workers.",
|
"description": "Where to store MachineState files.",
|
||||||
"type": "object",
|
"type": "string"
|
||||||
"properties": {
|
|
||||||
"duration-worker": {
|
|
||||||
"description": "Duration Update Worker [Defaults to '5m']",
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"footprint-worker": {
|
|
||||||
"description": "Metric-Footprint Update Worker [Defaults to '10m']",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"enable-resampling": {
|
"systemd-unit": {
|
||||||
|
"description": "Systemd unit name for log viewer (default: 'clustercockpit').",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"resampling": {
|
||||||
"description": "Enable dynamic zoom in frontend metric plots.",
|
"description": "Enable dynamic zoom in frontend metric plots.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -136,9 +130,9 @@ var configSchema = `
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"policy": {
|
"policy": {
|
||||||
"description": "Retention policy: 'delete' to remove old rows, 'parquet' to archive then delete.",
|
"description": "Retention policy: 'delete' to remove old rows, 'move' to archive to Parquet then delete.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["delete", "parquet"]
|
"enum": ["delete", "move"]
|
||||||
},
|
},
|
||||||
"age": {
|
"age": {
|
||||||
"description": "Retention age in hours (default: 24).",
|
"description": "Retention age in hours (default: 24).",
|
||||||
|
|||||||
Reference in New Issue
Block a user