Files
ai-ops/internal/domain/model/notification.go
2026-05-12 17:48:22 +08:00

17 lines
535 B
Go

package model
import "time"
// NotificationLog 记录单次通知渠道发送结果。
type NotificationLog struct {
ID string `json:"id"`
EventID string `json:"event_id"`
ChannelID string `json:"channel_id"`
ChannelType string `json:"channel_type"`
Status string `json:"status"`
RetryCount int `json:"retry_count"`
ErrorMessage *string `json:"error_message,omitempty"`
SentAt *time.Time `json:"sent_at,omitempty"`
CreatedAt time.Time `json:"created_at"`
}