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

Breadcrumb

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

function Metric::__construct

Same name in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Metrics/Stream/Metric.php \OpenTelemetry\SDK\Metrics\Stream\Metric::__construct()
  2. 11.1.x vendor/open-telemetry/sdk/Metrics/Data/Metric.php \OpenTelemetry\SDK\Metrics\Data\Metric::__construct()

Constructor.

Parameters

array $data {: Optional. Data for populating the Message object.

@type string $name name of the metric. @type string $description description of the metric, which can be used in documentation. @type string $unit unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html. @type \Opentelemetry\Proto\Metrics\V1\Gauge $gauge @type \Opentelemetry\Proto\Metrics\V1\Sum $sum @type \Opentelemetry\Proto\Metrics\V1\Histogram $histogram @type \Opentelemetry\Proto\Metrics\V1\ExponentialHistogram $exponential_histogram @type \Opentelemetry\Proto\Metrics\V1\Summary $summary @type \Opentelemetry\Proto\Common\V1\KeyValue[]|\Google\Protobuf\Internal\RepeatedField $metadata Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). }

Overrides Message::__construct

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/Metric.php, line 149

Class

Metric
Defines a Metric which has one or more timeseries. The following is a brief summary of the Metric data model. For more details, see: https://github.com/open-telemetry/opentelemetry-specification/blob/main… The data…

Namespace

Opentelemetry\Proto\Metrics\V1

Code

public function __construct($data = NULL) {
    \GPBMetadata\Opentelemetry\Proto\Metrics\V1\Metrics::initOnce();
    parent::__construct($data);
}

API Navigation

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