Files
librenms-librenms/app/Models/Sla.php
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
602 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use LibreNMS\Interfaces\Models\Keyable;
class Sla extends DeviceRelatedModel implements Keyable
{
protected $table = 'slas';
protected $primaryKey = 'sla_id';
public $timestamps = false;
protected $fillable = [
'device_id',
'sla_nr',
'owner',
'tag',
'rtt_type',
'rtt',
'status',
'opstatus',
'deleted',
];
protected $attributes = [ // default values
'deleted' => 0,
];
public function getCompositeKey()
{
return "$this->owner-$this->tag";
}
}