Download the PHP package balt-technologies/newrelic-metrics without Composer
On this page you can find all versions of the php package balt-technologies/newrelic-metrics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package newrelic-metrics
A package for sending Metrics to New Relic
Installation
You can install the php package using composer.
composer require balt-technologies/newrelic-metrics
That's is.
Requirements
You need to have to install the new relic PHP extension.
Report a metric
$newRelic = new NewRelic();
$newRelic->report((new FormMetric())->created(1));
Create a metric
use Balt\NewRelic\Metric;
class FormMetric implements Metric
{
private array $attributes;
public function __construct()
{
$this->attributes = [];
}
public function created(int $createdForms = 1): self
{
$this->attributes['created'] = $createdForms;
return $this;
}
public function getName(): string
{
return 'forms';
}
public function getAttributes(): array
{
return $this->attributes;
}
}
All versions of newrelic-metrics with dependencies
PHP Build Version
Package Version
No informations.
The package balt-technologies/newrelic-metrics contains the following files
Loading the files please wait ....