Module: SentryApi::Client::Projects
- Included in:
- SentryApi::Client
- Defined in:
- lib/sentry-api/client/projects.rb
Instance Method Summary collapse
-
#client_keys(project_slug) ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s Client Keys.
-
#create_client_key(project_slug, options = {}) ⇒ SentryApi::ObjectifiedHash
Create a new Client Key.
-
#delete_client_key(project_slug, key_id) ⇒ Object
Delete a Client Key.
-
#delete_project(project_slug) ⇒ Object
Delete a Project.
-
#project(project_slug) ⇒ SentryApi::ObjectifiedHash
Retrieve a Project.
-
#project_dsym_files(project_slug) ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s DSym Files.
-
#project_event(project_slug, event_id) ⇒ SentryApi::ObjectifiedHash
Return a list of issues (groups) bound to a project.
-
#project_events(project_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of sampled events bound to a project.
-
#project_issues(project_slug, options = {}) ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s Issues.
-
#project_stats(project_slug, options = {}) ⇒ Array<Array>
Retrieve Event Counts for an Project.
-
#projects ⇒ Array<SentryApi::ObjectifiedHash>
List your Projects.
-
#update_client_key(project_slug, key_id, options = {}) ⇒ Array<SentryApi::ObjectifiedHash>
Update a Client Key.
-
#update_project(project_slug, options = {}) ⇒ SentryApi::ObjectifiedHash
Update a Project.
-
#upload_dsym_files(project_slug, file_path) ⇒ Array<SentryApi::ObjectifiedHash>
Upload a new dsym file for the given release.
Instance Method Details
#client_keys(project_slug) ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s Client Keys.
99 100 101 |
# File 'lib/sentry-api/client/projects.rb', line 99 def client_keys(project_slug) get("/projects/#{@default_org_slug}/#{project_slug}/keys/") end |
#create_client_key(project_slug, options = {}) ⇒ SentryApi::ObjectifiedHash
Create a new Client Key.
112 113 114 |
# File 'lib/sentry-api/client/projects.rb', line 112 def create_client_key(project_slug, ={}) post("/projects/#{@default_org_slug}/#{project_slug}/keys/", body: ) end |
#delete_client_key(project_slug, key_id) ⇒ Object
Delete a Client Key.
123 124 125 |
# File 'lib/sentry-api/client/projects.rb', line 123 def delete_client_key(project_slug, key_id) delete("/projects/#{@default_org_slug}/#{project_slug}/keys/#{key_id}/") end |
#delete_project(project_slug) ⇒ Object
Delete a Project.
47 48 49 |
# File 'lib/sentry-api/client/projects.rb', line 47 def delete_project(project_slug) delete("/projects/#{@default_org_slug}/#{project_slug}/") end |
#project(project_slug) ⇒ SentryApi::ObjectifiedHash
Retrieve a Project
21 22 23 |
# File 'lib/sentry-api/client/projects.rb', line 21 def project(project_slug) get("/projects/#{@default_org_slug}/#{project_slug}/") end |
#project_dsym_files(project_slug) ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s DSym Files.
88 89 90 |
# File 'lib/sentry-api/client/projects.rb', line 88 def project_dsym_files(project_slug) get("/projects/#{@default_org_slug}/#{project_slug}/files/dsyms/") end |
#project_event(project_slug, event_id) ⇒ SentryApi::ObjectifiedHash
Return a list of issues (groups) bound to a project. All parameters are supplied as query string parameters.
160 161 162 |
# File 'lib/sentry-api/client/projects.rb', line 160 def project_event(project_slug, event_id) get("/projects/#{@default_org_slug}/#{project_slug}/events/#{event_id}/") end |
#project_events(project_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of sampled events bound to a project.
148 149 150 |
# File 'lib/sentry-api/client/projects.rb', line 148 def project_events(project_slug) get("/projects/#{@default_org_slug}/#{project_slug}/events/") end |
#project_issues(project_slug, options = {}) ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s Issues
174 175 176 |
# File 'lib/sentry-api/client/projects.rb', line 174 def project_issues(project_slug, ={}) get("/projects/#{@default_org_slug}/#{project_slug}/issues/", query: ) end |
#project_stats(project_slug, options = {}) ⇒ Array<Array>
Retrieve Event Counts for an Project
64 65 66 |
# File 'lib/sentry-api/client/projects.rb', line 64 def project_stats(project_slug, ={}) get("/projects/#{@default_org_slug}/#{project_slug}/stats/", query: ) end |
#projects ⇒ Array<SentryApi::ObjectifiedHash>
List your Projects
10 11 12 |
# File 'lib/sentry-api/client/projects.rb', line 10 def projects get("/projects/") end |
#update_client_key(project_slug, key_id, options = {}) ⇒ Array<SentryApi::ObjectifiedHash>
Update a Client Key
137 138 139 |
# File 'lib/sentry-api/client/projects.rb', line 137 def update_client_key(project_slug, key_id, ={}) put("/projects/#{@default_org_slug}/#{project_slug}/keys/#{key_id}/", body: ) end |
#update_project(project_slug, options = {}) ⇒ SentryApi::ObjectifiedHash
Update a Project
37 38 39 |
# File 'lib/sentry-api/client/projects.rb', line 37 def update_project(project_slug, ={}) put("/projects/#{@default_org_slug}/#{project_slug}/", body: ) end |
#upload_dsym_files(project_slug, file_path) ⇒ Array<SentryApi::ObjectifiedHash>
Upload a new dsym file for the given release
77 78 79 |
# File 'lib/sentry-api/client/projects.rb', line 77 def upload_dsym_files(project_slug, file_path) upload("/projects/#{@default_org_slug}/#{project_slug}/files/dsyms/", body: {file: File.new(file_path)}) end |