X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_threshold.h;h=bf097fae0f2ef62bae851f1ef1b4e16298b29d54;hb=master;hp=948f80708627e4b4eacc5a3152fbb97f96f3e4ac;hpb=0fe1b2a1938c00413dc2cae4412c1de6674db006;p=collectd.git diff --git a/src/utils_threshold.h b/src/utils_threshold.h deleted file mode 100644 index 948f8070..00000000 --- a/src/utils_threshold.h +++ /dev/null @@ -1,62 +0,0 @@ -/** - * collectd - src/utils_threshold.h - * Copyright (C) 2014 Pierre-Yves Ritschard - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; only version 2 of the License is applicable. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Author: - * Pierre-Yves Ritschard - **/ - -#ifndef UTILS_THRESHOLD_H -#define UTILS_THRESHOLD_H 1 - -#define UT_FLAG_INVERT 0x01 -#define UT_FLAG_PERSIST 0x02 -#define UT_FLAG_PERCENTAGE 0x04 -#define UT_FLAG_INTERESTING 0x08 -#define UT_FLAG_PERSIST_OK 0x10 -typedef struct threshold_s -{ - char host[DATA_MAX_NAME_LEN]; - char plugin[DATA_MAX_NAME_LEN]; - char plugin_instance[DATA_MAX_NAME_LEN]; - char type[DATA_MAX_NAME_LEN]; - char type_instance[DATA_MAX_NAME_LEN]; - char data_source[DATA_MAX_NAME_LEN]; - gauge_t warning_min; - gauge_t warning_max; - gauge_t failure_min; - gauge_t failure_max; - gauge_t hysteresis; - unsigned int flags; - int hits; - struct threshold_s *next; -} threshold_t; - -extern c_avl_tree_t *threshold_tree; -extern pthread_mutex_t threshold_lock; - -threshold_t *threshold_get (const char *hostname, - const char *plugin, const char *plugin_instance, - const char *type, const char *type_instance); - -threshold_t *threshold_search (const value_list_t *vl); - -int ut_search_threshold (const value_list_t *vl, - threshold_t *ret_threshold); - -#endif /* UTILS_THRESHOLD_H */ - -/* vim: set sw=2 sts=2 ts=8 : */