Show:

Provides methods for interacting with Teams in the Sentry API.

Constructor

Teams
(
  • client
)

Defined in lib/teams.js:3

Parameters:

Methods

create
(
  • orgSlug
  • body
  • callback
)
Promise

Defined in lib/teams.js:28

Create a new team bound to an organization.

Parameters:

  • orgSlug String

    Organization slug.

  • body Object
    • name String

      The human readable name for the new team.

    • slug String

      The unique URL slug for this team. If this is not provided a slug is automatically generated based on the name.

  • callback Function

Returns:

Promise
createProject
(
  • orgSlug
  • teamSlug
  • body
  • callback
)
Promise

Defined in lib/teams.js:102

Create new project

Parameters:

  • orgSlug String

    Organization slug.

  • teamSlug String

    Team slug.

  • body Object
    • name String

      The new name for the project.

    • slug String

      (optional) A slug for the new project, will be generated if not given.

    • callsign String

      (optional) a callsign for the new project.

  • callback Function

Returns:

Promise
delete
(
  • orgSlug
  • teamSlug
  • callback
)
Promise

Defined in lib/teams.js:44

Delete a team.

Parameters:

  • orgSlug String

    Organization slug.

  • teamSlug String

    Team slug.

  • callback Function

Returns:

Promise
get
(
  • orgSlug
  • teamSlug
  • callback
)
Promise

Defined in lib/teams.js:14

Retrieve a team.

Parameters:

  • orgSlug String

    Organization slug.

  • teamSlug String

    Team slug.

  • callback Function

Returns:

Promise
list
(
  • orgSlug
  • callback
)
Promise

Defined in lib/teams.js:89

List an organization's teams.

Parameters:

  • orgSlug String

    Organization slug.

  • callback Function

Returns:

Promise
projects
(
  • orgSlug
  • teamSlug
  • callback
)
Promise

Defined in lib/teams.js:120

List a team's projects.

Parameters:

  • orgSlug String

    Organization slug.

  • teamSlug String

    Team slug.

  • callback Function

Returns:

Promise
stats
(
  • orgSlug
  • teamSlug
  • callback
)
Promise

Defined in lib/teams.js:75

Retrieve event counts for a team.

Parameters:

  • orgSlug String

    Organization slug.

  • teamSlug String

    Team slug.

  • callback Function

Returns:

Promise
update
(
  • orgSlug
  • teamSlug
  • body
  • callback
)
Promise

Defined in lib/teams.js:58

Update a team.

Parameters:

  • orgSlug String

    Organization slug.

  • teamSlug String

    Team slug.

  • body Object
    • name String

      The new name for the team.

    • slug String

      A new slug for the team. It has to be unique and available.

  • callback Function

Returns:

Promise