modern-events-calendar-lite/app/api/Twilio/Rest/Monitor.php

41 lines
1.3 KiB
PHP
Raw Normal View History

2024-10-15 12:04:03 +02:00
<?php
namespace Twilio\Rest;
use Twilio\Rest\Monitor\V1;
class Monitor extends MonitorBase {
/**
* @deprecated Use v1->alerts instead.
*/
protected function getAlerts(): \Twilio\Rest\Monitor\V1\AlertList {
echo "alerts is deprecated. Use v1->alerts instead.";
return $this->v1->alerts;
}
/**
* @deprecated Use v1->alerts(\$sid) instead.
* @param string $sid The SID that identifies the resource to fetch
*/
protected function contextAlerts(string $sid): \Twilio\Rest\Monitor\V1\AlertContext {
echo "alerts(\$sid) is deprecated. Use v1->alerts(\$sid) instead.";
return $this->v1->alerts($sid);
}
/**
* @deprecated Use v1->events instead.
*/
protected function getEvents(): \Twilio\Rest\Monitor\V1\EventList {
echo "events is deprecated. Use v1->events instead.";
return $this->v1->events;
}
/**
* @deprecated Use v1->events(\$sid) instead.
* @param string $sid The SID that identifies the resource to fetch
*/
protected function contextEvents(string $sid): \Twilio\Rest\Monitor\V1\EventContext {
echo "events(\$sid) is deprecated. Use v1->events(\$sid) instead.";
return $this->v1->events($sid);
}
}