mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 06:28:13 +01:00
Display hostname in notifications (#102)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user