Display hostname in notifications (#102)

This commit is contained in:
CrazyMax
2020-06-22 03:02:29 +02:00
parent c0e3f7e85f
commit 5033adefd7
13 changed files with 84 additions and 23 deletions

View File

@@ -41,6 +41,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
body, err := json.Marshal(struct {
Version string `json:"diun_version"`
Hostname string `json:"hostname"`
Status string `json:"status"`
Provider string `json:"provider"`
Image string `json:"image"`
@@ -51,6 +52,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
Platform string `json:"platform"`
}{
Version: c.meta.Version,
Hostname: c.meta.Hostname,
Status: string(entry.Status),
Provider: entry.Provider,
Image: entry.Image.String(),