diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2022-05-24 13:35:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 13:35:46 +0300 |
commit | 546010acad2fd18bf3fd463f53ec7cc4ead1ea5f (patch) | |
tree | 51c960fe3a8108ac889dc18e951db33e82846fc6 /health/health_json.c | |
parent | 2f4b6e059bedd77b9851a4a0bd654bf86b0c6a15 (diff) |
Return rc->last_update from alarms_values api (#12968)
* add rc last_update as when in alarms values api
* rename when to last_updated
* update swagger
Diffstat (limited to 'health/health_json.c')
-rw-r--r-- | health/health_json.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/health/health_json.c b/health/health_json.c index 8d08407b98..d5285c11e7 100644 --- a/health/health_json.c +++ b/health/health_json.c @@ -165,6 +165,10 @@ static inline void health_rrdcalc_values2json_nolock(RRDHOST *host, BUFFER *wb, buffer_rrd_value(wb, rc->value); buffer_strcat(wb, ",\n"); + buffer_strcat(wb, "\t\t\t\"last_updated\":"); + buffer_sprintf(wb, "%lu", (unsigned long)rc->last_updated); + buffer_strcat(wb, ",\n"); + buffer_sprintf(wb, "\t\t\t\"status\": \"%s\"\n" , rrdcalc_status2string(rc->status)); |