Skip to content

Commit 71a246d

Browse files
committed
Add special string "/g?" to the end of the endpoint url for the UptimeRobot integration
1 parent 0643642 commit 71a246d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • app/models/pager_tree/integrations/uptime_robot

app/models/pager_tree/integrations/uptime_robot/v3.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ class UptimeRobot::V3 < Integration
66
after_initialize do
77
end
88

9+
# SPECIAL: override integration endpoint with the get endpoint and the query string starter
10+
# uptime robot doesn't handle this, so we have to do it ourselves
11+
def endpoint
12+
super + "/g?"
13+
end
14+
915
def adapter_supports_incoming?
1016
true
1117
end

0 commit comments

Comments
 (0)