Skip to content

Commit

Permalink
inversigate instatus model
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Feb 5, 2024
1 parent bb644df commit 9ad02d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/up_instatus.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ defmodule UP.Instatus do
end
end

def pages(), do: reduceGet("/v2/pages", "pages", 1, 100, [])
def components(page), do: reduceGet("/v1/#{page}/components", "components", 1, 100, [])
def component(page,id), do: reduceGet("/v1/#{page}/components/#{id}", "component", 1, 100, [])
def pages(), do: reduceGet("/v2/pages", "sites", 1, 100, [])
def components(page), do: reduceGet("/v1/#{page}/components", "components", 1, 100, [])
def component(page,id), do: reduceGet("/v1/#{page}/components/#{id}", "component", 1, 100, [])
def subscriptions(page), do: reduceGet("/v1/#{page}/subscribers", "subscriptions", 1, 100, [])
def incidents(page), do: reduceGet("/v1/#{page}/incidents", "incidents", 1, 100, [])
def maintenances(page), do: reduceGet("/v1/#{page}/maintenances", "maintenances", 1, 100, [])

end

0 comments on commit 9ad02d0

Please sign in to comment.