for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aptarus\PromClient;
class Gauge extends Metric
{
public function __construct(
$var,
$help = "",
$labels = null,
$label_values = null
) {
parent::__construct('gauge', $var, $help, $labels, $label_values);
}
public function inc($value = 1)
$this->metricInc($value);
public function dec($value = 1)
$this->metricInc(-$value);
public function set($value)
$this->metricSet($value);
// @codingStandardsIgnoreStart
public function set_to_current_time()
// @codingStandardsIgnoreEnd
$this->metricSet(time());
// vim:sw=4 ts=4 et