release: prepare server 0.9.1

This commit is contained in:
2026-07-31 01:47:10 +03:00
parent f492782aff
commit dd6bb747a5
25 changed files with 944 additions and 55 deletions
+19
View File
@@ -166,6 +166,7 @@ type NotificationDelivery struct {
DeviceID string `json:"device_id,omitempty"`
AlertID string `json:"alert_id,omitempty"`
Event string `json:"event"`
Severity string `json:"severity,omitempty"`
Channel string `json:"channel"`
Status string `json:"status"`
Title string `json:"title"`
@@ -181,6 +182,24 @@ type NotificationDelivery struct {
SentAt *time.Time `json:"sent_at,omitempty"`
}
type NotificationChannelMetrics struct {
Channel string `json:"channel"`
LastSuccessAt *time.Time `json:"last_success_at,omitempty"`
LastErrorAt *time.Time `json:"last_error_at,omitempty"`
LastError string `json:"last_error,omitempty"`
LastErrorStatus string `json:"last_error_status,omitempty"`
}
type NotificationDeliveryMetrics struct {
Queued int `json:"queued"`
Sent int `json:"sent"`
Failed int `json:"failed"`
DeadLetter int `json:"dead_letter"`
OldestQueuedAt *time.Time `json:"oldest_queued_at,omitempty"`
OldestQueueAgeSeconds int64 `json:"oldest_queue_age_seconds"`
Channels []NotificationChannelMetrics `json:"channels"`
}
type RemoteSession struct {
ID string `json:"id"`
DeviceID string `json:"device_id"`