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.
2.6 kB · 76 lines
PHP
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/status_page.proto
namespace Openstatus\Status_page\V1;
use UnexpectedValueException;
/** * OverallStatus represents the aggregated status of all components on a page. * * Protobuf type <code>openstatus.status_page.v1.OverallStatus</code> */class OverallStatus{ /** * Generated from protobuf enum <code>OVERALL_STATUS_UNSPECIFIED = 0;</code> */ const OVERALL_STATUS_UNSPECIFIED = 0; /** * Generated from protobuf enum <code>OVERALL_STATUS_OPERATIONAL = 1;</code> */ const OVERALL_STATUS_OPERATIONAL = 1; /** * Generated from protobuf enum <code>OVERALL_STATUS_DEGRADED = 2;</code> */ const OVERALL_STATUS_DEGRADED = 2; /** * Generated from protobuf enum <code>OVERALL_STATUS_PARTIAL_OUTAGE = 3;</code> */ const OVERALL_STATUS_PARTIAL_OUTAGE = 3; /** * Generated from protobuf enum <code>OVERALL_STATUS_MAJOR_OUTAGE = 4;</code> */ const OVERALL_STATUS_MAJOR_OUTAGE = 4; /** * Generated from protobuf enum <code>OVERALL_STATUS_MAINTENANCE = 5;</code> */ const OVERALL_STATUS_MAINTENANCE = 5; /** * Generated from protobuf enum <code>OVERALL_STATUS_UNKNOWN = 6;</code> */ const OVERALL_STATUS_UNKNOWN = 6;
private static $valueToName = [ self::OVERALL_STATUS_UNSPECIFIED => 'OVERALL_STATUS_UNSPECIFIED', self::OVERALL_STATUS_OPERATIONAL => 'OVERALL_STATUS_OPERATIONAL', self::OVERALL_STATUS_DEGRADED => 'OVERALL_STATUS_DEGRADED', self::OVERALL_STATUS_PARTIAL_OUTAGE => 'OVERALL_STATUS_PARTIAL_OUTAGE', self::OVERALL_STATUS_MAJOR_OUTAGE => 'OVERALL_STATUS_MAJOR_OUTAGE', self::OVERALL_STATUS_MAINTENANCE => 'OVERALL_STATUS_MAINTENANCE', self::OVERALL_STATUS_UNKNOWN => 'OVERALL_STATUS_UNKNOWN', ];
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); }}