summaryrefslogtreecommitdiffstats
path: root/ml/Dimension.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-09 04:52:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-09 04:52:57 +0000
commit00151562145df50cc65e9902d52d5fa77f89fe50 (patch)
tree2737716802f6725a5074d606ec8fe5422c58a83c /ml/Dimension.h
parentReleasing debian version 1.34.1-1. (diff)
downloadnetdata-00151562145df50cc65e9902d52d5fa77f89fe50.tar.xz
netdata-00151562145df50cc65e9902d52d5fa77f89fe50.zip
Merging upstream version 1.35.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/Dimension.h')
-rw-r--r--ml/Dimension.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/ml/Dimension.h b/ml/Dimension.h
index 44b348e9b..e4f8bd1c7 100644
--- a/ml/Dimension.h
+++ b/ml/Dimension.h
@@ -30,6 +30,16 @@ public:
return SS.str();
}
+ bool isActive() const {
+ if (rrdset_flag_check(RD->rrdset, RRDSET_FLAG_OBSOLETE))
+ return false;
+
+ if (rrddim_flag_check(RD, RRDDIM_FLAG_OBSOLETE))
+ return false;
+
+ return true;
+ }
+
void setAnomalyRateRD(RRDDIM *ARRD) { AnomalyRateRD = ARRD; }
RRDDIM *getAnomalyRateRD() const { return AnomalyRateRD; }
@@ -38,14 +48,14 @@ public:
}
virtual ~RrdDimension() {
- rrddim_free_custom(AnomalyRateRD->rrdset, AnomalyRateRD, 0);
+ rrddim_free(AnomalyRateRD->rrdset, AnomalyRateRD);
}
private:
RRDDIM *RD;
RRDDIM *AnomalyRateRD;
- struct rrddim_volatile::rrddim_query_ops *Ops;
+ struct rrddim_query_ops *Ops;
std::string ID;
};