Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/monitor/v1/http_monitor.proto
namespace Openstatus\Monitor\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * OpenTelemetry configuration for exporting metrics. * * Generated from protobuf message <code>openstatus.monitor.v1.OpenTelemetryConfig</code> */class OpenTelemetryConfig extends \Google\Protobuf\Internal\Message{ /** * OTEL endpoint URL. * * Generated from protobuf field <code>string endpoint = 1 [json_name = "endpoint", (.buf.validate.field) = {</code> */ protected $endpoint = ''; /** * Custom headers for OTEL requests. * * Generated from protobuf field <code>repeated .openstatus.monitor.v1.Headers headers = 2 [json_name = "headers", (.buf.validate.field) = {</code> */ private $headers;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $endpoint * OTEL endpoint URL. * @type \Openstatus\Monitor\V1\Headers[] $headers * Custom headers for OTEL requests. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Monitor\V1\HttpMonitor::initOnce(); parent::__construct($data); }
/** * OTEL endpoint URL. * * Generated from protobuf field <code>string endpoint = 1 [json_name = "endpoint", (.buf.validate.field) = {</code> * @return string */ public function getEndpoint() { return $this->endpoint; }
/** * OTEL endpoint URL. * * Generated from protobuf field <code>string endpoint = 1 [json_name = "endpoint", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setEndpoint(string $var) { GPBUtil::checkString($var, true); $this->endpoint = $var;
return $this; }
/** * Custom headers for OTEL requests. * * Generated from protobuf field <code>repeated .openstatus.monitor.v1.Headers headers = 2 [json_name = "headers", (.buf.validate.field) = {</code> * @return RepeatedField<\Openstatus\Monitor\V1\Headers> */ public function getHeaders() { return $this->headers; }
/** * Custom headers for OTEL requests. * * Generated from protobuf field <code>repeated .openstatus.monitor.v1.Headers headers = 2 [json_name = "headers", (.buf.validate.field) = {</code> * @param \Openstatus\Monitor\V1\Headers[] $var * @return $this */ public function setHeaders(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Monitor\V1\Headers::class); $this->headers = $arr;
return $this; }
}