bugsnag数据访问api的python包装器
pybugsnag的Python项目详细描述
bugsnag数据访问api的python包装器
快速启动
安装
# install
pip install pybugsnag
基本用法
frompybugsnagimportBugsnagDataClientfrompybugsnag.modelsimportErrorclient=BugsnagDataClient("$AUTH_TOKEN")organization=client.organizations[0]# first organization for the auth tokenproject=organization.projects[0]# first project in the organizationproject.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