Method: DatadogBackup::Dashboards#get_by_id

Defined in:
lib/datadog_backup/dashboards.rb

#get_by_id(id) ⇒ Object



25
26
27
28
29
30
31
32
# File 'lib/datadog_backup/dashboards.rb', line 25

def get_by_id(id)
  begin
    dashboard = except(get(id))
  rescue Faraday::ResourceNotFound => e
    dashboard = {}
  end
  except(dashboard)
end