summaryrefslogtreecommitdiffstats
path: root/src/health
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2024-05-08 10:50:08 +0100
committerGitHub <noreply@github.com>2024-05-08 12:50:08 +0300
commit6252de6add08caaef9dfdee2ea74c4b28a46fd92 (patch)
treeec68b8355d6d2a19e1d5979d00967cbf22792c22 /src/health
parent2d5546fe20a2ea07e1d55a6c747b5ef041e21c25 (diff)
add update every to json schema (#17613)
Diffstat (limited to 'src/health')
-rw-r--r--src/health/schema.d/health:alert:prototype.json13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/health/schema.d/health:alert:prototype.json b/src/health/schema.d/health:alert:prototype.json
index 115b3c2f9d..ba4e3e3813 100644
--- a/src/health/schema.d/health:alert:prototype.json
+++ b/src/health/schema.d/health:alert:prototype.json
@@ -274,6 +274,13 @@
"type": "string",
"title": "Unit",
"description": "of measurement"
+ },
+ "update_every": {
+ "type": "integer",
+ "default": 10,
+ "minimum": 1,
+ "title": "Frequency",
+ "description": "of evaluation"
}
}
},
@@ -590,11 +597,15 @@
},
"calculation": {
"ui:help": "The database value is available as '$this'. This expression can utilize variables to transform the value of the alert.",
- "ui:classNames": "dyncfg-grid-col-span-1-5",
+ "ui:classNames": "dyncfg-grid-col-span-1-4",
"ui:placeholder": "$this * 1"
},
"units": {
"ui:help": "The unit of measurement the alert value is expressed with. If unset, the units of the instance the alert is attached to will be used.",
+ "ui:classNames": "dyncfg-grid-col-span-5-1"
+ },
+ "update_every": {
+ "ui:help": "The frequency this alarm is to be evaluated, in seconds.",
"ui:classNames": "dyncfg-grid-col-span-6-1"
}
},