ml-dummy.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #include "ml.h"
  3. #if !defined(ENABLE_ML)
  4. bool ml_capable() {
  5. return false;
  6. }
  7. bool ml_enabled(RRDHOST *RH) {
  8. (void) RH;
  9. return false;
  10. }
  11. void ml_init(void) {}
  12. void ml_new_host(RRDHOST *RH) { (void) RH; }
  13. void ml_delete_host(RRDHOST *RH) { (void) RH; }
  14. char *ml_get_host_info(RRDHOST *RH) {
  15. (void) RH;
  16. return NULL;
  17. }
  18. void ml_new_dimension(RRDDIM *RD) { (void) RD; }
  19. void ml_delete_dimension(RRDDIM *RD) { (void) RD; }
  20. bool ml_is_anomalous(RRDDIM *RD, double Value, bool Exists) {
  21. (void) RD; (void) Value; (void) Exists;
  22. return false;
  23. }
  24. char *ml_get_anomaly_events(RRDHOST *RH, const char *AnomalyDetectorName,
  25. int AnomalyDetectorVersion, time_t After, time_t Before) {
  26. (void) RH; (void) AnomalyDetectorName;
  27. (void) AnomalyDetectorVersion; (void) After; (void) Before;
  28. return NULL;
  29. }
  30. char *ml_get_anomaly_event_info(RRDHOST *RH, const char *AnomalyDetectorName,
  31. int AnomalyDetectorVersion, time_t After, time_t Before) {
  32. (void) RH; (void) AnomalyDetectorName;
  33. (void) AnomalyDetectorVersion; (void) After; (void) Before;
  34. return NULL;
  35. }
  36. void ml_process_rrdr(RRDR *R, int MaxAnomalyRates) {
  37. (void) R;
  38. (void) MaxAnomalyRates;
  39. }
  40. void ml_dimension_update_name(RRDSET *RS, RRDDIM *RD, const char *name) {
  41. (void) RS;
  42. (void) RD;
  43. (void) name;
  44. }
  45. bool ml_streaming_enabled() {
  46. return false;
  47. }
  48. #endif