| @@ 68-83 (lines=16) @@ | ||
| 65 | /** |
|
| 66 | * {@inheritdoc} |
|
| 67 | */ |
|
| 68 | public function getConfiguration(): PromiseInterface |
|
| 69 | { |
|
| 70 | if ($this->configuration instanceof Configuration) { |
|
| 71 | return resolve($this->configuration); |
|
| 72 | } |
|
| 73 | ||
| 74 | $this->configuration = new Configuration(); |
|
| 75 | $this->configuration->setPair('graph_category', 'phunin_node'); |
|
| 76 | $this->configuration->setPair('graph_title', 'Memory Usage'); |
|
| 77 | $this->configuration->setPair('memory_usage.label', 'Current Memory Usage'); |
|
| 78 | $this->configuration->setPair('memory_peak_usage.label', 'Peak Memory Usage'); |
|
| 79 | $this->configuration->setPair('internal_memory_usage.label', 'Internal Current Memory Usage'); |
|
| 80 | $this->configuration->setPair('internal_memory_peak_usage.label', 'Internal Peak Memory Usage'); |
|
| 81 | ||
| 82 | return resolve($this->configuration); |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * {@inheritdoc} |
|
| @@ 88-103 (lines=16) @@ | ||
| 85 | /** |
|
| 86 | * {@inheritdoc} |
|
| 87 | */ |
|
| 88 | public function getConfiguration(): PromiseInterface |
|
| 89 | { |
|
| 90 | if ($this->configuration instanceof Configuration) { |
|
| 91 | return resolve($this->configuration); |
|
| 92 | } |
|
| 93 | ||
| 94 | $this->configuration = new Configuration(); |
|
| 95 | $this->configuration->setPair('graph_category', 'phunin_node'); |
|
| 96 | $this->configuration->setPair('graph_title', 'Uptime'); |
|
| 97 | $this->configuration->setPair('graph_args', '--base 1000 -l 0'); |
|
| 98 | $this->configuration->setPair('graph_vlabel', 'uptime in days'); |
|
| 99 | $this->configuration->setPair('uptime.label', 'uptime'); |
|
| 100 | $this->configuration->setPair('uptime.draw', 'AREA'); |
|
| 101 | ||
| 102 | return resolve($this->configuration); |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * {@inheritdoc} |
|