41 lines
No EOL
1.3 KiB
PHP
Executable file
41 lines
No EOL
1.3 KiB
PHP
Executable file
<?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);
|
|
}
|
|
} |