コード例 #1
0
ファイル: Counter.php プロジェクト: lazyshot/prometheus-php
 public function __construct(array $opts = [])
 {
     parent::__construct($opts);
 }
コード例 #2
0
ファイル: MetricLayer.php プロジェクト: stof/php-sdk
 public function __construct($name, $label = null)
 {
     parent::__construct($name);
     $this->setLayer($name);
     $this->setLabel($label ?: $name);
 }
コード例 #3
0
ファイル: Histogram.php プロジェクト: lazyshot/prometheus-php
 public function __construct(array $opts = [])
 {
     parent::__construct($opts);
     $this->buckets = isset($opts['buckets']) ? $opts['buckets'] : [1, 2, 3];
 }