1 #ifndef TEST_STATS_COMMON 2 #define TEST_STATS_COMMON 1 3 4 #include "stats-common.h" 5 #include "event-filter.h" 6 #include "istream.h" 7 #include "settings-parser.h" 8 #include "str.h" 9 #include "test-common.h" 10 #include "lib-event-private.h" 11 #include "stats-dist.h" 12 #include "stats-event-category.h" 13 #include "stats-metrics.h" 14 15 extern struct event_category test_category; 16 extern struct event_category child_test_category; 17 extern pool_t test_pool; 18 19 bool test_stats_callback(struct event *event, 20 enum event_callback_type type ATTR_UNUSED, 21 struct failure_context *ctx, const char *fmt ATTR_UNUSED, 22 va_list args ATTR_UNUSED); 23 24 void test_init(const char *settings_blob); 25 void test_deinit(void); 26 27 void test_event_send(struct event *event); 28 29 enum stats_dist_field { 30 STATS_DIST_COUNT, 31 STATS_DIST_SUM, 32 }; 33 34 uint64_t get_stats_dist_field(const char *metric_name, enum stats_dist_field field); 35 36 #endif 37