RedisWriter: adjust icinga:history:stream:*:flapping schema

This commit is contained in:
Alexander A. Klimov 2019-10-22 15:10:00 +02:00 committed by Michael Friedrich
parent 0510e0cad0
commit e6043e908a
1 changed files with 2 additions and 1 deletions

View File

@ -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()),