diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2024-03-18 13:35:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 13:35:28 +0200 |
commit | 45a1681ad384840a898e3b3e0009cd9f7ffefe03 (patch) | |
tree | a862b2af558e28714f49267d5b046df6236492cc /src/health/health.h | |
parent | d7a2499a4081cede800a3d66e9bc51842a989e2c (diff) |
DYNCFG: alerts improvements (#17165)
* updated schema
* move "match" inside "config" in the json representation of the alert
* removed green and red from everywhere, but if they exist in the config file they are replaced with fixed numeric values
* additional health fields
* default permissions for systemd dyncfg; remove test from alerts
* added the ability to define time grouping options
* updated prototype
* Add new fields to the database and store
* Read newly stored values when fetching config (not exposed to JSON)
* Render new values
---------
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Diffstat (limited to 'src/health/health.h')
-rw-r--r-- | src/health/health.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/health/health.h b/src/health/health.h index 882309cae1..2a1dd6c656 100644 --- a/src/health/health.h +++ b/src/health/health.h @@ -20,6 +20,10 @@ typedef enum __attribute__((packed)) { HEALTH_ENTRY_FLAG_NO_CLEAR_NOTIFICATION = 0x80000000, } HEALTH_ENTRY_FLAGS; +#define RRDR_OPTIONS_DATA_SOURCES (RRDR_OPTION_PERCENTAGE|RRDR_OPTION_ANOMALY_BIT) +#define RRDR_OPTIONS_DIMS_AGGREGATION (RRDR_OPTION_DIMS_MIN|RRDR_OPTION_DIMS_MAX|RRDR_OPTION_DIMS_AVERAGE|RRDR_OPTION_DIMS_MIN2MAX) +#define RRDR_OPTIONS_REMOVE_OVERLAPPING(options) ((options) &= ~(RRDR_OPTIONS_DIMS_AGGREGATION|RRDR_OPTIONS_DATA_SOURCES)) + void health_entry_flags_to_json_array(BUFFER *wb, const char *key, HEALTH_ENTRY_FLAGS flags); #ifndef HEALTH_LISTEN_PORT |