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

Breadcrumb

  1. Drupal Core 11.1.x

MetricSourceInterface.php

Namespace

OpenTelemetry\SDK\Metrics

File

vendor/open-telemetry/sdk/Metrics/MetricSourceInterface.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Metrics;

use OpenTelemetry\SDK\Metrics\Data\Metric;
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;

}

Interfaces

Title Deprecated Summary
MetricSourceInterface

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal