| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 36 | 1 | public function __construct($sshString, $sshPort = null, $sshIdentityFile = null, $cpuAbove = 5.0, $memoryAbove = 1.0) |
|
| 37 | { |
||
| 38 | 1 | parent::__construct($cpuAbove, $memoryAbove); |
|
| 39 | |||
| 40 | 1 | $this->sshString = $sshString; |
|
| 41 | 1 | $this->sshIdentityFile = $sshIdentityFile; |
|
| 42 | 1 | $this->sshPort = $sshPort; |
|
| 43 | |||
| 44 | 1 | $this->command = new RemoteTopCommand($this->sshString, $this->sshPort, $this->sshIdentityFile); |
|
| 45 | |||
| 46 | |||
| 47 | 1 | $this->namespace = preg_replace('/[^-+_.A-Za-z0-9]*/i', '', 'statsd.' . $this->sshString . '.' . $this->sshPort); |
|
| 48 | } |
||
| 49 | } |