/** * getDeploymentDiffInfo * * @param mixed $deployment deployment we need to fetch the diff for * @param mixed $subdeployment subdeployment we are working on * * @static * @access public * @return void */ public static function getDeploymentDiffInfo($deployment, $subdeployment) { if (self::$init === false) { self::init(); } if ($subdeployment === false) { return NagRedis::hGetAll(md5('deployment:' . $deployment) . ':diffoutput'); } else { return NagRedis::hGetAll(md5('deployment:' . $deployment) . ':diffoutput:' . $subdeployment); } }
public static function getDeploymentNagiosPlugin($deployment, $plugin, $revision) { if (self::$init === false) { self::init(); } return NagRedis::hGetAll(md5('deployment:' . $deployment) . ':' . $revision . ':nagiosplugin:' . $plugin); }