2026-01-15 22:39:37 -06:00
|
|
|
// FILE: internal/model/alert.go
|
2026-01-13 18:14:21 -06:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
// Placeholder for NWS alerts (GeoJSON feature properties are rich).
|
|
|
|
|
type WeatherAlert struct {
|
2026-01-15 22:39:37 -06:00
|
|
|
ID string `json:"id"`
|
2026-01-13 18:14:21 -06:00
|
|
|
|
2026-01-15 22:39:37 -06:00
|
|
|
Event string `json:"event,omitempty"`
|
|
|
|
|
Headline string `json:"headline,omitempty"`
|
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
|
Instruction string `json:"instruction,omitempty"`
|
2026-01-13 18:14:21 -06:00
|
|
|
|
2026-01-15 22:39:37 -06:00
|
|
|
Severity string `json:"severity,omitempty"`
|
|
|
|
|
Urgency string `json:"urgency,omitempty"`
|
|
|
|
|
Certainty string `json:"certainty,omitempty"`
|
2026-01-13 18:14:21 -06:00
|
|
|
|
2026-01-15 22:39:37 -06:00
|
|
|
Sent *time.Time `json:"sent,omitempty"`
|
|
|
|
|
Effective *time.Time `json:"effective,omitempty"`
|
|
|
|
|
Expires *time.Time `json:"expires,omitempty"`
|
2026-01-13 18:14:21 -06:00
|
|
|
|
2026-01-15 22:39:37 -06:00
|
|
|
Areas []string `json:"areas,omitempty"`
|
2026-01-13 18:14:21 -06:00
|
|
|
}
|