您如何定义术语“失败功能”?
在有关 Zend Server 的演示中,作者列出了Zend 监视器。这些功能之一称为:
- Zend Monitor 将监视您的应用程序是否有失败的功能
,如果减去错误和异常监视,这意味着什么? 如果不通过错误或未捕获的异常,如何检测失败的函数?
In a presentation about Zend Server, the author lists the features of Zend Monitor. One of these features is called:
- Zend Monitor will watch your application for failing functions
What does this mean, if you subtract error and exception monitoring?
How can you detect a failing function, if not through and error or uncaught exception?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
希望现在给出“来自制造商”的答案还为时不晚(我在 Zend Server 上工作),但是当监视的函数之一(在中定义)时,会触发“函数错误”事件(以及“数据库错误”事件)监控规则)返回布尔值 FALSE。
这遵循一种常见的模式,尤其是在更“传统”的 PHP API(例如 mysql、curl、openssl 等)中,其中某些函数将简单地返回 FALSE 来指示失败,然后您需要调用“get_errors()”函数来查看出了什么问题。
这与“正常”PHP 错误不同,这些错误是 E_ERROR、E_WARNING 等错误类型,其他一些 PHP 函数在出现故障时会引发这些错误。
Hope it's not too late to give an answer "from the makers" (I work on Zend Server), but the "Function Error" events (as well as "Database Error" events) are triggered when one of the watched functions (defined in the monitoring rule) returns boolean FALSE.
This follows a pattern which is common especially in the more "traditional" PHP APIs (e.g. mysql, curl, openssl etc.) where some function will simply return FALSE to indicate failure, and you then are required to call a "get_errors()" function to see what went wrong.
This is unlike "normal" PHP errors which are E_ERROR, E_WARNING etc. error types, which some other PHP functions will raise when something fails.
除了“营销说法”之外......
“失败的函数”意味着:
请参阅
http://files.zend.com/help/Zend-Server/monitor.htm
您可以在这里看到规则管理的事件(在页面中搜索“规则管理”):
http://www.oracle.com/technetwork/articles/vaswani-zend -083732.html
还有这里:
http://static.zend.com/topics/Zend -服务器参考手册-v403-2.pdf
Besides being "marketing speak" ...
"failing function" means:
See at
http://files.zend.com/help/Zend-Server/monitor.htm
And you can see the events of the Rule Management here (search "Rule Management" in the page) :
http://www.oracle.com/technetwork/articles/vaswani-zend-083732.html
And also here :
http://static.zend.com/topics/Zend-Server-Reference-Manual-v403-2.pdf