Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ResourceCount | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Ably\Models\Stats; |
| 3 | |
| 4 | /** |
| 5 | * ResourceCount contains aggregate data for usage of a resource in a specific |
| 6 | * scope |
| 7 | */ |
| 8 | class ResourceCount { |
| 9 | /** |
| 10 | * @var int $mean Average resources of this type used for this period. |
| 11 | * @var int $min Minimum total resources of this type used for this period. |
| 12 | * @var int $opened Total resources of this type opened. |
| 13 | * @var int $peak Peak resources of this type used for this period. |
| 14 | * @var int $refused Resource requests refused within this period. |
| 15 | */ |
| 16 | public $mean; |
| 17 | public $min; |
| 18 | public $opened; |
| 19 | public $peak; |
| 20 | public $refused; |
| 21 | |
| 22 | public function __construct() { |
| 23 | $this->mean = 0; |
| 24 | $this->min = 0; |
| 25 | $this->opened = 0; |
| 26 | $this->peak = 0; |
| 27 | $this->refused = 0; |
| 28 | } |
| 29 | } |