分析 API 的每日错误限制何时重置?
When does the daily error limit for the analytics API reset?
根据文档,每日请求限制全部在太平洋午夜重置,但每日错误限制只是说每天。这是否也在午夜重置,或者这是一个滚动的 24 小时周期?
每日错误限制
每日错误限制是他们几年前添加的。背后的想法是,如果您的应用程序发送了很多错误。发出无效请求时出错。这不是关于配额或禁食的错误。
Google 添加此错误以阻止人们循环处理错误的请求而不是修复他们的代码。问题是我从来没有听说过有人真的达到了这个限制。
当时有人告诉我,如果您的应用继续出现这些错误,您被禁止的时间每次都会变长。我说禁止是因为它实际上就像一个禁令 Google 阻止你提出无用的请求,因为它们是错误的。
那么它什么时候会重置手头我记得一些关于天数或烫发禁令的事情。如果您能给我您收到的完整错误消息,我可以为您联系团队并获取更多详细信息。或者在 twitter 上私信我,如果你给我项目 ID,我也可以通过这种方式为你提供一些信息。
我没有权威的答案,但根据上周的大量实验,它看起来像是 24 小时滚动 window 而不是基于固定时间,例如每天最大请求速率限制。
您说得对,每日服务器错误配额是 24 小时滚动 windows。我们更新了开发者网站上的 documentation on sever error quotas:
Server error rate quotas are enforced over rolling windows of time for each of the hourly and daily error rate quotas. One hour after a project and view pair's first server error, the quota resets. If a project and view pair sends 10 server errors in one hour, the project and view pair is blocked from the API until the hour after the first server error elapses.
For example if a project and view pair have not sent a server error in the last 24 hours, this project and view will have used 0 of its 50 quota. Let's say this project and view now send a server error at 6:12 AM. If this project and view send 49 additional server errors before 6:12 AM of the following day, this project and view will be blocked until 6:12 AM of the following day. At 6:12 AM of the following day, the server error rate quota will completely reset for this project and view.
有两种服务器错误配额:1) 每天和 2) 每小时。如果这些配额中的任何一个用完,项目和视图对将被阻止最多在接下来的 24 小时或最多下一小时(分别)发出请求。如果项目和视图对反复耗尽此配额,则被阻止的持续时间不会 而不会 增加。比如超过24小时是不可能被屏蔽的。
谢谢,
Google 分析团队
根据文档,每日请求限制全部在太平洋午夜重置,但每日错误限制只是说每天。这是否也在午夜重置,或者这是一个滚动的 24 小时周期?
每日错误限制
每日错误限制是他们几年前添加的。背后的想法是,如果您的应用程序发送了很多错误。发出无效请求时出错。这不是关于配额或禁食的错误。
Google 添加此错误以阻止人们循环处理错误的请求而不是修复他们的代码。问题是我从来没有听说过有人真的达到了这个限制。
当时有人告诉我,如果您的应用继续出现这些错误,您被禁止的时间每次都会变长。我说禁止是因为它实际上就像一个禁令 Google 阻止你提出无用的请求,因为它们是错误的。
那么它什么时候会重置手头我记得一些关于天数或烫发禁令的事情。如果您能给我您收到的完整错误消息,我可以为您联系团队并获取更多详细信息。或者在 twitter 上私信我,如果你给我项目 ID,我也可以通过这种方式为你提供一些信息。
我没有权威的答案,但根据上周的大量实验,它看起来像是 24 小时滚动 window 而不是基于固定时间,例如每天最大请求速率限制。
您说得对,每日服务器错误配额是 24 小时滚动 windows。我们更新了开发者网站上的 documentation on sever error quotas:
Server error rate quotas are enforced over rolling windows of time for each of the hourly and daily error rate quotas. One hour after a project and view pair's first server error, the quota resets. If a project and view pair sends 10 server errors in one hour, the project and view pair is blocked from the API until the hour after the first server error elapses.
For example if a project and view pair have not sent a server error in the last 24 hours, this project and view will have used 0 of its 50 quota. Let's say this project and view now send a server error at 6:12 AM. If this project and view send 49 additional server errors before 6:12 AM of the following day, this project and view will be blocked until 6:12 AM of the following day. At 6:12 AM of the following day, the server error rate quota will completely reset for this project and view.
有两种服务器错误配额:1) 每天和 2) 每小时。如果这些配额中的任何一个用完,项目和视图对将被阻止最多在接下来的 24 小时或最多下一小时(分别)发出请求。如果项目和视图对反复耗尽此配额,则被阻止的持续时间不会 而不会 增加。比如超过24小时是不可能被屏蔽的。
谢谢,
Google 分析团队