Method: Mackerel::REST::NotificationGroup#delete_notification_group

Defined in:
lib/mackerel/notification_group.rb

#delete_notification_group(notification_group_id) ⇒ Object



51
52
53
54
55
# File 'lib/mackerel/notification_group.rb', line 51

def delete_notification_group(notification_group_id)
  command = ApiCommand.new(:delete, "/api/v0/notification-groups/#{notification_group_id}", @api_key)
  data = command.execute(client)
  Mackerel::NotificationGroup.new(data)
end