# decalog/4.4.0/includes/libraries/prometheus/Storage/Adapter.php

DecaLog, version 4.4.0. 47 lines.

- Page: https://pluginprobe.com/plugins/decalog/4.4.0/code/includes/libraries/prometheus/Storage/Adapter.php
- Raw: https://pluginprobe.com/plugins/decalog/4.4.0/raw/includes/libraries/prometheus/Storage/Adapter.php
- Modified: 2021-06-22T11:43:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/decalog/4.4.0/code/includes/libraries/prometheus/Storage/Adapter.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Prometheus\Storage;

use Prometheus\Exception\StorageException;
use Prometheus\MetricFamilySamples;

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

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

    /**
     * @param mixed[] $data
     * @return void
     */
    public function updateHistogram(array $data): void;

    /**
     * @param mixed[] $data
     * @return void
     */
    public function updateGauge(array $data): void;

    /**
     * @param mixed[] $data
     * @return void
     */
    public function updateCounter(array $data): void;

    /**
     * Removes all previously stored metrics from underlying storage
     *
     * @throws StorageException
     * @return void
     */
    public function wipeStorage(): void;
}

```
