-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
159 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace Turbo124\Collector\ExampleMetric; | ||
|
||
class GenericGauge | ||
{ | ||
|
||
/** | ||
* The type of Sample | ||
* | ||
* A gauge can be used to measure a given value | ||
* per time interval | ||
* | ||
* - gauge | ||
* | ||
* @var string | ||
*/ | ||
public $type = 'gauge'; | ||
|
||
/** | ||
* The name of the counter | ||
* @var string | ||
*/ | ||
public $name = ''; | ||
|
||
/** | ||
* The datetime of the counter measurement | ||
* | ||
* date("Y-m-d H:i:s") | ||
* | ||
* @var DateTime | ||
*/ | ||
public $datetime; | ||
|
||
/** | ||
* The increment amount... should always be | ||
* set to 0 | ||
* | ||
* @var double | ||
*/ | ||
public $metric = 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
|
||
namespace Turbo124\Collector\ExampleMetric; | ||
|
||
class GenericMultiMetric | ||
{ | ||
|
||
/** | ||
* The type of Sample | ||
* | ||
* A multric metric allows for multiple | ||
* datapoints per time interval | ||
* | ||
* - multi_metric | ||
* | ||
* @var string | ||
*/ | ||
public $type = 'multi_metric'; | ||
|
||
/** | ||
* The name of the counter | ||
* @var string | ||
*/ | ||
public $name = ''; | ||
|
||
/** | ||
* The datetime of the counter measurement | ||
* | ||
* date("Y-m-d H:i:s") | ||
* | ||
* @var DateTime | ||
*/ | ||
public $datetime; | ||
|
||
/** | ||
* The metric value | ||
* set to 0 | ||
* | ||
* @var double | ||
*/ | ||
public $metric1 = 0; | ||
|
||
/** | ||
* The metric value | ||
* set to 0 | ||
* | ||
* @var double | ||
*/ | ||
public $metric2 = 0; | ||
|
||
/** | ||
* The metric value | ||
* set to 0 | ||
* | ||
* @var double | ||
*/ | ||
public $metric3 = 0; | ||
|
||
/** | ||
* The metric value | ||
* set to 0 | ||
* | ||
* @var double | ||
*/ | ||
public $metric4 = 0; | ||
|
||
/** | ||
* The metric value | ||
* set to 0 | ||
* | ||
* @var double | ||
*/ | ||
public $metric5 = 0; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters