projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[2475] write_prometheus plugin: Fix port listening
[collectd.git]
/
src
/
utils_latency_config.h
diff --git
a/src/utils_latency_config.h
b/src/utils_latency_config.h
index
a535496
..
9a7a11a
100644
(file)
--- a/
src/utils_latency_config.h
+++ b/
src/utils_latency_config.h
@@
-29,31
+29,34
@@
#define UTILS_LATENCY_CONFIG_H 1
#include "collectd.h"
#define UTILS_LATENCY_CONFIG_H 1
#include "collectd.h"
+
+#include "liboconfig/oconfig.h"
#include "utils_time.h"
#include "utils_time.h"
-struct latency_config_s {
+typedef struct {
+ cdtime_t lower_bound;
+ cdtime_t upper_bound;
+} latency_bucket_t;
+
+typedef struct {
double *percentile;
size_t percentile_num;
double *percentile;
size_t percentile_num;
- char *percentile_type;
- cdtime_t *rates;
- size_t rates_num;
- char *rates_type;
+
+ latency_bucket_t *buckets;
+ size_t buckets_num;
+
+ /*
_Bool lower;
_Bool upper;
_Bool lower;
_Bool upper;
- //_Bool sum;
_Bool avg;
_Bool avg;
- //_Bool count;
-};
-typedef struct latency_config_s latency_config_t;
-
-int latency_config_add_percentile(const char *plugin, latency_config_t *cl,
- oconfig_item_t *ci);
+ */
+} latency_config_t;
-int latency_config
_add_rate(const char *plugin, latency_config_t *cl
,
-
oconfig_item_t *ci
);
+int latency_config
(latency_config_t *conf, oconfig_item_t *ci
,
+
char const *plugin
);
int latency_config_copy(latency_config_t *dst, const latency_config_t src);
int latency_config_copy(latency_config_t *dst, const latency_config_t src);
-void latency_config_free(latency_config_t
lc
);
+void latency_config_free(latency_config_t
conf
);
#endif /* UTILS_LATENCY_CONFIG_H */
#endif /* UTILS_LATENCY_CONFIG_H */