mirror of https://github.com/Icinga/icinga2.git
Make CompatUtility::GetCheckablePercentStateChange return a floating-point number
This commit is contained in:
parent
bf2e3cb091
commit
d84a3306d5
|
@ -242,9 +242,9 @@ int CompatUtility::GetCheckableIsReachable(const Checkable::Ptr& checkable)
|
||||||
return (checkable->IsReachable() ? 1 : 0);
|
return (checkable->IsReachable() ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
String CompatUtility::GetCheckablePercentStateChange(const Checkable::Ptr& checkable)
|
double CompatUtility::GetCheckablePercentStateChange(const Checkable::Ptr& checkable)
|
||||||
{
|
{
|
||||||
return Convert::ToString(checkable->GetFlappingCurrent());
|
return checkable->GetFlappingCurrent();
|
||||||
}
|
}
|
||||||
|
|
||||||
int CompatUtility::GetCheckableProcessPerformanceData(const Checkable::Ptr& checkable)
|
int CompatUtility::GetCheckableProcessPerformanceData(const Checkable::Ptr& checkable)
|
||||||
|
|
|
@ -63,7 +63,7 @@ public:
|
||||||
static int GetCheckableFlapDetectionEnabled(const Checkable::Ptr& checkable);
|
static int GetCheckableFlapDetectionEnabled(const Checkable::Ptr& checkable);
|
||||||
static int GetCheckableIsFlapping(const Checkable::Ptr& checkable);
|
static int GetCheckableIsFlapping(const Checkable::Ptr& checkable);
|
||||||
static int GetCheckableIsReachable(const Checkable::Ptr& checkable);
|
static int GetCheckableIsReachable(const Checkable::Ptr& checkable);
|
||||||
static String GetCheckablePercentStateChange(const Checkable::Ptr& checkable);
|
static double GetCheckablePercentStateChange(const Checkable::Ptr& checkable);
|
||||||
static int GetCheckableProcessPerformanceData(const Checkable::Ptr& checkable);
|
static int GetCheckableProcessPerformanceData(const Checkable::Ptr& checkable);
|
||||||
|
|
||||||
static String GetCheckableEventHandler(const Checkable::Ptr& checkable);
|
static String GetCheckableEventHandler(const Checkable::Ptr& checkable);
|
||||||
|
|
Loading…
Reference in New Issue