From 59751b08a1cc92970bcf85e7082515dbc1939cc5 Mon Sep 17 00:00:00 2001 From: Andrew McBurney Date: Sun, 1 Dec 2019 15:06:05 -0500 Subject: [PATCH] [MA-670] Add `options` to the `get_downtime` endpoint. --- lib/dogapi/facade.rb | 4 ++-- lib/dogapi/v1/monitor.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dogapi/facade.rb b/lib/dogapi/facade.rb index 618a02be..0abb01d9 100644 --- a/lib/dogapi/facade.rb +++ b/lib/dogapi/facade.rb @@ -597,8 +597,8 @@ def update_downtime(downtime_id, options= {}) @monitor_svc.update_downtime(downtime_id, options) end - def get_downtime(downtime_id) - @monitor_svc.get_downtime(downtime_id) + def get_downtime(downtime_id, options = {}) + @monitor_svc.get_downtime(downtime_id, options) end def cancel_downtime(downtime_id) diff --git a/lib/dogapi/v1/monitor.rb b/lib/dogapi/v1/monitor.rb index 4893323a..62632eb4 100644 --- a/lib/dogapi/v1/monitor.rb +++ b/lib/dogapi/v1/monitor.rb @@ -131,8 +131,8 @@ def update_downtime(downtime_id, options = {}) request(Net::HTTP::Put, "/api/#{API_VERSION}/downtime/#{downtime_id}", nil, options, true) end - def get_downtime(downtime_id) - request(Net::HTTP::Get, "/api/#{API_VERSION}/downtime/#{downtime_id}", nil, nil, false) + def get_downtime(downtime_id, options = {}) + request(Net::HTTP::Get, "/api/#{API_VERSION}/downtime/#{downtime_id}", options, nil, false) end def cancel_downtime(downtime_id)