summaryrefslogtreecommitdiffstats
path: root/ml/Dimension.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-09 04:52:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-09 04:52:39 +0000
commit89f3604407aff8f4cb2ed958252c61e23c767e24 (patch)
tree7fbf408102cab051557d38193524d8c6e991d070 /ml/Dimension.h
parentAdding upstream version 1.34.1. (diff)
downloadnetdata-89f3604407aff8f4cb2ed958252c61e23c767e24.tar.xz
netdata-89f3604407aff8f4cb2ed958252c61e23c767e24.zip
Adding upstream version 1.35.0.upstream/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;
};