X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cache.h;h=a965febe9cd445a3ef25bded87603615e3030ec5;hb=ebdc9011b75c4c1478fbe02eb1cb9c69795288f9;hp=ed6830b646b57cf370ec3868831a20f6492c6e89;hpb=985cc61fa747ad02749037c2d08497fce9703c32;p=collectd.git diff --git a/src/utils_cache.h b/src/utils_cache.h index ed6830b6..a965febe 100644 --- a/src/utils_cache.h +++ b/src/utils_cache.h @@ -24,9 +24,10 @@ #include "plugin.h" -#define STATE_OKAY 0 -#define STATE_WARNING 1 -#define STATE_ERROR 2 +#define STATE_OKAY 0 +#define STATE_WARNING 1 +#define STATE_ERROR 2 +#define STATE_MISSING 15 int uc_init (void); int uc_check_timeout (void); @@ -34,6 +35,8 @@ int uc_update (const data_set_t *ds, const value_list_t *vl); int uc_get_rate_by_name (const char *name, gauge_t **ret_values, size_t *ret_values_num); gauge_t *uc_get_rate (const data_set_t *ds, const value_list_t *vl); +int uc_get_names (char ***ret_names, time_t **ret_times, size_t *ret_number); + int uc_get_state (const data_set_t *ds, const value_list_t *vl); int uc_set_state (const data_set_t *ds, const value_list_t *vl, int state);