diff options
Diffstat (limited to 'vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse')
2 files changed, 262 insertions, 0 deletions
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse/Schedule.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse/Schedule.php new file mode 100644 index 000000000..07091928d --- /dev/null +++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse/Schedule.php @@ -0,0 +1,149 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: opentelemetry/proto/metrics/experimental/metrics_config_service.proto + +namespace Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse; + +use Google\Protobuf\Internal\GPBType; +use Google\Protobuf\Internal\RepeatedField; +use Google\Protobuf\Internal\GPBUtil; + +/** + * A Schedule is used to apply a particular scheduling configuration to + * a metric. If a metric name matches a schedule's patterns, then the metric + * adopts the configuration specified by the schedule. + * + * Generated from protobuf message <code>opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule</code> + */ +class Schedule extends \Google\Protobuf\Internal\Message +{ + /** + * Metrics with names that match a rule in the inclusion_patterns are + * targeted by this schedule. Metrics that match the exclusion_patterns + * are not targeted for this schedule, even if they match an inclusion + * pattern. + * + * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;</code> + */ + private $exclusion_patterns; + /** + * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern inclusion_patterns = 2;</code> + */ + private $inclusion_patterns; + /** + * Describes the collection period for each metric in seconds. + * A period of 0 means to not export. + * + * Generated from protobuf field <code>int32 period_sec = 3;</code> + */ + protected $period_sec = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule\Pattern[]|\Google\Protobuf\Internal\RepeatedField $exclusion_patterns + * Metrics with names that match a rule in the inclusion_patterns are + * targeted by this schedule. Metrics that match the exclusion_patterns + * are not targeted for this schedule, even if they match an inclusion + * pattern. + * @type \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule\Pattern[]|\Google\Protobuf\Internal\RepeatedField $inclusion_patterns + * @type int $period_sec + * Describes the collection period for each metric in seconds. + * A period of 0 means to not export. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Metrics\Experimental\MetricsConfigService::initOnce(); + parent::__construct($data); + } + + /** + * Metrics with names that match a rule in the inclusion_patterns are + * targeted by this schedule. Metrics that match the exclusion_patterns + * are not targeted for this schedule, even if they match an inclusion + * pattern. + * + * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;</code> + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExclusionPatterns() + { + return $this->exclusion_patterns; + } + + /** + * Metrics with names that match a rule in the inclusion_patterns are + * targeted by this schedule. Metrics that match the exclusion_patterns + * are not targeted for this schedule, even if they match an inclusion + * pattern. + * + * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;</code> + * @param \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule\Pattern[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExclusionPatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule\Pattern::class); + $this->exclusion_patterns = $arr; + + return $this; + } + + /** + * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern inclusion_patterns = 2;</code> + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInclusionPatterns() + { + return $this->inclusion_patterns; + } + + /** + * Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern inclusion_patterns = 2;</code> + * @param \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule\Pattern[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInclusionPatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule\Pattern::class); + $this->inclusion_patterns = $arr; + + return $this; + } + + /** + * Describes the collection period for each metric in seconds. + * A period of 0 means to not export. + * + * Generated from protobuf field <code>int32 period_sec = 3;</code> + * @return int + */ + public function getPeriodSec() + { + return $this->period_sec; + } + + /** + * Describes the collection period for each metric in seconds. + * A period of 0 means to not export. + * + * Generated from protobuf field <code>int32 period_sec = 3;</code> + * @param int $var + * @return $this + */ + public function setPeriodSec($var) + { + GPBUtil::checkInt32($var); + $this->period_sec = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Schedule::class, \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse_Schedule::class); + diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse/Schedule/Pattern.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse/Schedule/Pattern.php new file mode 100644 index 000000000..839c097fb --- /dev/null +++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse/Schedule/Pattern.php @@ -0,0 +1,113 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: opentelemetry/proto/metrics/experimental/metrics_config_service.proto + +namespace Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule; + +use Google\Protobuf\Internal\GPBType; +use Google\Protobuf\Internal\RepeatedField; +use Google\Protobuf\Internal\GPBUtil; + +/** + * A light-weight pattern that can match 1 or more + * metrics, for which this schedule will apply. The string is used to + * match against metric names. It should not exceed 100k characters. + * + * Generated from protobuf message <code>opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern</code> + */ +class Pattern extends \Google\Protobuf\Internal\Message +{ + protected $match; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $equals + * matches the metric name exactly + * @type string $starts_with + * prefix-matches the metric name + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Metrics\Experimental\MetricsConfigService::initOnce(); + parent::__construct($data); + } + + /** + * matches the metric name exactly + * + * Generated from protobuf field <code>string equals = 1;</code> + * @return string + */ + public function getEquals() + { + return $this->readOneof(1); + } + + public function hasEquals() + { + return $this->hasOneof(1); + } + + /** + * matches the metric name exactly + * + * Generated from protobuf field <code>string equals = 1;</code> + * @param string $var + * @return $this + */ + public function setEquals($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * prefix-matches the metric name + * + * Generated from protobuf field <code>string starts_with = 2;</code> + * @return string + */ + public function getStartsWith() + { + return $this->readOneof(2); + } + + public function hasStartsWith() + { + return $this->hasOneof(2); + } + + /** + * prefix-matches the metric name + * + * Generated from protobuf field <code>string starts_with = 2;</code> + * @param string $var + * @return $this + */ + public function setStartsWith($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getMatch() + { + return $this->whichOneof("match"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Pattern::class, \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse_Schedule_Pattern::class); + |