跳转到主要内容

Bugsnag 数据访问 API 的 Python 封装器

项目描述

PyPI version Build Status Coverage Status Code style: black Documentation Status

Bugsnag 数据访问 API 的 Python 封装器

快速开始

安装

# install
pip install pybugsnag

基本用法

from pybugsnag import BugsnagDataClient
from pybugsnag.models import Error

client = BugsnagDataClient("$AUTH_TOKEN")
organization = client.organizations[0]  # first organization for the auth token
project = organization.projects[0]  # first project in the organization
project.get_errors(
    sort=Error.Sort.LAST_SEEN,
    direction=Error.Sort.Direction.DESCENDING,
    per_page=30,
)  # gets errors for this project,
project.get_trend_buckets()  # data for a trend histogram

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面