summaryrefslogtreecommitdiffstats
path: root/ml/Stats.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-06 16:11:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-06 16:11:30 +0000
commitaa2fe8ccbfcb117efa207d10229eeeac5d0f97c7 (patch)
tree941cbdd387b41c1a81587c20a6df9f0e5e0ff7ab /ml/Stats.h
parentAdding upstream version 1.37.1. (diff)
downloadnetdata-aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7.tar.xz
netdata-aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7.zip
Adding upstream version 1.38.0.upstream/1.38.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/Stats.h')
-rw-r--r--ml/Stats.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/ml/Stats.h b/ml/Stats.h
new file mode 100644
index 000000000..b99bc39da
--- /dev/null
+++ b/ml/Stats.h
@@ -0,0 +1,46 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef ML_STATS_H
+#define ML_STATS_H
+
+#include "ml-private.h"
+
+namespace ml {
+
+struct MachineLearningStats {
+ size_t NumMachineLearningStatusEnabled;
+ size_t NumMachineLearningStatusDisabledUE;
+ size_t NumMachineLearningStatusDisabledSP;
+
+ size_t NumMetricTypeConstant;
+ size_t NumMetricTypeVariable;
+
+ size_t NumTrainingStatusUntrained;
+ size_t NumTrainingStatusPendingWithoutModel;
+ size_t NumTrainingStatusTrained;
+ size_t NumTrainingStatusPendingWithModel;
+
+ size_t NumAnomalousDimensions;
+ size_t NumNormalDimensions;
+};
+
+struct TrainingStats {
+ struct rusage TrainingRU;
+
+ size_t QueueSize;
+ size_t NumPoppedItems;
+
+ usec_t AllottedUT;
+ usec_t ConsumedUT;
+ usec_t RemainingUT;
+
+ size_t TrainingResultOk;
+ size_t TrainingResultInvalidQueryTimeRange;
+ size_t TrainingResultNotEnoughCollectedValues;
+ size_t TrainingResultNullAcquiredDimension;
+ size_t TrainingResultChartUnderReplication;
+};
+
+} // namespace ml
+
+#endif /* ML_STATS_H */