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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263<?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;
/** * HTTPResponseLogTrigger describes what started the monitor check. * * Protobuf type <code>openstatus.monitor.v1.HTTPResponseLogTrigger</code> */class HTTPResponseLogTrigger{ /** * Unspecified trigger. * * Generated from protobuf enum <code>HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED = 0;</code> */ const HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED = 0; /** * Scheduled monitor run. * * Generated from protobuf enum <code>HTTP_RESPONSE_LOG_TRIGGER_CRON = 1;</code> */ const HTTP_RESPONSE_LOG_TRIGGER_CRON = 1; /** * API-triggered monitor run. * * Generated from protobuf enum <code>HTTP_RESPONSE_LOG_TRIGGER_API = 2;</code> */ const HTTP_RESPONSE_LOG_TRIGGER_API = 2;
private static $valueToName = [ self::HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED => 'HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED', self::HTTP_RESPONSE_LOG_TRIGGER_CRON => 'HTTP_RESPONSE_LOG_TRIGGER_CRON', self::HTTP_RESPONSE_LOG_TRIGGER_API => 'HTTP_RESPONSE_LOG_TRIGGER_API', ];
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); }}