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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443<?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;
/** * GetMonitorSummaryResponse is the response containing aggregated metrics for a monitor. * * Generated from protobuf message <code>openstatus.monitor.v1.GetMonitorSummaryResponse</code> */class GetMonitorSummaryResponse extends \Google\Protobuf\Internal\Message{ /** * Monitor ID. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> */ protected $id = ''; /** * Timestamp of the last check in RFC 3339 format. * * Generated from protobuf field <code>string last_ping_at = 2 [json_name = "lastPingAt"];</code> */ protected $last_ping_at = ''; /** * Total number of successful requests. * * Generated from protobuf field <code>int64 total_successful = 3 [json_name = "totalSuccessful"];</code> */ protected $total_successful = 0; /** * Total number of degraded requests. * * Generated from protobuf field <code>int64 total_degraded = 4 [json_name = "totalDegraded"];</code> */ protected $total_degraded = 0; /** * Total number of failed requests. * * Generated from protobuf field <code>int64 total_failed = 5 [json_name = "totalFailed"];</code> */ protected $total_failed = 0; /** * 50th percentile (median) latency in milliseconds. * * Generated from protobuf field <code>int64 p50 = 6 [json_name = "p50"];</code> */ protected $p50 = 0; /** * 75th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p75 = 7 [json_name = "p75"];</code> */ protected $p75 = 0; /** * 90th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p90 = 8 [json_name = "p90"];</code> */ protected $p90 = 0; /** * 95th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p95 = 9 [json_name = "p95"];</code> */ protected $p95 = 0; /** * 99th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p99 = 10 [json_name = "p99"];</code> */ protected $p99 = 0; /** * Time range used for the metrics. * * Generated from protobuf field <code>.openstatus.monitor.v1.TimeRange time_range = 11 [json_name = "timeRange"];</code> */ protected $time_range = 0; /** * Regions included in the metrics. * * Generated from protobuf field <code>repeated .openstatus.monitor.v1.Region regions = 12 [json_name = "regions"];</code> */ private $regions;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Monitor ID. * @type string $last_ping_at * Timestamp of the last check in RFC 3339 format. * @type int|string $total_successful * Total number of successful requests. * @type int|string $total_degraded * Total number of degraded requests. * @type int|string $total_failed * Total number of failed requests. * @type int|string $p50 * 50th percentile (median) latency in milliseconds. * @type int|string $p75 * 75th percentile latency in milliseconds. * @type int|string $p90 * 90th percentile latency in milliseconds. * @type int|string $p95 * 95th percentile latency in milliseconds. * @type int|string $p99 * 99th percentile latency in milliseconds. * @type int $time_range * Time range used for the metrics. * @type int[] $regions * Regions included in the metrics. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Monitor\V1\Service::initOnce(); parent::__construct($data); }
/** * Monitor ID. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @return string */ public function getId() { return $this->id; }
/** * Monitor ID. * * Generated from protobuf field <code>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; }
/** * Timestamp of the last check in RFC 3339 format. * * Generated from protobuf field <code>string last_ping_at = 2 [json_name = "lastPingAt"];</code> * @return string */ public function getLastPingAt() { return $this->last_ping_at; }
/** * Timestamp of the last check in RFC 3339 format. * * Generated from protobuf field <code>string last_ping_at = 2 [json_name = "lastPingAt"];</code> * @param string $var * @return $this */ public function setLastPingAt(string $var) { GPBUtil::checkString($var, true); $this->last_ping_at = $var;
return $this; }
/** * Total number of successful requests. * * Generated from protobuf field <code>int64 total_successful = 3 [json_name = "totalSuccessful"];</code> * @return int|string */ public function getTotalSuccessful() { return $this->total_successful; }
/** * Total number of successful requests. * * Generated from protobuf field <code>int64 total_successful = 3 [json_name = "totalSuccessful"];</code> * @param int|string $var * @return $this */ public function setTotalSuccessful(int|string $var) { GPBUtil::checkInt64($var); $this->total_successful = $var;
return $this; }
/** * Total number of degraded requests. * * Generated from protobuf field <code>int64 total_degraded = 4 [json_name = "totalDegraded"];</code> * @return int|string */ public function getTotalDegraded() { return $this->total_degraded; }
/** * Total number of degraded requests. * * Generated from protobuf field <code>int64 total_degraded = 4 [json_name = "totalDegraded"];</code> * @param int|string $var * @return $this */ public function setTotalDegraded(int|string $var) { GPBUtil::checkInt64($var); $this->total_degraded = $var;
return $this; }
/** * Total number of failed requests. * * Generated from protobuf field <code>int64 total_failed = 5 [json_name = "totalFailed"];</code> * @return int|string */ public function getTotalFailed() { return $this->total_failed; }
/** * Total number of failed requests. * * Generated from protobuf field <code>int64 total_failed = 5 [json_name = "totalFailed"];</code> * @param int|string $var * @return $this */ public function setTotalFailed(int|string $var) { GPBUtil::checkInt64($var); $this->total_failed = $var;
return $this; }
/** * 50th percentile (median) latency in milliseconds. * * Generated from protobuf field <code>int64 p50 = 6 [json_name = "p50"];</code> * @return int|string */ public function getP50() { return $this->p50; }
/** * 50th percentile (median) latency in milliseconds. * * Generated from protobuf field <code>int64 p50 = 6 [json_name = "p50"];</code> * @param int|string $var * @return $this */ public function setP50(int|string $var) { GPBUtil::checkInt64($var); $this->p50 = $var;
return $this; }
/** * 75th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p75 = 7 [json_name = "p75"];</code> * @return int|string */ public function getP75() { return $this->p75; }
/** * 75th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p75 = 7 [json_name = "p75"];</code> * @param int|string $var * @return $this */ public function setP75(int|string $var) { GPBUtil::checkInt64($var); $this->p75 = $var;
return $this; }
/** * 90th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p90 = 8 [json_name = "p90"];</code> * @return int|string */ public function getP90() { return $this->p90; }
/** * 90th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p90 = 8 [json_name = "p90"];</code> * @param int|string $var * @return $this */ public function setP90(int|string $var) { GPBUtil::checkInt64($var); $this->p90 = $var;
return $this; }
/** * 95th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p95 = 9 [json_name = "p95"];</code> * @return int|string */ public function getP95() { return $this->p95; }
/** * 95th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p95 = 9 [json_name = "p95"];</code> * @param int|string $var * @return $this */ public function setP95(int|string $var) { GPBUtil::checkInt64($var); $this->p95 = $var;
return $this; }
/** * 99th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p99 = 10 [json_name = "p99"];</code> * @return int|string */ public function getP99() { return $this->p99; }
/** * 99th percentile latency in milliseconds. * * Generated from protobuf field <code>int64 p99 = 10 [json_name = "p99"];</code> * @param int|string $var * @return $this */ public function setP99(int|string $var) { GPBUtil::checkInt64($var); $this->p99 = $var;
return $this; }
/** * Time range used for the metrics. * * Generated from protobuf field <code>.openstatus.monitor.v1.TimeRange time_range = 11 [json_name = "timeRange"];</code> * @return int one of the values in {@see \Openstatus\Monitor\V1\TimeRange} */ public function getTimeRange() { return $this->time_range; }
/** * Time range used for the metrics. * * Generated from protobuf field <code>.openstatus.monitor.v1.TimeRange time_range = 11 [json_name = "timeRange"];</code> * @param int $var one of the values in {@see \Openstatus\Monitor\V1\TimeRange} * @return $this */ public function setTimeRange(int $var) { GPBUtil::checkEnum($var, \Openstatus\Monitor\V1\TimeRange::class); $this->time_range = $var;
return $this; }
/** * Regions included in the metrics. * * Generated from protobuf field <code>repeated .openstatus.monitor.v1.Region regions = 12 [json_name = "regions"];</code> * @return RepeatedField<int> one of the values in {@see \Openstatus\Monitor\V1\Region} */ public function getRegions() { return $this->regions; }
/** * Regions included in the metrics. * * Generated from protobuf field <code>repeated .openstatus.monitor.v1.Region regions = 12 [json_name = "regions"];</code> * @param int[] $var one of the values in {@see \Openstatus\Monitor\V1\Region} * @return $this */ public function setRegions(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Openstatus\Monitor\V1\Region::class); $this->regions = $arr;
return $this; }
}