Jimdo/prometheus_client_php

View on GitHub
src/Prometheus/Storage/Adapter.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Prometheus\Storage;

use Prometheus\Collector;
use Prometheus\MetricFamilySamples;
use Prometheus\Sample;

interface Adapter
{
    const COMMAND_INCREMENT_INTEGER = 1;
    const COMMAND_INCREMENT_FLOAT = 2;
    const COMMAND_SET = 3;

    /**
     * @return MetricFamilySamples[]
     */
    public function collect();

    public function updateHistogram(array $data);

    public function updateGauge(array $data);

    public function updateCounter(array $data);
}