]> granicus.if.org Git - icinga2/blobdiff - plugins/thresholds.hpp
Merge pull request #6801 from BarbUk/feature/itl-check-varnish
[icinga2] / plugins / thresholds.hpp
index 1a63e5a4d356c91dad39e147f2af9b35c64e214f..e7d77f745ba7ea375f506d516a870213725a3a43 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)  *
+ * Copyright (C) 2012-2018 Icinga Development Team (https://icinga.com/)      *
  *                                                                            *
  * This program is free software; you can redistribute it and/or              *
  * modify it under the terms of the GNU General Public License                *
@@ -62,6 +62,7 @@ public:
        // returns a printable string of the threshold
        std::wstring pString(const double max = 100.0);
 
+       threshold toSeconds(const Tunit& fromUnit);
 };
 
 std::wstring removeZero(double);
@@ -73,5 +74,8 @@ Tunit parseTUnit(const std::wstring&);
 std::wstring TunitStr(const Tunit&);
 
 void printErrorInfo(unsigned long err = 0);
+std::wstring formatErrorInfo(unsigned long err);
+
+std::wstring stateToString(const state&);
 
 #endif /* THRESHOLDS_H */