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

Breadcrumb

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

interface AggregationInterface

@psalm-template T

Hierarchy

  • interface \OpenTelemetry\SDK\Metrics\AggregationInterface

Expanded class hierarchy of AggregationInterface

All classes that implement AggregationInterface

11 files declare their use of AggregationInterface
AsynchronousMetricStream.php in vendor/open-telemetry/sdk/Metrics/Stream/AsynchronousMetricStream.php
DeltaStorage.php in vendor/open-telemetry/sdk/Metrics/Stream/DeltaStorage.php
ExplicitBucketHistogramAggregation.php in vendor/open-telemetry/sdk/Metrics/Aggregation/ExplicitBucketHistogramAggregation.php
ExportingReader.php in vendor/open-telemetry/sdk/Metrics/MetricReader/ExportingReader.php
LastValueAggregation.php in vendor/open-telemetry/sdk/Metrics/Aggregation/LastValueAggregation.php

... See full list

File

vendor/open-telemetry/sdk/Metrics/AggregationInterface.php, line 16

Namespace

OpenTelemetry\SDK\Metrics
View source
interface AggregationInterface {
    
    /**
     * @psalm-return T
     */
    public function initialize();
    
    /**
     * @psalm-param T $summary
     * @psalm-param float|int $value
     */
    public function record($summary, $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp) : void;
    
    /**
     * @psalm-param T $left
     * @psalm-param T $right
     * @psalm-return T
     */
    public function merge($left, $right);
    
    /**
     * @psalm-param T $left
     * @psalm-param T $right
     * @psalm-return T
     */
    public function diff($left, $right);
    
    /**
     * @param array<AttributesInterface> $attributes
     * @psalm-param array<T> $summaries
     * @param array<list<Exemplar>> $exemplars
     * @param string|Temporality $temporality
     */
    public function toData(array $attributes, array $summaries, array $exemplars, int $startTimestamp, int $timestamp, $temporality) : DataInterface;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
AggregationInterface::diff public function @psalm-param T $left
@psalm-param T $right
@psalm-return T
3
AggregationInterface::initialize public function @psalm-return T 3
AggregationInterface::merge public function @psalm-param T $left
@psalm-param T $right
@psalm-return T
3
AggregationInterface::record public function @psalm-param T $summary
@psalm-param float|int $value
3
AggregationInterface::toData public function @psalm-param array&lt;T&gt; $summaries 3

API Navigation

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