ml-dummy.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #include "ml.h"
  3. #if !defined(ENABLE_ML)
  4. void ml_init(void) {}
  5. void ml_new_host(RRDHOST *RH) { (void) RH; }
  6. void ml_delete_host(RRDHOST *RH) { (void) RH; }
  7. char *ml_get_host_info(RRDHOST *RH) {
  8. (void) RH;
  9. return NULL;
  10. }
  11. void ml_new_dimension(RRDDIM *RD) { (void) RD; }
  12. void ml_delete_dimension(RRDDIM *RD) { (void) RD; }
  13. bool ml_is_anomalous(RRDDIM *RD, double Value, bool Exists) {
  14. (void) RD; (void) Value; (void) Exists;
  15. return false;
  16. }
  17. char *ml_get_anomaly_events(RRDHOST *RH, const char *AnomalyDetectorName,
  18. int AnomalyDetectorVersion, time_t After, time_t Before) {
  19. (void) RH; (void) AnomalyDetectorName;
  20. (void) AnomalyDetectorVersion; (void) After; (void) Before;
  21. return NULL;
  22. }
  23. char *ml_get_anomaly_event_info(RRDHOST *RH, const char *AnomalyDetectorName,
  24. int AnomalyDetectorVersion, time_t After, time_t Before) {
  25. (void) RH; (void) AnomalyDetectorName;
  26. (void) AnomalyDetectorVersion; (void) After; (void) Before;
  27. return NULL;
  28. }
  29. #endif