Method: Mackerel::REST::NotificationGroup#get_notification_groups
- Defined in:
- lib/mackerel/notification_group.rb
#get_notification_groups ⇒ Object
38 39 40 41 42 |
# File 'lib/mackerel/notification_group.rb', line 38 def get_notification_groups() command = ApiCommand.new(:get, '/api/v0/notification-groups', @api_key) data = command.execute(client) data['notificationGroups'].map{|a| Mackerel::NotificationGroup.new(a)} end |