extracted the common code of ArmZabbixAPI::queryTrigger() and ArmZabbixAPI::queryItem() as queryCommon().