'decimal:2', 'is_active' => 'boolean', 'last_triggered_at' => 'datetime', ]; } public function website(): BelongsTo { return $this->belongsTo(Website::class); } public function notifications(): HasMany { return $this->hasMany(AlertNotification::class); } public static array $metrics = [ 'page_views' => 'Page Views', 'visitors' => 'Unique Visitors', 'sessions' => 'Sessions', 'bounce_rate' => 'Bounce Rate', ]; public static array $conditions = [ 'above' => 'goes above', 'below' => 'drops below', 'change_up' => '% increase exceeds', 'change_down' => '% decrease exceeds', ]; }