GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

AbstractMonitoring::getUnit()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
nc 1
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
namespace CloudWatchScript;
3
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)
14
    {
15
        $this->config = $config;
16
        $this->name = $name;
17
    }
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) {
41
      return $this->name;
42
    }
43
}
44