function Metric::setUnit
unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html.
Generated from protobuf field <code>string unit = 3;</code>
Parameters
string $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ Metric.php, line 226
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\V1Code
public function setUnit($var) {
GPBUtil::checkString($var, True);
$this->unit = $var;
return $this;
}