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.
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/monitor/v1/service.proto
namespace Openstatus\Monitor\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * ListMonitorHTTPResponseLogsRequest is the request to list response logs within the 14-day HTTP response-log window. * * Generated from protobuf message <code>openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest</code> */class ListMonitorHTTPResponseLogsRequest extends \Google\Protobuf\Internal\Message{ /** * Monitor ID to list response logs for (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> */ protected $id = ''; /** * Start of the response log window as Unix milliseconds within the 14-day retention window. * * Generated from protobuf field <code>optional int64 from_timestamp = 2 [json_name = "fromTimestamp"];</code> */ protected $from_timestamp = null; /** * End of the response log window as Unix milliseconds within the 14-day retention window. * * Generated from protobuf field <code>optional int64 to_timestamp = 3 [json_name = "toTimestamp"];</code> */ protected $to_timestamp = null; /** * Maximum number of logs to return (1-100, defaults to 25). * * Generated from protobuf field <code>optional int32 limit = 4 [json_name = "limit", (.buf.validate.field) = {</code> */ protected $limit = null; /** * Number of logs to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 5 [json_name = "offset", (.buf.validate.field) = {</code> */ protected $offset = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Monitor ID to list response logs for (required). * @type int|string $from_timestamp * Start of the response log window as Unix milliseconds within the 14-day retention window. * @type int|string $to_timestamp * End of the response log window as Unix milliseconds within the 14-day retention window. * @type int $limit * Maximum number of logs to return (1-100, defaults to 25). * @type int $offset * Number of logs to skip for pagination (defaults to 0). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Monitor\V1\Service::initOnce(); parent::__construct($data); }
/** * Monitor ID to list response logs for (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @return string */ public function getId() { return $this->id; }
/** * Monitor ID to list response logs for (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var;
return $this; }
/** * Start of the response log window as Unix milliseconds within the 14-day retention window. * * Generated from protobuf field <code>optional int64 from_timestamp = 2 [json_name = "fromTimestamp"];</code> * @return int|string */ public function getFromTimestamp() { return isset($this->from_timestamp) ? $this->from_timestamp : GPBUtil::compatibleInt64(0, '0'); }
public function hasFromTimestamp() { return isset($this->from_timestamp); }
public function clearFromTimestamp() { unset($this->from_timestamp); }
/** * Start of the response log window as Unix milliseconds within the 14-day retention window. * * Generated from protobuf field <code>optional int64 from_timestamp = 2 [json_name = "fromTimestamp"];</code> * @param int|string $var * @return $this */ public function setFromTimestamp(int|string $var) { GPBUtil::checkInt64($var); $this->from_timestamp = $var;
return $this; }
/** * End of the response log window as Unix milliseconds within the 14-day retention window. * * Generated from protobuf field <code>optional int64 to_timestamp = 3 [json_name = "toTimestamp"];</code> * @return int|string */ public function getToTimestamp() { return isset($this->to_timestamp) ? $this->to_timestamp : GPBUtil::compatibleInt64(0, '0'); }
public function hasToTimestamp() { return isset($this->to_timestamp); }
public function clearToTimestamp() { unset($this->to_timestamp); }
/** * End of the response log window as Unix milliseconds within the 14-day retention window. * * Generated from protobuf field <code>optional int64 to_timestamp = 3 [json_name = "toTimestamp"];</code> * @param int|string $var * @return $this */ public function setToTimestamp(int|string $var) { GPBUtil::checkInt64($var); $this->to_timestamp = $var;
return $this; }
/** * Maximum number of logs to return (1-100, defaults to 25). * * Generated from protobuf field <code>optional int32 limit = 4 [json_name = "limit", (.buf.validate.field) = {</code> * @return int */ public function getLimit() { return isset($this->limit) ? $this->limit : 0; }
public function hasLimit() { return isset($this->limit); }
public function clearLimit() { unset($this->limit); }
/** * Maximum number of logs to return (1-100, defaults to 25). * * Generated from protobuf field <code>optional int32 limit = 4 [json_name = "limit", (.buf.validate.field) = {</code> * @param int $var * @return $this */ public function setLimit(int $var) { GPBUtil::checkInt32($var); $this->limit = $var;
return $this; }
/** * Number of logs to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 5 [json_name = "offset", (.buf.validate.field) = {</code> * @return int */ public function getOffset() { return isset($this->offset) ? $this->offset : 0; }
public function hasOffset() { return isset($this->offset); }
public function clearOffset() { unset($this->offset); }
/** * Number of logs to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 5 [json_name = "offset", (.buf.validate.field) = {</code> * @param int $var * @return $this */ public function setOffset(int $var) { GPBUtil::checkInt32($var); $this->offset = $var;
return $this; }
}