lib/doggy/models/monitor.rb in doggy-2.1.0 vs lib/doggy/models/monitor.rb in doggy-2.1.1
- old
+ new
@@ -52,10 +52,10 @@
self.options = Options.new(locked: false)
end
end
def self.resource_url(id = nil)
- "https://app.datadoghq.com/api/v1/monitor/#{id}"
+ ["https://app.datadoghq.com/api/v1/monitor", id].compact.join("/")
end
def managed?
!(name =~ Doggy::DOG_SKIP_REGEX)
end