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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404<?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;
/** * HTTPResponseLogListItem is a compact response log entry. * * Generated from protobuf message <code>openstatus.monitor.v1.HTTPResponseLogListItem</code> */class HTTPResponseLogListItem extends \Google\Protobuf\Internal\Message{ /** * Response log ID. * * Generated from protobuf field <code>optional string id = 1 [json_name = "id"];</code> */ protected $id = null; /** * Latency in milliseconds. * * Generated from protobuf field <code>int32 latency = 2 [json_name = "latency"];</code> */ protected $latency = 0; /** * HTTP status code. * * Generated from protobuf field <code>optional int32 status_code = 3 [json_name = "statusCode"];</code> */ protected $status_code = null; /** * Monitor ID. * * Generated from protobuf field <code>string monitor_id = 4 [json_name = "monitorId"];</code> */ protected $monitor_id = ''; /** * Request status classification. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogRequestStatus request_status = 5 [json_name = "requestStatus"];</code> */ protected $request_status = 0; /** * Region where the check ran. * * Generated from protobuf field <code>.openstatus.monitor.v1.Region region = 6 [json_name = "region"];</code> */ protected $region = 0; /** * Cron bucket timestamp in Unix milliseconds. * * Generated from protobuf field <code>int64 cron_timestamp = 7 [json_name = "cronTimestamp"];</code> */ protected $cron_timestamp = 0; /** * Check trigger. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogTrigger trigger = 8 [json_name = "trigger"];</code> */ protected $trigger = 0; /** * Response timestamp in Unix milliseconds. * * Generated from protobuf field <code>int64 timestamp = 9 [json_name = "timestamp"];</code> */ protected $timestamp = 0; /** * Timing phases. * * Generated from protobuf field <code>optional .openstatus.monitor.v1.HTTPResponseLogTiming timing = 10 [json_name = "timing"];</code> */ protected $timing = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Response log ID. * @type int $latency * Latency in milliseconds. * @type int $status_code * HTTP status code. * @type string $monitor_id * Monitor ID. * @type int $request_status * Request status classification. * @type int $region * Region where the check ran. * @type int|string $cron_timestamp * Cron bucket timestamp in Unix milliseconds. * @type int $trigger * Check trigger. * @type int|string $timestamp * Response timestamp in Unix milliseconds. * @type \Openstatus\Monitor\V1\HTTPResponseLogTiming $timing * Timing phases. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Monitor\V1\Service::initOnce(); parent::__construct($data); }
/** * Response log ID. * * Generated from protobuf field <code>optional string id = 1 [json_name = "id"];</code> * @return string */ public function getId() { return isset($this->id) ? $this->id : ''; }
public function hasId() { return isset($this->id); }
public function clearId() { unset($this->id); }
/** * Response log ID. * * Generated from protobuf field <code>optional string id = 1 [json_name = "id"];</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var;
return $this; }
/** * Latency in milliseconds. * * Generated from protobuf field <code>int32 latency = 2 [json_name = "latency"];</code> * @return int */ public function getLatency() { return $this->latency; }
/** * Latency in milliseconds. * * Generated from protobuf field <code>int32 latency = 2 [json_name = "latency"];</code> * @param int $var * @return $this */ public function setLatency(int $var) { GPBUtil::checkInt32($var); $this->latency = $var;
return $this; }
/** * HTTP status code. * * Generated from protobuf field <code>optional int32 status_code = 3 [json_name = "statusCode"];</code> * @return int */ public function getStatusCode() { return isset($this->status_code) ? $this->status_code : 0; }
public function hasStatusCode() { return isset($this->status_code); }
public function clearStatusCode() { unset($this->status_code); }
/** * HTTP status code. * * Generated from protobuf field <code>optional int32 status_code = 3 [json_name = "statusCode"];</code> * @param int $var * @return $this */ public function setStatusCode(int $var) { GPBUtil::checkInt32($var); $this->status_code = $var;
return $this; }
/** * Monitor ID. * * Generated from protobuf field <code>string monitor_id = 4 [json_name = "monitorId"];</code> * @return string */ public function getMonitorId() { return $this->monitor_id; }
/** * Monitor ID. * * Generated from protobuf field <code>string monitor_id = 4 [json_name = "monitorId"];</code> * @param string $var * @return $this */ public function setMonitorId(string $var) { GPBUtil::checkString($var, true); $this->monitor_id = $var;
return $this; }
/** * Request status classification. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogRequestStatus request_status = 5 [json_name = "requestStatus"];</code> * @return int one of the values in {@see \Openstatus\Monitor\V1\HTTPResponseLogRequestStatus} */ public function getRequestStatus() { return $this->request_status; }
/** * Request status classification. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogRequestStatus request_status = 5 [json_name = "requestStatus"];</code> * @param int $var one of the values in {@see \Openstatus\Monitor\V1\HTTPResponseLogRequestStatus} * @return $this */ public function setRequestStatus(int $var) { GPBUtil::checkEnum($var, \Openstatus\Monitor\V1\HTTPResponseLogRequestStatus::class); $this->request_status = $var;
return $this; }
/** * Region where the check ran. * * Generated from protobuf field <code>.openstatus.monitor.v1.Region region = 6 [json_name = "region"];</code> * @return int one of the values in {@see \Openstatus\Monitor\V1\Region} */ public function getRegion() { return $this->region; }
/** * Region where the check ran. * * Generated from protobuf field <code>.openstatus.monitor.v1.Region region = 6 [json_name = "region"];</code> * @param int $var one of the values in {@see \Openstatus\Monitor\V1\Region} * @return $this */ public function setRegion(int $var) { GPBUtil::checkEnum($var, \Openstatus\Monitor\V1\Region::class); $this->region = $var;
return $this; }
/** * Cron bucket timestamp in Unix milliseconds. * * Generated from protobuf field <code>int64 cron_timestamp = 7 [json_name = "cronTimestamp"];</code> * @return int|string */ public function getCronTimestamp() { return $this->cron_timestamp; }
/** * Cron bucket timestamp in Unix milliseconds. * * Generated from protobuf field <code>int64 cron_timestamp = 7 [json_name = "cronTimestamp"];</code> * @param int|string $var * @return $this */ public function setCronTimestamp(int|string $var) { GPBUtil::checkInt64($var); $this->cron_timestamp = $var;
return $this; }
/** * Check trigger. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogTrigger trigger = 8 [json_name = "trigger"];</code> * @return int one of the values in {@see \Openstatus\Monitor\V1\HTTPResponseLogTrigger} */ public function getTrigger() { return $this->trigger; }
/** * Check trigger. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogTrigger trigger = 8 [json_name = "trigger"];</code> * @param int $var one of the values in {@see \Openstatus\Monitor\V1\HTTPResponseLogTrigger} * @return $this */ public function setTrigger(int $var) { GPBUtil::checkEnum($var, \Openstatus\Monitor\V1\HTTPResponseLogTrigger::class); $this->trigger = $var;
return $this; }
/** * Response timestamp in Unix milliseconds. * * Generated from protobuf field <code>int64 timestamp = 9 [json_name = "timestamp"];</code> * @return int|string */ public function getTimestamp() { return $this->timestamp; }
/** * Response timestamp in Unix milliseconds. * * Generated from protobuf field <code>int64 timestamp = 9 [json_name = "timestamp"];</code> * @param int|string $var * @return $this */ public function setTimestamp(int|string $var) { GPBUtil::checkInt64($var); $this->timestamp = $var;
return $this; }
/** * Timing phases. * * Generated from protobuf field <code>optional .openstatus.monitor.v1.HTTPResponseLogTiming timing = 10 [json_name = "timing"];</code> * @return \Openstatus\Monitor\V1\HTTPResponseLogTiming|null */ public function getTiming() { return $this->timing; }
public function hasTiming() { return isset($this->timing); }
public function clearTiming() { unset($this->timing); }
/** * Timing phases. * * Generated from protobuf field <code>optional .openstatus.monitor.v1.HTTPResponseLogTiming timing = 10 [json_name = "timing"];</code> * @param \Openstatus\Monitor\V1\HTTPResponseLogTiming $var * @return $this */ public function setTiming(\Openstatus\Monitor\V1\HTTPResponseLogTiming|null $var) { $this->timing = $var;
return $this; }
}