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

Breadcrumb

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

function MetricConfigResponse::__construct

Constructor.

Parameters

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

@type string $fingerprint Optional. The fingerprint associated with this MetricConfigResponse. Each change in configs yields a different fingerprint. The resource SHOULD copy this value to MetricConfigRequest.last_known_fingerprint for the next configuration request. If there are no changes between fingerprint and MetricConfigRequest.last_known_fingerprint, then all other fields besides fingerprint in the response are optional, or the same as the last update if present. The exact mechanics of generating the fingerprint is up to the implementation. However, a fingerprint must be deterministically determined by the configurations -- the same configuration will generate the same fingerprint on any instance of an implementation. Hence using a timestamp is unacceptable, but a deterministic hash is fine. @type \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule[]|\Google\Protobuf\Internal\RepeatedField $schedules A single metric may match multiple schedules. In such cases, the schedule that specifies the smallest period is applied. Note, for optimization purposes, it is recommended to use as few schedules as possible to capture all required metric updates. Where you can be conservative, do take full advantage of the inclusion/exclusion patterns to capture as much of your targeted metrics. @type int $suggested_wait_time_sec Optional. The client is suggested to wait this long (in seconds) before pinging the configuration service again. }

Overrides Message::__construct

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse.php, line 83

Class

MetricConfigResponse
Generated from protobuf message <code>opentelemetry.proto.metrics.experimental.MetricConfigResponse</code>

Namespace

Opentelemetry\Proto\Metrics\Experimental

Code

public function __construct($data = NULL) {
    \GPBMetadata\Opentelemetry\Proto\Metrics\Experimental\MetricsConfigService::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