Resource Description for UsageLogEntry

Properties for UsageLogEntry

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
action string
controller string
event_data string
event_name string
event_type string
message string
module string
severity int
timestamp DateTime
user User

SDK Example for PHP

<?PHP

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

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

$usageLogEntry = UsageLogEntry::retrieve(5433);

$timestamp = $usageLogEntry->getTimestamp();
$user = $usageLogEntry->getUser();
$severity = $usageLogEntry->getSeverity();
$message = $usageLogEntry->getMessage();
$event_type = $usageLogEntry->getEvent_type();
$event_name = $usageLogEntry->getEvent_name();
$event_data = $usageLogEntry->getEvent_data();
$module = $usageLogEntry->getModule();
$controller = $usageLogEntry->getController();
$action = $usageLogEntry->getAction();

 

Related Resources

See also: User