mirror of https://github.com/Icinga/icinga2.git
RedisWriter: adjust icinga:history:stream:*:flapping schema
This commit is contained in:
parent
0510e0cad0
commit
e6043e908a
|
@ -1428,7 +1428,8 @@ void RedisWriter::SendFlappingChanged(const Checkable::Ptr& checkable, const Val
|
|||
"id", Utility::NewUniqueID(),
|
||||
"environment_id", SHA1(GetEnvironment()),
|
||||
service ? "service_id" : "host_id", GetObjectIdentifier(checkable),
|
||||
value.ToBool() ? "start_time" : "end_time", Convert::ToString(TimestampToMilliseconds(Utility::GetTime())),
|
||||
"change_time", Convert::ToString(TimestampToMilliseconds(Utility::GetTime())),
|
||||
"change_type", value.ToBool() ? "start" : "end",
|
||||
"percent_state_change", Convert::ToString(checkable->GetFlappingCurrent()),
|
||||
"flapping_threshold_low", Convert::ToString(checkable->GetFlappingThresholdLow()),
|
||||
"flapping_threshold_high", Convert::ToString(checkable->GetFlappingThresholdHigh()),
|
||||
|
|
Loading…
Reference in New Issue