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

Breadcrumb

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

function ResourceMetrics::getResource

The resource for the metrics in this message. If this field is not set then no resource info is known.

Generated from protobuf field <code>.opentelemetry.proto.resource.v1.Resource resource = 1;</code>

Return value

\Opentelemetry\Proto\Resource\V1\Resource|null

File

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

Class

ResourceMetrics
A collection of ScopeMetrics from a Resource.

Namespace

Opentelemetry\Proto\Metrics\V1

Code

public function getResource() {
    return $this->resource;
}

API Navigation

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