openstatus.monitor.v1.HTTPResponseLogListItem */ class HTTPResponseLogListItem extends \Google\Protobuf\Internal\Message { /** * Response log ID. * * Generated from protobuf field optional string id = 1 [json_name = "id"]; */ protected $id = null; /** * Latency in milliseconds. * * Generated from protobuf field int32 latency = 2 [json_name = "latency"]; */ protected $latency = 0; /** * HTTP status code. * * Generated from protobuf field optional int32 status_code = 3 [json_name = "statusCode"]; */ protected $status_code = null; /** * Monitor ID. * * Generated from protobuf field string monitor_id = 4 [json_name = "monitorId"]; */ protected $monitor_id = ''; /** * Request status classification. * * Generated from protobuf field .openstatus.monitor.v1.HTTPResponseLogRequestStatus request_status = 5 [json_name = "requestStatus"]; */ protected $request_status = 0; /** * Region where the check ran. * * Generated from protobuf field .openstatus.monitor.v1.Region region = 6 [json_name = "region"]; */ protected $region = 0; /** * Cron bucket timestamp in Unix milliseconds. * * Generated from protobuf field int64 cron_timestamp = 7 [json_name = "cronTimestamp"]; */ protected $cron_timestamp = 0; /** * Check trigger. * * Generated from protobuf field .openstatus.monitor.v1.HTTPResponseLogTrigger trigger = 8 [json_name = "trigger"]; */ protected $trigger = 0; /** * Response timestamp in Unix milliseconds. * * Generated from protobuf field int64 timestamp = 9 [json_name = "timestamp"]; */ protected $timestamp = 0; /** * Timing phases. * * Generated from protobuf field optional .openstatus.monitor.v1.HTTPResponseLogTiming timing = 10 [json_name = "timing"]; */ 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 optional string id = 1 [json_name = "id"]; * @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 optional string id = 1 [json_name = "id"]; * @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 int32 latency = 2 [json_name = "latency"]; * @return int */ public function getLatency() { return $this->latency; } /** * Latency in milliseconds. * * Generated from protobuf field int32 latency = 2 [json_name = "latency"]; * @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 optional int32 status_code = 3 [json_name = "statusCode"]; * @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 optional int32 status_code = 3 [json_name = "statusCode"]; * @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 string monitor_id = 4 [json_name = "monitorId"]; * @return string */ public function getMonitorId() { return $this->monitor_id; } /** * Monitor ID. * * Generated from protobuf field string monitor_id = 4 [json_name = "monitorId"]; * @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 .openstatus.monitor.v1.HTTPResponseLogRequestStatus request_status = 5 [json_name = "requestStatus"]; * @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 .openstatus.monitor.v1.HTTPResponseLogRequestStatus request_status = 5 [json_name = "requestStatus"]; * @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 .openstatus.monitor.v1.Region region = 6 [json_name = "region"]; * @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 .openstatus.monitor.v1.Region region = 6 [json_name = "region"]; * @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 int64 cron_timestamp = 7 [json_name = "cronTimestamp"]; * @return int|string */ public function getCronTimestamp() { return $this->cron_timestamp; } /** * Cron bucket timestamp in Unix milliseconds. * * Generated from protobuf field int64 cron_timestamp = 7 [json_name = "cronTimestamp"]; * @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 .openstatus.monitor.v1.HTTPResponseLogTrigger trigger = 8 [json_name = "trigger"]; * @return int one of the values in {@see \Openstatus\Monitor\V1\HTTPResponseLogTrigger} */ public function getTrigger() { return $this->trigger; } /** * Check trigger. * * Generated from protobuf field .openstatus.monitor.v1.HTTPResponseLogTrigger trigger = 8 [json_name = "trigger"]; * @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 int64 timestamp = 9 [json_name = "timestamp"]; * @return int|string */ public function getTimestamp() { return $this->timestamp; } /** * Response timestamp in Unix milliseconds. * * Generated from protobuf field int64 timestamp = 9 [json_name = "timestamp"]; * @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 optional .openstatus.monitor.v1.HTTPResponseLogTiming timing = 10 [json_name = "timing"]; * @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 optional .openstatus.monitor.v1.HTTPResponseLogTiming timing = 10 [json_name = "timing"]; * @param \Openstatus\Monitor\V1\HTTPResponseLogTiming $var * @return $this */ public function setTiming(\Openstatus\Monitor\V1\HTTPResponseLogTiming|null $var) { $this->timing = $var; return $this; } }