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.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677<?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;
/** * Monitor periodicity options. * * Protobuf type <code>openstatus.monitor.v1.Periodicity</code> */class Periodicity{ /** * Generated from protobuf enum <code>PERIODICITY_UNSPECIFIED = 0;</code> */ const PERIODICITY_UNSPECIFIED = 0; /** * Generated from protobuf enum <code>PERIODICITY_30S = 1;</code> */ const PERIODICITY_30S = 1; /** * Generated from protobuf enum <code>PERIODICITY_1M = 2;</code> */ const PERIODICITY_1M = 2; /** * Generated from protobuf enum <code>PERIODICITY_5M = 3;</code> */ const PERIODICITY_5M = 3; /** * Generated from protobuf enum <code>PERIODICITY_10M = 4;</code> */ const PERIODICITY_10M = 4; /** * Generated from protobuf enum <code>PERIODICITY_30M = 5;</code> */ const PERIODICITY_30M = 5; /** * Generated from protobuf enum <code>PERIODICITY_1H = 6;</code> */ const PERIODICITY_1H = 6;
private static $valueToName = [ self::PERIODICITY_UNSPECIFIED => 'PERIODICITY_UNSPECIFIED', self::PERIODICITY_30S => 'PERIODICITY_30S', self::PERIODICITY_1M => 'PERIODICITY_1M', self::PERIODICITY_5M => 'PERIODICITY_5M', self::PERIODICITY_10M => 'PERIODICITY_10M', self::PERIODICITY_30M => 'PERIODICITY_30M', self::PERIODICITY_1H => 'PERIODICITY_1H', ];
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); }}