summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1')
-rw-r--r--vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsPartialSuccess.php127
-rw-r--r--vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsServiceRequest.php81
-rw-r--r--vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsServiceResponse.php119
-rw-r--r--vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/MetricsServiceClient.php53
4 files changed, 380 insertions, 0 deletions
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsPartialSuccess.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsPartialSuccess.php
new file mode 100644
index 000000000..872d3b5e0
--- /dev/null
+++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsPartialSuccess.php
@@ -0,0 +1,127 @@
+<?php
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto
+
+namespace Opentelemetry\Proto\Collector\Metrics\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess</code>
+ */
+class ExportMetricsPartialSuccess extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The number of rejected data points.
+ * A `rejected_<signal>` field holding a `0` value indicates that the
+ * request was fully accepted.
+ *
+ * Generated from protobuf field <code>int64 rejected_data_points = 1;</code>
+ */
+ protected $rejected_data_points = 0;
+ /**
+ * A developer-facing human-readable message in English. It should be used
+ * either to explain why the server rejected parts of the data during a partial
+ * success or to convey warnings/suggestions during a full success. The message
+ * should offer guidance on how users can address such issues.
+ * error_message is an optional field. An error_message with an empty value
+ * is equivalent to it not being set.
+ *
+ * Generated from protobuf field <code>string error_message = 2;</code>
+ */
+ protected $error_message = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type int|string $rejected_data_points
+ * The number of rejected data points.
+ * A `rejected_<signal>` field holding a `0` value indicates that the
+ * request was fully accepted.
+ * @type string $error_message
+ * A developer-facing human-readable message in English. It should be used
+ * either to explain why the server rejected parts of the data during a partial
+ * success or to convey warnings/suggestions during a full success. The message
+ * should offer guidance on how users can address such issues.
+ * error_message is an optional field. An error_message with an empty value
+ * is equivalent to it not being set.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Opentelemetry\Proto\Collector\Metrics\V1\MetricsService::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The number of rejected data points.
+ * A `rejected_<signal>` field holding a `0` value indicates that the
+ * request was fully accepted.
+ *
+ * Generated from protobuf field <code>int64 rejected_data_points = 1;</code>
+ * @return int|string
+ */
+ public function getRejectedDataPoints()
+ {
+ return $this->rejected_data_points;
+ }
+
+ /**
+ * The number of rejected data points.
+ * A `rejected_<signal>` field holding a `0` value indicates that the
+ * request was fully accepted.
+ *
+ * Generated from protobuf field <code>int64 rejected_data_points = 1;</code>
+ * @param int|string $var
+ * @return $this
+ */
+ public function setRejectedDataPoints($var)
+ {
+ GPBUtil::checkInt64($var);
+ $this->rejected_data_points = $var;
+
+ return $this;
+ }
+
+ /**
+ * A developer-facing human-readable message in English. It should be used
+ * either to explain why the server rejected parts of the data during a partial
+ * success or to convey warnings/suggestions during a full success. The message
+ * should offer guidance on how users can address such issues.
+ * error_message is an optional field. An error_message with an empty value
+ * is equivalent to it not being set.
+ *
+ * Generated from protobuf field <code>string error_message = 2;</code>
+ * @return string
+ */
+ public function getErrorMessage()
+ {
+ return $this->error_message;
+ }
+
+ /**
+ * A developer-facing human-readable message in English. It should be used
+ * either to explain why the server rejected parts of the data during a partial
+ * success or to convey warnings/suggestions during a full success. The message
+ * should offer guidance on how users can address such issues.
+ * error_message is an optional field. An error_message with an empty value
+ * is equivalent to it not being set.
+ *
+ * Generated from protobuf field <code>string error_message = 2;</code>
+ * @param string $var
+ * @return $this
+ */
+ public function setErrorMessage($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->error_message = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsServiceRequest.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsServiceRequest.php
new file mode 100644
index 000000000..1fa5ac3bf
--- /dev/null
+++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsServiceRequest.php
@@ -0,0 +1,81 @@
+<?php
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto
+
+namespace Opentelemetry\Proto\Collector\Metrics\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest</code>
+ */
+class ExportMetricsServiceRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * An array of ResourceMetrics.
+ * For data coming from a single resource this array will typically contain one
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
+ * data from multiple origins typically batch the data before forwarding further and
+ * in that case this array will contain multiple elements.
+ *
+ * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;</code>
+ */
+ private $resource_metrics;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Opentelemetry\Proto\Metrics\V1\ResourceMetrics[]|\Google\Protobuf\Internal\RepeatedField $resource_metrics
+ * An array of ResourceMetrics.
+ * For data coming from a single resource this array will typically contain one
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
+ * data from multiple origins typically batch the data before forwarding further and
+ * in that case this array will contain multiple elements.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Opentelemetry\Proto\Collector\Metrics\V1\MetricsService::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * An array of ResourceMetrics.
+ * For data coming from a single resource this array will typically contain one
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
+ * data from multiple origins typically batch the data before forwarding further and
+ * in that case this array will contain multiple elements.
+ *
+ * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;</code>
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getResourceMetrics()
+ {
+ return $this->resource_metrics;
+ }
+
+ /**
+ * An array of ResourceMetrics.
+ * For data coming from a single resource this array will typically contain one
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
+ * data from multiple origins typically batch the data before forwarding further and
+ * in that case this array will contain multiple elements.
+ *
+ * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;</code>
+ * @param \Opentelemetry\Proto\Metrics\V1\ResourceMetrics[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setResourceMetrics($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Metrics\V1\ResourceMetrics::class);
+ $this->resource_metrics = $arr;
+
+ return $this;
+ }
+
+}
+
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsServiceResponse.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsServiceResponse.php
new file mode 100644
index 000000000..1f3bff5aa
--- /dev/null
+++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/ExportMetricsServiceResponse.php
@@ -0,0 +1,119 @@
+<?php
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto
+
+namespace Opentelemetry\Proto\Collector\Metrics\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse</code>
+ */
+class ExportMetricsServiceResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The details of a partially successful export request.
+ * If the request is only partially accepted
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
+ * the server MUST initialize the `partial_success` field and MUST
+ * set the `rejected_<signal>` with the number of items it rejected.
+ * Servers MAY also make use of the `partial_success` field to convey
+ * warnings/suggestions to senders even when the request was fully accepted.
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
+ * the `error_message` MUST be non-empty.
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
+ * `error_message` = "") is equivalent to it not being set/present. Senders
+ * SHOULD interpret it the same way as in the full success case.
+ *
+ * Generated from protobuf field <code>.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;</code>
+ */
+ protected $partial_success = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Opentelemetry\Proto\Collector\Metrics\V1\ExportMetricsPartialSuccess $partial_success
+ * The details of a partially successful export request.
+ * If the request is only partially accepted
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
+ * the server MUST initialize the `partial_success` field and MUST
+ * set the `rejected_<signal>` with the number of items it rejected.
+ * Servers MAY also make use of the `partial_success` field to convey
+ * warnings/suggestions to senders even when the request was fully accepted.
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
+ * the `error_message` MUST be non-empty.
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
+ * `error_message` = "") is equivalent to it not being set/present. Senders
+ * SHOULD interpret it the same way as in the full success case.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Opentelemetry\Proto\Collector\Metrics\V1\MetricsService::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The details of a partially successful export request.
+ * If the request is only partially accepted
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
+ * the server MUST initialize the `partial_success` field and MUST
+ * set the `rejected_<signal>` with the number of items it rejected.
+ * Servers MAY also make use of the `partial_success` field to convey
+ * warnings/suggestions to senders even when the request was fully accepted.
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
+ * the `error_message` MUST be non-empty.
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
+ * `error_message` = "") is equivalent to it not being set/present. Senders
+ * SHOULD interpret it the same way as in the full success case.
+ *
+ * Generated from protobuf field <code>.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;</code>
+ * @return \Opentelemetry\Proto\Collector\Metrics\V1\ExportMetricsPartialSuccess|null
+ */
+ public function getPartialSuccess()
+ {
+ return $this->partial_success;
+ }
+
+ public function hasPartialSuccess()
+ {
+ return isset($this->partial_success);
+ }
+
+ public function clearPartialSuccess()
+ {
+ unset($this->partial_success);
+ }
+
+ /**
+ * The details of a partially successful export request.
+ * If the request is only partially accepted
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
+ * the server MUST initialize the `partial_success` field and MUST
+ * set the `rejected_<signal>` with the number of items it rejected.
+ * Servers MAY also make use of the `partial_success` field to convey
+ * warnings/suggestions to senders even when the request was fully accepted.
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
+ * the `error_message` MUST be non-empty.
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
+ * `error_message` = "") is equivalent to it not being set/present. Senders
+ * SHOULD interpret it the same way as in the full success case.
+ *
+ * Generated from protobuf field <code>.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;</code>
+ * @param \Opentelemetry\Proto\Collector\Metrics\V1\ExportMetricsPartialSuccess $var
+ * @return $this
+ */
+ public function setPartialSuccess($var)
+ {
+ GPBUtil::checkMessage($var, \Opentelemetry\Proto\Collector\Metrics\V1\ExportMetricsPartialSuccess::class);
+ $this->partial_success = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/MetricsServiceClient.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/MetricsServiceClient.php
new file mode 100644
index 000000000..b5cddb55a
--- /dev/null
+++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Metrics/V1/MetricsServiceClient.php
@@ -0,0 +1,53 @@
+<?php
+// GENERATED CODE -- DO NOT EDIT!
+
+// Original file comments:
+// Copyright 2019, OpenTelemetry Authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+namespace Opentelemetry\Proto\Collector\Metrics\V1;
+
+/**
+ * Service that can be used to push metrics between one Application
+ * instrumented with OpenTelemetry and a collector, or between a collector and a
+ * central collector.
+ */
+class MetricsServiceClient extends \Grpc\BaseStub {
+
+ /**
+ * @param string $hostname hostname
+ * @param array $opts channel options
+ * @param \Grpc\Channel $channel (optional) re-use channel object
+ */
+ public function __construct($hostname, $opts, $channel = null) {
+ parent::__construct($hostname, $opts, $channel);
+ }
+
+ /**
+ * For performance reasons, it is recommended to keep this RPC
+ * alive for the entire life of the application.
+ * @param \Opentelemetry\Proto\Collector\Metrics\V1\ExportMetricsServiceRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function Export(\Opentelemetry\Proto\Collector\Metrics\V1\ExportMetricsServiceRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/opentelemetry.proto.collector.metrics.v1.MetricsService/Export',
+ $argument,
+ ['\Opentelemetry\Proto\Collector\Metrics\V1\ExportMetricsServiceResponse', 'decode'],
+ $metadata, $options);
+ }
+
+}