@@ -140,19 +140,19 @@ func sendNotification(_ *cobra.Command, _ []string) {
140
140
141
141
switch notificationType {
142
142
case icingadsl .Custom :
143
- // If ticket exists, adds message to existing ticket
143
+ // If ticket exists, adds article to existing ticket
144
144
notificationErr = handleCustomNotification (ctx , c , ticket )
145
145
case icingadsl .Acknowledgement :
146
- // If ticket exists, adds message to existing ticket
146
+ // If ticket exists, adds article to existing ticket
147
147
notificationErr = handleAcknowledgeNotification (ctx , c , ticket )
148
148
case icingadsl .Problem :
149
149
// Opens a new ticket if none exists
150
- // If one exists, adds message to existing ticket
150
+ // If one exists, adds article to existing ticket
151
151
notificationErr = handleProblemNotification (ctx , c , ticket )
152
152
case icingadsl .Recovery :
153
153
// Closes a ticket if one exists
154
- // If ticket is open, adds message to existing ticket
155
- // If ticket is closed, reopens the ticket with the message
154
+ // If ticket is open, adds article to existing ticket
155
+ // If ticket is closed, reopens the ticket with the article
156
156
notificationErr = handleRecoveryNotification (ctx , c , ticket )
157
157
case icingadsl .DowntimeStart :
158
158
// Currently no implemented
@@ -291,8 +291,8 @@ func handleCustomNotification(ctx context.Context, c *client.Client, ticket zamm
291
291
292
292
a := zammad.Article {
293
293
TicketID : ticket .ID ,
294
- Subject : "Recovery " ,
295
- Body : fmt .Sprintf ("Recovery for: %s %s" , cliConfig .IcingaCheckState , cliConfig .IcingaCheckOutput ),
294
+ Subject : "Custom " ,
295
+ Body : fmt .Sprintf ("Custom for: %s %s" , cliConfig .IcingaCheckState , cliConfig .IcingaCheckOutput ),
296
296
ContentType : "text/html" ,
297
297
Type : "web" ,
298
298
Internal : true ,
0 commit comments