diff options
author | vkalintiris <vasilis@netdata.cloud> | 2022-03-09 10:39:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 10:39:30 +0200 |
commit | 5b8737361aac20a9887ae97b95a861d7c4f3deab (patch) | |
tree | 98bcba5c45ff232f584c7efa04604742b8200caa /ml | |
parent | 1044ad0c1068c6e74cf32190ba72a44228d0b456 (diff) |
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.
Diffstat (limited to 'ml')
-rw-r--r-- | ml/Dimension.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ml/Dimension.h b/ml/Dimension.h index 3b399d351a..01cb4ef63f 100644 --- a/ml/Dimension.h +++ b/ml/Dimension.h @@ -23,8 +23,10 @@ public: unsigned updateEvery() const { return RD->update_every; } const std::string getID() const { + RRDSET *RS = RD->rrdset; + std::stringstream SS; - SS << RD->rrdset->id << "|" << RD->name; + SS << RS->context << "|" << RS->id << "|" << RD->name; return SS.str(); } |