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
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970<?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 UnexpectedValueException;
/** * HTTPResponseLogRequestStatus is the result classification for an HTTP response log. * * Protobuf type <code>openstatus.monitor.v1.HTTPResponseLogRequestStatus</code> */class HTTPResponseLogRequestStatus{ /** * Unspecified request status. * * Generated from protobuf enum <code>HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED = 0;</code> */ const HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED = 0; /** * The monitor response satisfied its assertions. * * Generated from protobuf enum <code>HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS = 1;</code> */ const HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS = 1; /** * The monitor response failed its assertions or request. * * Generated from protobuf enum <code>HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR = 2;</code> */ const HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR = 2; /** * The monitor response was slower than the degraded threshold. * * Generated from protobuf enum <code>HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED = 3;</code> */ const HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED = 3;
private static $valueToName = [ self::HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED => 'HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED', self::HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS => 'HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS', self::HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR => 'HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR', self::HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED => 'HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED', ];
public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; }
public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); }}