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 = "") ⇒ SentryApi::ObjectifiedHash
Create a new Client Key.
-
#delete_client_key(project_slug, key_id, organization_slug = "") ⇒ Object
Delete a Client Key.
-
#delete_project(project_slug, organization_slug = "") ⇒ Object
Delete a Project.
-
#project(project_slug, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Retrieve a Project.
-
#project_dsym_files(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s DSym Files.
-
#project_event(project_slug, event_id, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Retrieve an Event for a Project.
-
#project_events(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of sampled events bound to a project.
-
#project_issues(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of aggregates bound to a project.
-
#project_stats(project_slug, options = {}, organization_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 = "") ⇒ Array<SentryApi::ObjectifiedHash>
Update a Client Key.
-
#update_project(project_slug, options = {}, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Update a Project.
Instance Method Details
#client_keys(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s Client Keys.
96 97 98 99 |
# File 'lib/sentry-api/client/projects.rb', line 96 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 = "") ⇒ SentryApi::ObjectifiedHash
Create a new Client Key.
111 112 113 114 |
# File 'lib/sentry-api/client/projects.rb', line 111 def create_client_key(project_slug, ={}, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" post("/projects/#{organization_slug}/#{project_slug}/keys/", body: ) end |
#delete_client_key(project_slug, key_id, organization_slug = "") ⇒ Object
Delete a Client Key.
124 125 126 127 |
# File 'lib/sentry-api/client/projects.rb', line 124 def delete_client_key(project_slug, key_id, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" delete("/projects/#{organization_slug}/#{project_slug}/keys/#{key_id}/") end |
#delete_project(project_slug, organization_slug = "") ⇒ Object
Delete a Project.
52 53 54 55 |
# File 'lib/sentry-api/client/projects.rb', line 52 def delete_project(project_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" delete("/projects/#{organization_slug}/#{project_slug}/") end |
#project(project_slug, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Retrieve a Project
22 23 24 25 |
# File 'lib/sentry-api/client/projects.rb', line 22 def project(project_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/projects/#{organization_slug}/#{project_slug}/") end |
#project_dsym_files(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
List a Project’s DSym Files.
83 84 85 86 |
# File 'lib/sentry-api/client/projects.rb', line 83 def project_dsym_files(project_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/projects/#{organization_slug}/#{project_slug}/files/dsyms/") end |
#project_event(project_slug, event_id, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Retrieve an Event for a Project
167 168 169 170 |
# File 'lib/sentry-api/client/projects.rb', line 167 def project_event(project_slug, event_id, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/projects/#{organization_slug}/#{project_slug}/events/#{event_id}/") end |
#project_events(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of sampled events bound to a project.
153 154 155 156 |
# File 'lib/sentry-api/client/projects.rb', line 153 def project_events(project_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/projects/#{organization_slug}/#{project_slug}/events/") end |
#project_issues(project_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of aggregates bound to a project
178 179 180 181 |
# File 'lib/sentry-api/client/projects.rb', line 178 def project_issues(project_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/projects/#{organization_slug}/#{project_slug}/issues/") end |
#project_stats(project_slug, options = {}, organization_slug = "") ⇒ Array<Array>
Retrieve Event Counts for an Project
71 72 73 |
# File 'lib/sentry-api/client/projects.rb', line 71 def project_stats(project_slug, ={}, organization_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 = "") ⇒ Array<SentryApi::ObjectifiedHash>
Update a Client Key
140 141 142 143 |
# File 'lib/sentry-api/client/projects.rb', line 140 def update_client_key(project_slug, key_id, ={}, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" put("/projects/#{organization_slug}/#{project_slug}/keys/#{key_id}/", body: ) end |
#update_project(project_slug, options = {}, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Update a Project
40 41 42 43 |
# File 'lib/sentry-api/client/projects.rb', line 40 def update_project(project_slug, ={}, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" put("/projects/#{organization_slug}/#{project_slug}/", body: ) end |