interface MetricStreamInterface
@internal
Hierarchy
- interface \OpenTelemetry\SDK\Metrics\Stream\MetricStreamInterface
Expanded class hierarchy of MetricStreamInterface
All classes that implement MetricStreamInterface
4 files declare their use of MetricStreamInterface
- MetricRegistry.php in vendor/
open-telemetry/ sdk/ Metrics/ MetricRegistry/ MetricRegistry.php - MetricRegistryInterface.php in vendor/
open-telemetry/ sdk/ Metrics/ MetricRegistry/ MetricRegistryInterface.php - StreamFactory.php in vendor/
open-telemetry/ sdk/ Metrics/ MetricFactory/ StreamFactory.php - StreamMetricSourceProvider.php in vendor/
open-telemetry/ sdk/ Metrics/ MetricFactory/ StreamMetricSourceProvider.php
File
-
vendor/
open-telemetry/ sdk/ Metrics/ Stream/ MetricStreamInterface.php, line 13
Namespace
OpenTelemetry\SDK\Metrics\StreamView source
interface MetricStreamInterface {
/**
* Returns the internal temporality of this stream.
*
* @return string|Temporality internal temporality
*/
public function temporality();
/**
* Returns the last metric timestamp.
*
* @return int metric timestamp
*/
public function timestamp() : int;
/**
* Pushes metric data to the stream.
*
* @param Metric $metric metric data to push
*/
public function push(Metric $metric) : void;
/**
* Registers a new reader with the given temporality.
*
* @param string|Temporality $temporality temporality to use
* @return int reader id
*/
public function register($temporality) : int;
/**
* Unregisters the given reader.
*
* @param int $reader reader id
*/
public function unregister(int $reader) : void;
/**
* Collects metric data for the given reader.
*
* @param int $reader reader id
* @return DataInterface metric data
*/
public function collect(int $reader) : DataInterface;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
MetricStreamInterface::collect | public | function | Collects metric data for the given reader. | 2 |
MetricStreamInterface::push | public | function | Pushes metric data to the stream. | 2 |
MetricStreamInterface::register | public | function | Registers a new reader with the given temporality. | 2 |
MetricStreamInterface::temporality | public | function | Returns the internal temporality of this stream. | 2 |
MetricStreamInterface::timestamp | public | function | Returns the last metric timestamp. | 2 |
MetricStreamInterface::unregister | public | function | Unregisters the given reader. | 2 |