openstatus.monitor.v1.GetMonitorSummaryResponse */ class GetMonitorSummaryResponse extends \Google\Protobuf\Internal\Message { /** * Monitor ID. * * Generated from protobuf field string id = 1 [json_name = "id"]; */ protected $id = ''; /** * Timestamp of the last check in RFC 3339 format. * * Generated from protobuf field string last_ping_at = 2 [json_name = "lastPingAt"]; */ protected $last_ping_at = ''; /** * Total number of successful requests. * * Generated from protobuf field int64 total_successful = 3 [json_name = "totalSuccessful"]; */ protected $total_successful = 0; /** * Total number of degraded requests. * * Generated from protobuf field int64 total_degraded = 4 [json_name = "totalDegraded"]; */ protected $total_degraded = 0; /** * Total number of failed requests. * * Generated from protobuf field int64 total_failed = 5 [json_name = "totalFailed"]; */ protected $total_failed = 0; /** * 50th percentile (median) latency in milliseconds. * * Generated from protobuf field int64 p50 = 6 [json_name = "p50"]; */ protected $p50 = 0; /** * 75th percentile latency in milliseconds. * * Generated from protobuf field int64 p75 = 7 [json_name = "p75"]; */ protected $p75 = 0; /** * 90th percentile latency in milliseconds. * * Generated from protobuf field int64 p90 = 8 [json_name = "p90"]; */ protected $p90 = 0; /** * 95th percentile latency in milliseconds. * * Generated from protobuf field int64 p95 = 9 [json_name = "p95"]; */ protected $p95 = 0; /** * 99th percentile latency in milliseconds. * * Generated from protobuf field int64 p99 = 10 [json_name = "p99"]; */ protected $p99 = 0; /** * Time range used for the metrics. * * Generated from protobuf field .openstatus.monitor.v1.TimeRange time_range = 11 [json_name = "timeRange"]; */ protected $time_range = 0; /** * Regions included in the metrics. * * Generated from protobuf field repeated .openstatus.monitor.v1.Region regions = 12 [json_name = "regions"]; */ 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 string id = 1 [json_name = "id"]; * @return string */ public function getId() { return $this->id; } /** * Monitor ID. * * Generated from protobuf field 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; } /** * Timestamp of the last check in RFC 3339 format. * * Generated from protobuf field string last_ping_at = 2 [json_name = "lastPingAt"]; * @return string */ public function getLastPingAt() { return $this->last_ping_at; } /** * Timestamp of the last check in RFC 3339 format. * * Generated from protobuf field string last_ping_at = 2 [json_name = "lastPingAt"]; * @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 int64 total_successful = 3 [json_name = "totalSuccessful"]; * @return int|string */ public function getTotalSuccessful() { return $this->total_successful; } /** * Total number of successful requests. * * Generated from protobuf field int64 total_successful = 3 [json_name = "totalSuccessful"]; * @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 int64 total_degraded = 4 [json_name = "totalDegraded"]; * @return int|string */ public function getTotalDegraded() { return $this->total_degraded; } /** * Total number of degraded requests. * * Generated from protobuf field int64 total_degraded = 4 [json_name = "totalDegraded"]; * @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 int64 total_failed = 5 [json_name = "totalFailed"]; * @return int|string */ public function getTotalFailed() { return $this->total_failed; } /** * Total number of failed requests. * * Generated from protobuf field int64 total_failed = 5 [json_name = "totalFailed"]; * @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 int64 p50 = 6 [json_name = "p50"]; * @return int|string */ public function getP50() { return $this->p50; } /** * 50th percentile (median) latency in milliseconds. * * Generated from protobuf field int64 p50 = 6 [json_name = "p50"]; * @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 int64 p75 = 7 [json_name = "p75"]; * @return int|string */ public function getP75() { return $this->p75; } /** * 75th percentile latency in milliseconds. * * Generated from protobuf field int64 p75 = 7 [json_name = "p75"]; * @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 int64 p90 = 8 [json_name = "p90"]; * @return int|string */ public function getP90() { return $this->p90; } /** * 90th percentile latency in milliseconds. * * Generated from protobuf field int64 p90 = 8 [json_name = "p90"]; * @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 int64 p95 = 9 [json_name = "p95"]; * @return int|string */ public function getP95() { return $this->p95; } /** * 95th percentile latency in milliseconds. * * Generated from protobuf field int64 p95 = 9 [json_name = "p95"]; * @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 int64 p99 = 10 [json_name = "p99"]; * @return int|string */ public function getP99() { return $this->p99; } /** * 99th percentile latency in milliseconds. * * Generated from protobuf field int64 p99 = 10 [json_name = "p99"]; * @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 .openstatus.monitor.v1.TimeRange time_range = 11 [json_name = "timeRange"]; * @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 .openstatus.monitor.v1.TimeRange time_range = 11 [json_name = "timeRange"]; * @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 repeated .openstatus.monitor.v1.Region regions = 12 [json_name = "regions"]; * @return RepeatedField 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 repeated .openstatus.monitor.v1.Region regions = 12 [json_name = "regions"]; * @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; } }