ml-dummy.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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_host_new(RRDHOST *RH) {
  13. UNUSED(RH);
  14. }
  15. void ml_host_delete(RRDHOST *RH) {
  16. UNUSED(RH);
  17. }
  18. void ml_chart_new(RRDSET *RS) {
  19. UNUSED(RS);
  20. }
  21. void ml_chart_delete(RRDSET *RS) {
  22. UNUSED(RS);
  23. }
  24. void ml_dimension_new(RRDDIM *RD) {
  25. UNUSED(RD);
  26. }
  27. void ml_dimension_delete(RRDDIM *RD) {
  28. UNUSED(RD);
  29. }
  30. void ml_start_anomaly_detection_threads(RRDHOST *RH) {
  31. UNUSED(RH);
  32. }
  33. void ml_stop_anomaly_detection_threads(RRDHOST *RH) {
  34. UNUSED(RH);
  35. }
  36. char *ml_get_host_info(RRDHOST *RH) {
  37. (void) RH;
  38. return NULL;
  39. }
  40. char *ml_get_host_runtime_info(RRDHOST *RH) {
  41. (void) RH;
  42. return NULL;
  43. }
  44. void ml_chart_update_begin(RRDSET *RS) {
  45. (void) RS;
  46. }
  47. void ml_chart_update_end(RRDSET *RS) {
  48. (void) RS;
  49. }
  50. char *ml_get_host_models(RRDHOST *RH) {
  51. (void) RH;
  52. return NULL;
  53. }
  54. bool ml_is_anomalous(RRDDIM *RD, time_t CurrT, double Value, bool Exists) {
  55. (void) RD;
  56. (void) CurrT;
  57. (void) Value;
  58. (void) Exists;
  59. return false;
  60. }
  61. bool ml_streaming_enabled() {
  62. return false;
  63. }
  64. #endif