MCPcopy Create free account
hub / github.com/Icinga/icinga2 / threshold

Class threshold

plugins/thresholds.hpp:26–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24};
25
26class threshold
27{
28public:
29 // doubles are always enough for ANY 64 bit value
30 double lower;
31 double upper;
32 // true means everything BELOW upper/outside [lower-upper] is fine
33 bool legal;
34 bool perc;
35 bool set;
36
37 threshold();
38
39 threshold(const double v, const double c, bool l = true, bool p = false);
40
41 threshold(const std::wstring&);
42
43 // returns true if the threshold is broken
44 bool rend(const double val, const double max = 100.0);
45
46 // returns a printable string of the threshold
47 std::wstring pString(const double max = 100.0);
48
49 threshold toSeconds(const Tunit& fromUnit);
50};
51
52std::wstring removeZero(double);
53std::vector<std::wstring> splitMultiOptions(const std::wstring&);

Callers 11

parseArgumentsFunction · 0.85
parseArgumentsFunction · 0.85
toSecondsMethod · 0.85
parseArgumentsFunction · 0.85
parseArgumentsFunction · 0.85
parseArgumentsFunction · 0.85
parseArgumentsFunction · 0.85
parseArgumentsFunction · 0.85
parseArgumentsFunction · 0.85
parseArgumentsFunction · 0.85
parseArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected