Exemplo n.º 1
0
 /**
  * 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);
     }
 }
Exemplo n.º 2
0
 public static function getDeploymentNagiosPlugin($deployment, $plugin, $revision)
 {
     if (self::$init === false) {
         self::init();
     }
     return NagRedis::hGetAll(md5('deployment:' . $deployment) . ':' . $revision . ':nagiosplugin:' . $plugin);
 }