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

Method GetCheckableStateKeys

lib/icingadb/icingadb-utility.cpp:379–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379IcingaDB::QueryArgPair IcingaDB::GetCheckableStateKeys(const Type::Ptr& type)
380{
381 QueryArgPair result;
382 if (Host::TypeInstance == type) {
383 result.ObjectKey = CONFIG_REDIS_KEY_PREFIX "host:state";
384 result.ChecksumKey = CHECKSUM_REDIS_KEY_PREFIX "host:state";
385 } else if (Service::TypeInstance == type) {
386 result.ObjectKey = CONFIG_REDIS_KEY_PREFIX "service:state";
387 result.ChecksumKey = CHECKSUM_REDIS_KEY_PREFIX "service:state";
388 }
389 return result;
390}
391
392/**
393 * Get the given command's environment variables and arguments Redis keys.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected