summaryrefslogtreecommitdiffstats
path: root/ml/ADCharts.h
blob: ee09669e2240d19b656cfe2e95dfcba27fa44cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef ML_ADCHARTS_H
#define ML_ADCHARTS_H

#include "Stats.h"
#include "ml-private.h"

namespace ml {

void updateDimensionsChart(RRDHOST *RH, const MachineLearningStats &MLS);

void updateHostAndDetectionRateCharts(RRDHOST *RH, collected_number AnomalyRate);

void updateResourceUsageCharts(RRDHOST *RH, const struct rusage &PredictionRU, const struct rusage &TrainingRU);

void updateTrainingStatisticsChart(RRDHOST *RH, const TrainingStats &TS);

} // namespace ml

#endif /* ML_ADCHARTS_H */