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

#ifndef ML_ADCHARTS_H
#define ML_ADCHARTS_H

#include "ml-private.h"

namespace ml {

void updateDimensionsChart(RRDHOST *RH,
                           collected_number NumTrainedDimensions,
                           collected_number NumNormalDimensions,
                           collected_number NumAnomalousDimensions);

void updateHostAndDetectionRateCharts(RRDHOST *RH, collected_number AnomalyRate);

void updateDetectionChart(RRDHOST *RH);

void updateTrainingChart(RRDHOST *RH, struct rusage *TRU);

} // namespace ml

#endif /* ML_ADCHARTS_H */