1 | <?php |
||
4 | abstract class AbstractMonitoring |
||
5 | { |
||
6 | protected $config; |
||
7 | protected $name; |
||
8 | |||
9 | /** |
||
10 | * @param array $config |
||
11 | * @param String $name |
||
12 | */ |
||
13 | public function __construct($config, $name) |
||
18 | /** |
||
19 | * @return string The metric |
||
20 | */ |
||
21 | abstract public function getMetric(); |
||
22 | /** |
||
23 | * (string: Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | |
||
24 | * Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | |
||
25 | * Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | |
||
26 | * Gigabits/Second | Terabits/Second | Count/Second | None) |
||
27 | * @return integer |
||
28 | */ |
||
29 | abstract public function getUnit(); |
||
30 | /** |
||
31 | * ComparisonOperator : GreaterThanOrEqualToThreshold | GreaterThanThreshold | LessThanThreshold | |
||
32 | * LessThanOrEqualToThreshold |
||
33 | * @return Array Array of alarm list. Each alamr contain ComparisonOperator, Threshold and Name |
||
34 | */ |
||
35 | abstract public function getAlarms(); |
||
36 | |||
37 | /** |
||
38 | * @return The metrics name associate to an alarm name. |
||
39 | */ |
||
40 | public function getMetricName($alarm) { |
||
43 | } |
||
44 |