File size: 633 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package message

import (
	"time"

	"github.com/target/goalert/gadb"
	"github.com/target/goalert/notification"
	"github.com/target/goalert/notification/nfymsg"
)

// Message represents the data for an outgoing message.
type Message struct {
	ID         string
	Type       gadb.EnumOutgoingMessagesType
	DestID     notification.DestID
	Dest       gadb.DestV1
	AlertID    int
	AlertLogID int
	VerifyID   string

	UserID     string
	ServiceID  string
	ScheduleID string
	CreatedAt  time.Time
	SentAt     time.Time

	StatusAlertIDs []int64
}

func (m Message) Base() nfymsg.Base {
	return nfymsg.Base{
		ID:   m.ID,
		Dest: m.Dest,
	}
}