浏览代码

Se agrega tiempo entre consultas a cablemodems.

Maxi Schvindt 6 年之前
父节点
当前提交
969ce53454

+ 1 - 0
src/CablemodemBundle/Admin/CMTSAdmin.php

@@ -72,6 +72,7 @@ class CMTSAdmin extends BaseAdmin
                         ->add('executeSnmp')
                         ->add('timeScan', 'integer', array('attr' => array('min' => 0)))
                         ->add('timeCmtsOctets', 'integer', array('attr' => array('min' => 0)))
+                        ->add('timeCmStats', 'integer', array('attr' => array('min' => 0)))
                     ->end()
                 ->end()
         ;

+ 27 - 0
src/CablemodemBundle/Entity/CMTS.php

@@ -97,6 +97,11 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface, SoftDeleteInterf
      */
     protected $timeCmtsOctets = 5;
 
+    /**
+     * @ORM\Column(type="integer", options={"unsigned":true, "default":10})
+     */
+    protected $timeCmStats = 10;
+
 
     /**
      * @return string
@@ -251,6 +256,7 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface, SoftDeleteInterf
             'executeSnmp' => $this->executeSnmp,
             'timeScan' => $this->timeScan,
             'timeCmtsOctets' => $this->timeCmtsOctets,
+            'timeCmStats' => $this->timeCmStats,
         ];
 
         if($this->model) {
@@ -315,6 +321,27 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface, SoftDeleteInterf
         return $this->timeCmtsOctets;
     }
 
+    /**
+     * Set timeCmStats
+     *
+     * @param integer $timeCmStats
+     */
+    public function setTimeCmStats($timeCmStats)
+    {
+        $this->timeCmStats = $timeCmStats;
+    }
+
+    /**
+     * Get timeCmStats
+     *
+     * @return integer
+     */
+    public function getTimeCmStats()
+    {
+        return $this->timeCmStats;
+    }
+
+
     /**
      * @return int
      */

+ 1 - 0
src/CablemodemBundle/Resources/translations/CablemodemBundle.es.yml

@@ -73,6 +73,7 @@ form:
     label_mta_enabled: MTA Enabled
     label_voip: Voip
     label_comments: Comentarios
+    label_time_cm_stats: Estadísticas y SLA de CMs
     
 list:
     label_id: Id