Sentry Web-Wervices

Sentry Web-Services.

class controller.sentry.webservices.sentry.BearerAuth(token: str)[source]

Bases: AuthBase

BearerAuth Class.

token

The bearer token

Type:

str

__init__(token: str)[source]

Init with token.

Parameters:

token (str) – The token

class controller.sentry.webservices.sentry.PaginatedSentryClient(*args, **kwargs)[source]

Bases: object

PaginatedSentryClient.

host

Sentry host

Type:

str

auth

Bearer auth

Type:

BearerAuth

__init__() None[source]

Init PaginatedSentryClient.

get_stats(sentry_id: str) dict[source]

Method to get the stats of a project.

Parameters:

sentry_id (str) – The id of the project

Returns:

The stats

Return type:

dict

list_projects() Generator[list[dict], None, None][source]

Method to iterate over all the projects.

Returns:

The result as a generator

Return type:

Generator[list[dict], None, None]