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

Breadcrumb

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

function Metric::setGauge

Generated from protobuf field <code>.opentelemetry.proto.metrics.v1.Gauge gauge = 5;</code>

Parameters

\Opentelemetry\Proto\Metrics\V1\Gauge $var:

Return value

$this

File

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

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 setGauge($var) {
    GPBUtil::checkMessage($var, \Opentelemetry\Proto\Metrics\V1\Gauge::class);
    $this->writeOneof(5, $var);
    return $this;
}
RSS feed
Powered by Drupal