Example #1
0
 function statsdMetricTemplateIs(metric\template $template)
 {
     foreach ($this->metrics as $metric) {
         $template->newStatsdMetric($metric);
     }
     $this->metrics = [];
     return $this;
 }
Example #2
0
 function newDataFromStatsdMetricTemplate(data\data $data, metric\template $metricTemplate)
 {
     switch (true) {
         case strlen($data) > $this->mtu->asInteger:
             $metricTemplate->mtuOfStatsdMetricConsumerIs($this, $this->mtu);
             break;
         default:
             $this->dataConsumer->newData($data);
     }
     return $this;
 }
Example #3
0
 function statsdMetricTemplateIs(metric\template $metricTemplate)
 {
     $metricTemplate->statsdMetricConsumerIs($this);
     return $this;
 }
Example #4
0
 protected function isSetAndStatsdMetricTemplateIs(template $template)
 {
     $template->statsdSetContainsBucketAndValue($this->bucket, $this->value);
     return $this;
 }