File "Monitor.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/twilio/sdk/src/Twilio/Rest/Monitor.php
File size: 1.24 KB
MIME-type: text/x-php
Charset: utf-8

<?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);
    }
}