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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/monitor/v1/monitor.proto
namespace Openstatus\Monitor\V1;
use UnexpectedValueException;
/** * Geographic regions where monitors can run checks from. * * Protobuf type <code>openstatus.monitor.v1.Region</code> */class Region{ /** * Generated from protobuf enum <code>REGION_UNSPECIFIED = 0;</code> */ const REGION_UNSPECIFIED = 0; /** * Fly.io regions * * Generated from protobuf enum <code>REGION_FLY_AMS = 1;</code> */ const REGION_FLY_AMS = 1; /** * Stockholm, Sweden * * Generated from protobuf enum <code>REGION_FLY_ARN = 2;</code> */ const REGION_FLY_ARN = 2; /** * Mumbai, India * * Generated from protobuf enum <code>REGION_FLY_BOM = 3;</code> */ const REGION_FLY_BOM = 3; /** * Paris, France * * Generated from protobuf enum <code>REGION_FLY_CDG = 4;</code> */ const REGION_FLY_CDG = 4; /** * Dallas, USA * * Generated from protobuf enum <code>REGION_FLY_DFW = 5;</code> */ const REGION_FLY_DFW = 5; /** * Newark, USA * * Generated from protobuf enum <code>REGION_FLY_EWR = 6;</code> */ const REGION_FLY_EWR = 6; /** * Frankfurt, Germany * * Generated from protobuf enum <code>REGION_FLY_FRA = 7;</code> */ const REGION_FLY_FRA = 7; /** * São Paulo, Brazil * * Generated from protobuf enum <code>REGION_FLY_GRU = 8;</code> */ const REGION_FLY_GRU = 8; /** * Ashburn, USA * * Generated from protobuf enum <code>REGION_FLY_IAD = 9;</code> */ const REGION_FLY_IAD = 9; /** * Johannesburg, South Africa * * Generated from protobuf enum <code>REGION_FLY_JNB = 10;</code> */ const REGION_FLY_JNB = 10; /** * Los Angeles, USA * * Generated from protobuf enum <code>REGION_FLY_LAX = 11;</code> */ const REGION_FLY_LAX = 11; /** * London, UK * * Generated from protobuf enum <code>REGION_FLY_LHR = 12;</code> */ const REGION_FLY_LHR = 12; /** * Tokyo, Japan * * Generated from protobuf enum <code>REGION_FLY_NRT = 13;</code> */ const REGION_FLY_NRT = 13; /** * Chicago, USA * * Generated from protobuf enum <code>REGION_FLY_ORD = 14;</code> */ const REGION_FLY_ORD = 14; /** * San Jose, USA * * Generated from protobuf enum <code>REGION_FLY_SJC = 15;</code> */ const REGION_FLY_SJC = 15; /** * Singapore * * Generated from protobuf enum <code>REGION_FLY_SIN = 16;</code> */ const REGION_FLY_SIN = 16; /** * Sydney, Australia * * Generated from protobuf enum <code>REGION_FLY_SYD = 17;</code> */ const REGION_FLY_SYD = 17; /** * Toronto, Canada * * Generated from protobuf enum <code>REGION_FLY_YYZ = 18;</code> */ const REGION_FLY_YYZ = 18; /** * Koyeb regions * * Generated from protobuf enum <code>REGION_KOYEB_FRA = 19;</code> */ const REGION_KOYEB_FRA = 19; /** * Koyeb Paris * * Generated from protobuf enum <code>REGION_KOYEB_PAR = 20;</code> */ const REGION_KOYEB_PAR = 20; /** * Koyeb San Francisco * * Generated from protobuf enum <code>REGION_KOYEB_SFO = 21;</code> */ const REGION_KOYEB_SFO = 21; /** * Koyeb Singapore * * Generated from protobuf enum <code>REGION_KOYEB_SIN = 22;</code> */ const REGION_KOYEB_SIN = 22; /** * Koyeb Tokyo * * Generated from protobuf enum <code>REGION_KOYEB_TYO = 23;</code> */ const REGION_KOYEB_TYO = 23; /** * Koyeb Washington * * Generated from protobuf enum <code>REGION_KOYEB_WAS = 24;</code> */ const REGION_KOYEB_WAS = 24; /** * Railway regions * * Generated from protobuf enum <code>REGION_RAILWAY_US_WEST2 = 25;</code> */ const REGION_RAILWAY_US_WEST2 = 25; /** * Railway US East * * Generated from protobuf enum <code>REGION_RAILWAY_US_EAST4 = 26;</code> */ const REGION_RAILWAY_US_EAST4 = 26; /** * Railway Europe West * * Generated from protobuf enum <code>REGION_RAILWAY_EUROPE_WEST4 = 27;</code> */ const REGION_RAILWAY_EUROPE_WEST4 = 27; /** * Railway Asia Southeast * * Generated from protobuf enum <code>REGION_RAILWAY_ASIA_SOUTHEAST1 = 28;</code> */ const REGION_RAILWAY_ASIA_SOUTHEAST1 = 28;
private static $valueToName = [ self::REGION_UNSPECIFIED => 'REGION_UNSPECIFIED', self::REGION_FLY_AMS => 'REGION_FLY_AMS', self::REGION_FLY_ARN => 'REGION_FLY_ARN', self::REGION_FLY_BOM => 'REGION_FLY_BOM', self::REGION_FLY_CDG => 'REGION_FLY_CDG', self::REGION_FLY_DFW => 'REGION_FLY_DFW', self::REGION_FLY_EWR => 'REGION_FLY_EWR', self::REGION_FLY_FRA => 'REGION_FLY_FRA', self::REGION_FLY_GRU => 'REGION_FLY_GRU', self::REGION_FLY_IAD => 'REGION_FLY_IAD', self::REGION_FLY_JNB => 'REGION_FLY_JNB', self::REGION_FLY_LAX => 'REGION_FLY_LAX', self::REGION_FLY_LHR => 'REGION_FLY_LHR', self::REGION_FLY_NRT => 'REGION_FLY_NRT', self::REGION_FLY_ORD => 'REGION_FLY_ORD', self::REGION_FLY_SJC => 'REGION_FLY_SJC', self::REGION_FLY_SIN => 'REGION_FLY_SIN', self::REGION_FLY_SYD => 'REGION_FLY_SYD', self::REGION_FLY_YYZ => 'REGION_FLY_YYZ', self::REGION_KOYEB_FRA => 'REGION_KOYEB_FRA', self::REGION_KOYEB_PAR => 'REGION_KOYEB_PAR', self::REGION_KOYEB_SFO => 'REGION_KOYEB_SFO', self::REGION_KOYEB_SIN => 'REGION_KOYEB_SIN', self::REGION_KOYEB_TYO => 'REGION_KOYEB_TYO', self::REGION_KOYEB_WAS => 'REGION_KOYEB_WAS', self::REGION_RAILWAY_US_WEST2 => 'REGION_RAILWAY_US_WEST2', self::REGION_RAILWAY_US_EAST4 => 'REGION_RAILWAY_US_EAST4', self::REGION_RAILWAY_EUROPE_WEST4 => 'REGION_RAILWAY_EUROPE_WEST4', self::REGION_RAILWAY_ASIA_SOUTHEAST1 => 'REGION_RAILWAY_ASIA_SOUTHEAST1', ];
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); }}