diff options
author | vkalintiris <vasilis@netdata.cloud> | 2021-04-23 16:16:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 16:16:40 +0300 |
commit | 7b6362767e71b09ad1604de45c754e798c7dd169 (patch) | |
tree | d35af2e563d0b47d38722f3613b3e6e33ab4e7a0 /health/health_json.c | |
parent | 3ec43de2167e3f9ad095bff05d7285e33e26cd69 (diff) |
Rename struct fields from class to classification. (#11019)
These fields made our headers incompatible with C++, because `class` is
a reserved keyword.
Diffstat (limited to 'health/health_json.c')
-rw-r--r-- | health/health_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/health/health_json.c b/health/health_json.c index 8363ad04da..4df44611ca 100644 --- a/health/health_json.c +++ b/health/health_json.c @@ -55,7 +55,7 @@ void health_alarm_entry2json_nolock(BUFFER *wb, ALARM_ENTRY *ae, RRDHOST *host) , ae->name , ae->chart , ae->family - , ae->class?ae->class:"Unknown" + , ae->classification?ae->classification:"Unknown" , ae->component?ae->component:"Unknown" , ae->type?ae->type:"Unknown" , (ae->flags & HEALTH_ENTRY_FLAG_PROCESSED)?"true":"false" @@ -215,7 +215,7 @@ static inline void health_rrdcalc2json_nolock(RRDHOST *host, BUFFER *wb, RRDCALC , rc->name , rc->chart , (rc->rrdset && rc->rrdset->family)?rc->rrdset->family:"" - , rc->class?rc->class:"Unknown" + , rc->classification?rc->classification:"Unknown" , rc->component?rc->component:"Unknown" , rc->type?rc->type:"Unknown" , (rc->rrdset)?"true":"false" |