Resource Description for Alert

Properties for Alert

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
actionDatetime DateTime
alertParams string
object mixed
referenceDate DateTime
severity string
silencedDatetime DateTime
trigger Trigger

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\Alert;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$alert = Alert::retrieve(5433);

$trigger = $alert->getTrigger();
$referenceDate = $alert->getReferenceDate();
$object = $alert->getObject();
$severity = $alert->getSeverity();
$alertParams = $alert->getAlertParams();
$silencedDatetime = $alert->getSilencedDatetime();
$actionDatetime = $alert->getActionDatetime();

 

Related Resources

See also: Trigger