Module: SentryApi::Client::Projects
- Included in:
- SentryApi::Client
- Defined in:
- lib/sentry-api/client/projects.rb
Instance Method Summary collapse
-
#client_keys(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s Client Keys.
-
#create_client_key(project_slug, options = {}, organization_slug = @default_org_slug) ⇒ SentryApi::ObjectifiedHash
Create a new Client Key.
-
#delete_client_key(project_slug, key_id, organization_slug = @default_org_slug) ⇒ Object
Delete a Client Key.
-
#delete_project(project_slug, organization_slug = @default_org_slug) ⇒ Object
Delete a Project.
-
#project(project_slug, organization_slug = @default_org_slug) ⇒ SentryApi::ObjectifiedHash
Retrieve a Project.
-
#project_dsym_files(project_slug, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s DSym Files.
-
#project_event(project_slug, event_id, organization_slug = @default_org_slug) ⇒ SentryApi::ObjectifiedHash
Retrieve an Event for a Project.
-
#project_events(project_slug, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of sampled events bound to a project.
-
#project_issues(project_slug, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of aggregates bound to a project.
-
#project_stats(project_slug, options = {}, organization_slug = @default_org_slug) ⇒ Array<Array>
Retrieve Event Counts for an Project.
-
#projects ⇒ Array<SentryApi::ObjectifiedHash>
List your Projects.
-
#update_client_key(project_slug, key_id, options = {}, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Update a Client Key.
-
#update_project(project_slug, options = {}, organization_slug = @default_org_slug) ⇒ SentryApi::ObjectifiedHash
Update a Project.
-
#upload_dsym_files(project_slug, file_path, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Upload a new dsym file for the given release.
Instance Method Details
#client_keys(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s Client Keys.
105 106 107 108 |
# File 'lib/sentry-api/client/projects.rb', line 105 def client_keys(project_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/projects/#{organization_slug}/#{project_slug}/keys/") end |
#create_client_key(project_slug, options = {}, organization_slug = @default_org_slug) ⇒ SentryApi::ObjectifiedHash
Create a new Client Key.
120 121 122 |
# File 'lib/sentry-api/client/projects.rb', line 120 def create_client_key(project_slug, ={}, organization_slug=@default_org_slug) post("/projects/#{organization_slug}/#{project_slug}/keys/", body: ) end |
#delete_client_key(project_slug, key_id, organization_slug = @default_org_slug) ⇒ Object
Delete a Client Key.
132 133 134 |
# File 'lib/sentry-api/client/projects.rb', line 132 def delete_client_key(project_slug, key_id, organization_slug=@default_org_slug) delete("/projects/#{organization_slug}/#{project_slug}/keys/#{key_id}/") end |
#delete_project(project_slug, organization_slug = @default_org_slug) ⇒ Object
Delete a Project.
50 51 52 |
# File 'lib/sentry-api/client/projects.rb', line 50 def delete_project(project_slug, organization_slug=@default_org_slug) delete("/projects/#{organization_slug}/#{project_slug}/") end |
#project(project_slug, organization_slug = @default_org_slug) ⇒ SentryApi::ObjectifiedHash
Retrieve a Project
22 23 24 |
# File 'lib/sentry-api/client/projects.rb', line 22 def project(project_slug, organization_slug=@default_org_slug) get("/projects/#{organization_slug}/#{project_slug}/") end |
#project_dsym_files(project_slug, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s DSym Files.
93 94 95 |
# File 'lib/sentry-api/client/projects.rb', line 93 def project_dsym_files(project_slug, organization_slug=@default_org_slug) get("/projects/#{organization_slug}/#{project_slug}/files/dsyms/") end |
#project_event(project_slug, event_id, organization_slug = @default_org_slug) ⇒ SentryApi::ObjectifiedHash
Retrieve an Event for a Project
172 173 174 |
# File 'lib/sentry-api/client/projects.rb', line 172 def project_event(project_slug, event_id, organization_slug=@default_org_slug) get("/projects/#{organization_slug}/#{project_slug}/events/#{event_id}/") end |
#project_events(project_slug, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of sampled events bound to a project.
159 160 161 |
# File 'lib/sentry-api/client/projects.rb', line 159 def project_events(project_slug, organization_slug=@default_org_slug) get("/projects/#{organization_slug}/#{project_slug}/events/") end |
#project_issues(project_slug, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of aggregates bound to a project
182 183 184 |
# File 'lib/sentry-api/client/projects.rb', line 182 def project_issues(project_slug, organization_slug=@default_org_slug) get("/projects/#{organization_slug}/#{project_slug}/issues/") end |
#project_stats(project_slug, options = {}, organization_slug = @default_org_slug) ⇒ Array<Array>
Retrieve Event Counts for an Project
68 69 70 |
# File 'lib/sentry-api/client/projects.rb', line 68 def project_stats(project_slug, ={}, organization_slug=@default_org_slug) get("/projects/#{organization_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 = {}, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Update a Client Key
147 148 149 |
# File 'lib/sentry-api/client/projects.rb', line 147 def update_client_key(project_slug, key_id, ={}, organization_slug=@default_org_slug) put("/projects/#{organization_slug}/#{project_slug}/keys/#{key_id}/", body: ) end |
#update_project(project_slug, options = {}, organization_slug = @default_org_slug) ⇒ SentryApi::ObjectifiedHash
Update a Project
39 40 41 |
# File 'lib/sentry-api/client/projects.rb', line 39 def update_project(project_slug, ={}, organization_slug=@default_org_slug) put("/projects/#{organization_slug}/#{project_slug}/", body: ) end |
#upload_dsym_files(project_slug, file_path, organization_slug = @default_org_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Upload a new dsym file for the given release
81 82 83 |
# File 'lib/sentry-api/client/projects.rb', line 81 def upload_dsym_files(project_slug, file_path, organization_slug=@default_org_slug) post("/projects/#{organization_slug}/#{project_slug}/files/dsyms/", body: {file: File.new(file_path)}) end |