Module: SentryApi::Client::Events
- Included in:
- SentryApi::Client
- Defined in:
- lib/sentry-api/client/events.rb
Instance Method Summary collapse
-
#issue(issue_id) ⇒ SentryApi::ObjectifiedHash
Retrieve an Issue.
-
#issue_events(issue_id) ⇒ Array<SentryApi::ObjectifiedHash>
List an Issue’s Events.
-
#issue_hashes(issue_id) ⇒ Array<SentryApi::ObjectifiedHash>
List an Issue’s Hashes.
-
#latest_event(issue_id) ⇒ SentryApi::ObjectifiedHash
Retrieves the details of the latest event.
-
#oldest_event(issue_id) ⇒ SentryApi::ObjectifiedHash
Retrieves the details of the oldest event.
-
#remove_issue(issue_id) ⇒ Object
Removes an individual issue.
-
#update_issue(issue_id, options = {}) ⇒ SentryApi::ObjectifiedHash
Update an individual issue.
Instance Method Details
#issue(issue_id) ⇒ SentryApi::ObjectifiedHash
Retrieve an Issue
12 13 14 |
# File 'lib/sentry-api/client/events.rb', line 12 def issue(issue_id) get("/issues/#{issue_id}/") end |
#issue_events(issue_id) ⇒ Array<SentryApi::ObjectifiedHash>
List an Issue’s Events
23 24 25 |
# File 'lib/sentry-api/client/events.rb', line 23 def issue_events(issue_id) get("/issues/#{issue_id}/events/") end |
#issue_hashes(issue_id) ⇒ Array<SentryApi::ObjectifiedHash>
List an Issue’s Hashes
34 35 36 |
# File 'lib/sentry-api/client/events.rb', line 34 def issue_hashes(issue_id) get("/issues/#{issue_id}/hashes/") end |
#latest_event(issue_id) ⇒ SentryApi::ObjectifiedHash
Retrieves the details of the latest event.
74 75 76 |
# File 'lib/sentry-api/client/events.rb', line 74 def latest_event(issue_id) get("/issues/#{issue_id}/events/latest/") end |
#oldest_event(issue_id) ⇒ SentryApi::ObjectifiedHash
Retrieves the details of the oldest event.
85 86 87 |
# File 'lib/sentry-api/client/events.rb', line 85 def oldest_event(issue_id) get("/issues/#{issue_id}/events/oldest/") end |
#remove_issue(issue_id) ⇒ Object
Removes an individual issue.
44 45 46 |
# File 'lib/sentry-api/client/events.rb', line 44 def remove_issue(issue_id) delete("/issues/#{issue_id}/") end |
#update_issue(issue_id, options = {}) ⇒ SentryApi::ObjectifiedHash
Update an individual issue.
63 64 65 |
# File 'lib/sentry-api/client/events.rb', line 63 def update_issue(issue_id, ={}) put("/issues/#{issue_id}/", body: ) end |