Class: Watchfor::Client::Incidents

Inherits:
Namespace
  • Object
show all
Defined in:
lib/watchfor/client.rb

Instance Method Summary collapse

Methods inherited from Namespace

#initialize

Constructor Details

This class inherits a constructor from Watchfor::Client::Namespace

Instance Method Details

#acknowledge(id) ⇒ Object



123
# File 'lib/watchfor/client.rb', line 123

def acknowledge(id) = @c.request("POST", "/incidents/#{id}/acknowledge")

#get(id) ⇒ Object



122
# File 'lib/watchfor/client.rb', line 122

def get(id) = @c.request("GET", "/incidents/#{id}")

#list(**query) ⇒ Object



121
# File 'lib/watchfor/client.rb', line 121

def list(**query) = @c.request("GET", "/incidents", query: query)

#resolve(id) ⇒ Object



124
# File 'lib/watchfor/client.rb', line 124

def resolve(id) = @c.request("POST", "/incidents/#{id}/resolve")