![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/twilio/sdk/src/Twilio/Rest/Monitor/V1/ |
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Monitor\V1; use Twilio\Options; use Twilio\Values; abstract class AlertOptions { /** * @param string $logLevel Only show alerts for this log-level * @param \DateTime $startDate Only include alerts that occurred on or after * this date * @param \DateTime $endDate Only include alerts that occurred on or before * this date * @return ReadAlertOptions Options builder */ public static function read($logLevel = Values::NONE, $startDate = Values::NONE, $endDate = Values::NONE) { return new ReadAlertOptions($logLevel, $startDate, $endDate); } } class ReadAlertOptions extends Options { /** * @param string $logLevel Only show alerts for this log-level * @param \DateTime $startDate Only include alerts that occurred on or after * this date * @param \DateTime $endDate Only include alerts that occurred on or before * this date */ public function __construct($logLevel = Values::NONE, $startDate = Values::NONE, $endDate = Values::NONE) { $this->options['logLevel'] = $logLevel; $this->options['startDate'] = $startDate; $this->options['endDate'] = $endDate; } /** * Only show alerts for this log-level. Can be: `error`, `warning`, `notice`, or `debug`. * * @param string $logLevel Only show alerts for this log-level * @return $this Fluent Builder */ public function setLogLevel($logLevel) { $this->options['logLevel'] = $logLevel; return $this; } /** * Only include alerts that occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. Queries for alerts older than 30 days are not supported. * * @param \DateTime $startDate Only include alerts that occurred on or after * this date * @return $this Fluent Builder */ public function setStartDate($startDate) { $this->options['startDate'] = $startDate; return $this; } /** * Only include alerts that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. Queries for alerts older than 30 days are not supported. * * @param \DateTime $endDate Only include alerts that occurred on or before * this date * @return $this Fluent Builder */ public function setEndDate($endDate) { $this->options['endDate'] = $endDate; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Monitor.V1.ReadAlertOptions ' . \implode(' ', $options) . ']'; } }