Module: SentryApi::Client::Organizations
- Included in:
- SentryApi::Client
- Defined in:
- lib/sentry-api/client/organizations.rb
Instance Method Summary collapse
-
#create_team(options = {}) ⇒ SentryApi::ObjectifiedHash
Create a new team bound to an organization.
-
#organization ⇒ SentryApi::ObjectifiedHash
Retrieve an Organization.
-
#organization_projects ⇒ Array<SentryApi::ObjectifiedHash>
List an Organization’s Projects.
-
#organization_stats(options = {}) ⇒ Array<Array>
Retrieve Event Counts for an Organization.
-
#organization_teams ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of teams bound to a organization.
-
#organizations(member = false) ⇒ Array<SentryApi::ObjectifiedHash>
List your Organizations.
-
#update_organization(options = {}) ⇒ SentryApi::ObjectifiedHash
Update an Organization.
Instance Method Details
#create_team(options = {}) ⇒ SentryApi::ObjectifiedHash
Create a new team bound to an organization
77 78 79 |
# File 'lib/sentry-api/client/organizations.rb', line 77 def create_team(={}) post("/organizations/#{@default_org_slug}/teams/", body: ) end |
#organization ⇒ SentryApi::ObjectifiedHash
Retrieve an Organization
33 34 35 |
# File 'lib/sentry-api/client/organizations.rb', line 33 def organization get("/organizations/#{@default_org_slug}/") end |
#organization_projects ⇒ Array<SentryApi::ObjectifiedHash>
List an Organization’s Projects
22 23 24 |
# File 'lib/sentry-api/client/organizations.rb', line 22 def organization_projects get("/organizations/#{@default_org_slug}/projects/") end |
#organization_stats(options = {}) ⇒ Array<Array>
Retrieve Event Counts for an Organization
64 65 66 |
# File 'lib/sentry-api/client/organizations.rb', line 64 def organization_stats(={}) get("/organizations/#{@default_org_slug}/stats/", query: ) end |
#organization_teams ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of teams bound to a organization.
87 88 89 |
# File 'lib/sentry-api/client/organizations.rb', line 87 def organization_teams get("/organizations/#{@default_org_slug}/teams/") end |
#organizations(member = false) ⇒ Array<SentryApi::ObjectifiedHash>
List your Organizations.
11 12 13 |
# File 'lib/sentry-api/client/organizations.rb', line 11 def organizations(member=false) get("/organizations/", query: {member: member}) end |
#update_organization(options = {}) ⇒ SentryApi::ObjectifiedHash
Update an Organization
48 49 50 |
# File 'lib/sentry-api/client/organizations.rb', line 48 def update_organization(={}) put("/organizations/#{@default_org_slug}/", body: ) end |