Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MetricSourceInterface.php

interface MetricSourceInterface

Hierarchy

  • interface \OpenTelemetry\SDK\Metrics\MetricSourceInterface

Expanded class hierarchy of MetricSourceInterface

All classes that implement MetricSourceInterface

3 files declare their use of MetricSourceInterface
ExportingReader.php in vendor/open-telemetry/sdk/Metrics/MetricReader/ExportingReader.php
StreamMetricSource.php in vendor/open-telemetry/sdk/Metrics/MetricFactory/StreamMetricSource.php
StreamMetricSourceProvider.php in vendor/open-telemetry/sdk/Metrics/MetricFactory/StreamMetricSourceProvider.php

File

vendor/open-telemetry/sdk/Metrics/MetricSourceInterface.php, line 9

Namespace

OpenTelemetry\SDK\Metrics
View source
interface MetricSourceInterface {
    
    /**
     * Returns the last metric collection timestamp.
     *
     * @return int last collection timestamp
     */
    public function collectionTimestamp() : int;
    
    /**
     * Collects metric data from the underlying provider.
     *
     * @return Metric collected metric
     */
    public function collect() : Metric;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
MetricSourceInterface::collect public function Collects metric data from the underlying provider. 1
MetricSourceInterface::collectionTimestamp public function Returns the last metric collection timestamp. 1
RSS feed
Powered by Drupal