root/src/noit_filters.h

Revision 304ec80b8cf842fc0abe5f9029790908b6455957, 2.4 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 months ago)

Convert to libmtev.

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  * Copyright (c) 2015, Circonus, Inc. All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are
8  * met:
9  *
10  *     * Redistributions of source code must retain the above copyright
11  *       notice, this list of conditions and the following disclaimer.
12  *     * Redistributions in binary form must reproduce the above
13  *       copyright notice, this list of conditions and the following
14  *       disclaimer in the documentation and/or other materials provided
15  *       with the distribution.
16  *     * Neither the name OmniTI Computer Consulting, Inc. nor the names
17  *       of its contributors may be used to endorse or promote products
18  *       derived from this software without specific prior written
19  *       permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33
34 #ifndef _NOIT_FILTERS_H
35 #define _NOIT_FILTERS_H
36
37 #include <mtev_defines.h>
38 #include <mtev_hash.h>
39 #include <mtev_console.h>
40 #include <mtev_conf.h>
41 #include "noit_check.h"
42
43 API_EXPORT(void)
44   noit_filters_init();
45
46 API_EXPORT(void)
47   noit_refresh_filtersets();
48
49 API_EXPORT(mtev_boolean)
50   noit_apply_filterset(const char *filterset,
51                        noit_check_t *check,
52                        metric_t *metric);
53
54 API_EXPORT(void)
55   noit_filter_compile_add(mtev_conf_section_t setinfo);
56
57 API_EXPORT(int)
58   noit_filter_remove(mtev_conf_section_t setinfo);
59
60 API_EXPORT(int)
61   noit_filter_exists(const char *name);
62
63 API_EXPORT(void)
64   noit_filters_rest_init();
65
66 API_EXPORT(int)
67   noit_filtersets_cull_unused();
68
69 #endif
Note: See TracBrowser for help on using the browser.