function statsdMetricTemplateIs(metric\template $template) { foreach ($this->metrics as $metric) { $template->newStatsdMetric($metric); } $this->metrics = []; return $this; }
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; }
function statsdMetricTemplateIs(metric\template $metricTemplate) { $metricTemplate->statsdMetricConsumerIs($this); return $this; }
protected function isSetAndStatsdMetricTemplateIs(template $template) { $template->statsdSetContainsBucketAndValue($this->bucket, $this->value); return $this; }