ajoute les alertes Prometheus du self-healing et installe Larastan (dette de l'étape 8, 72 erreurs corrigées à la racine)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
f2649d0f8b
commit
d47e8356fc
23 changed files with 340 additions and 22 deletions
|
|
@ -2,14 +2,11 @@
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class LabSessionMachine extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
// Self-healing (SurveillanceVm) : la VM a été relancée automatiquement,
|
||||
// ou ne répond plus malgré les relances.
|
||||
public const RELANCEE = 'relancee';
|
||||
|
|
@ -22,6 +19,7 @@ class LabSessionMachine extends Model
|
|||
'sante_a' => 'datetime',
|
||||
];
|
||||
|
||||
/** @return BelongsTo<LabSession, $this> */
|
||||
public function labSession(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(LabSession::class);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue