bexiocom/prometheus_php

View on GitHub
src/MetricType.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php
/**
 * @file
 * Contains Bexio\PrometheusPHP.
 */

namespace Bexio\PrometheusPHP;

/**
 * Common denominator for Metrics.
 *
 * @see https://prometheus.io/docs/concepts/metric_types/
 */
interface MetricType
{
    /**
     * @return Options
     */
    public function getOptions();

    /**
     * @return Action[]
     */
    public function getActions();

    /**
     * Clears the internal stack of change actions.
     */
    public function clear();

    /**
     * The metric type identifier.
     *
     * @return string
     */
    public function getType();
}