@cryptotaxi247 / netdata-1 / commits / 5b8737361

Prepend context in anomaly rate dimension id. (#12342)

FE needs this information when they issue a `/data` request on the anomaly rates chart. However, this information is only available at the creation time of the anomaly rate dimension.

vkalintiris committed Mar 9, 2022 at 10:39 UTC 5b8737361aac20a9887ae97b95a861d7c4f3deab
1 file changed +3 -1
ml/Dimension.h
+3 -1
@@ -23,8 +23,10 @@ public:
23 unsigned updateEvery() const { return RD->update_every; }
24
25 const std::string getID() const {
26 + RRDSET *RS = RD->rrdset;
27 +
28 std::stringstream SS;
27 - SS << RD->rrdset->id << "|" << RD->name;
29 + SS << RS->context << "|" << RS->id << "|" << RD->name;
30 return SS.str();
31 }
32