diff options
Diffstat (limited to 'database/rrddim.c')
-rw-r--r-- | database/rrddim.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/database/rrddim.c b/database/rrddim.c index 0032940ce7..a8b37ea3a2 100644 --- a/database/rrddim.c +++ b/database/rrddim.c @@ -183,6 +183,9 @@ void rrdcalc_link_to_rrddim(RRDDIM *rd, RRDSET *st, RRDHOST *host) { } } } +#ifdef ENABLE_ACLK + aclk_update_chart(st->rrdhost, st->id); +#endif } RRDDIM *rrddim_add_custom(RRDSET *st, const char *id, const char *name, collected_number multiplier, collected_number divisor, RRD_ALGORITHM algorithm, RRD_MEMORY_MODE memory_mode) { @@ -424,7 +427,9 @@ RRDDIM *rrddim_add_custom(RRDSET *st, const char *id, const char *name, collecte } } rrdset_unlock(st); - +#ifdef ENABLE_ACLK + aclk_update_chart(host, st->id); +#endif return(rd); } @@ -478,6 +483,9 @@ void rrddim_free(RRDSET *st, RRDDIM *rd) freez(rd); break; } +#ifdef ENABLE_ACLK + aclk_update_chart(st->rrdhost, st->id); +#endif } @@ -496,6 +504,9 @@ int rrddim_hide(RRDSET *st, const char *id) { } rrddim_flag_set(rd, RRDDIM_FLAG_HIDDEN); +#ifdef ENABLE_ACLK + aclk_update_chart(st->rrdhost, st->id); +#endif return 0; } @@ -510,6 +521,9 @@ int rrddim_unhide(RRDSET *st, const char *id) { } rrddim_flag_clear(rd, RRDDIM_FLAG_HIDDEN); +#ifdef ENABLE_ACLK + aclk_update_chart(st->rrdhost, st->id); +#endif return 0; } @@ -518,12 +532,18 @@ inline void rrddim_is_obsolete(RRDSET *st, RRDDIM *rd) { rrddim_flag_set(rd, RRDDIM_FLAG_OBSOLETE); rrdset_flag_set(st, RRDSET_FLAG_OBSOLETE_DIMENSIONS); +#ifdef ENABLE_ACLK + aclk_update_chart(st->rrdhost, st->id); +#endif } inline void rrddim_isnot_obsolete(RRDSET *st __maybe_unused, RRDDIM *rd) { debug(D_RRD_CALLS, "rrddim_isnot_obsolete() for chart %s, dimension %s", st->name, rd->name); rrddim_flag_clear(rd, RRDDIM_FLAG_OBSOLETE); +#ifdef ENABLE_ACLK + aclk_update_chart(st->rrdhost, st->id); +#endif } // ---------------------------------------------------------------------------- |