blob: f8647681cf8d805ba01600540de538eb87ac6575 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 | #pragma once
#include "./perfdata.h"
#include "states.h"
/*
 * Old threshold type using the old range type
 */
typedef struct {
	range *warning;
	range *critical;
} thresholds;
typedef struct {
	bool warning_is_set;
	mp_range warning;
	bool critical_is_set;
	mp_range critical;
} mp_thresholds;
mp_thresholds mp_thresholds_init(void);
mp_perfdata mp_pd_set_thresholds(mp_perfdata /* pd */, mp_thresholds /* th */);
mp_state_enum mp_get_pd_status(mp_perfdata /* pd */);
mp_thresholds mp_thresholds_set_warn(mp_thresholds thlds, mp_range warn);
mp_thresholds mp_thresholds_set_crit(mp_thresholds thlds, mp_range crit);
char *fmt_threshold_warning(thresholds th);
char *fmt_threshold_critical(thresholds th);
 |