Class: PagerdutyIncident
Instance Attribute Summary
Attributes inherited from Pagerduty
#incident_key, #service_key
Instance Method Summary
collapse
Methods inherited from Pagerduty
#get_incident, #trigger
Constructor Details
#initialize(service_key, incident_key) ⇒ PagerdutyIncident
Returns a new instance of PagerdutyIncident.
60
61
62
63
|
# File 'lib/pagerduty.rb', line 60
def initialize(service_key, incident_key)
super service_key
@incident_key = incident_key
end
|
Instance Method Details
#acknowledge(description, details = {}) ⇒ Object
65
66
67
68
69
70
|
# File 'lib/pagerduty.rb', line 65
def acknowledge(description, details = {})
resp = api_call("acknowledge", description, details = {})
throw .new(self, resp) unless resp["status"] == "success"
self
end
|
#resolve(description, details = {}) ⇒ Object
72
73
74
75
76
77
|
# File 'lib/pagerduty.rb', line 72
def resolve(description, details = {})
resp = api_call("resolve", description, details = {})
throw .new(self, resp) unless resp["status"] == "success"
self
end
|