google-app-engine - 在 appengine 中获取 200 和 500 请求的数量?
问题描述
我正在尝试使用指标资源管理器从我的应用引擎中获取 200 和其他代码的数量。有没有办法得到这个?我不断得到1和2
解决方案
在 Google Cloud Platform 控制台中,转到 Logging > Logs Explorer,然后运行以下查询,指定您感兴趣的时间范围。
(protoPayload.status=200 OR httpRequest.status=200)
resource.type="gae_app"
这同样适用于错误 500。
(protoPayload.status=500 OR httpRequest.status=500)
resource.type="gae_app"
推荐阅读
- clang - 为什么 clang.exe 和 clang++.exe 完全一样?
- php - 无法下载 laravel/socialite [laravel5.5]
- google-chrome-extension - 如何在列出扩展的 Chrome 扩展弹出窗口中添加扩展图标?
- reactjs - 安装 react-router-dom 后 React npm start 不起作用
- html - 如何将导航栏移动到 img 上?
- webpack - 如何处理 twilio-chat 和 webpack
- spring-boot - org/springframework/boot/bind/RelaxedPropertyResolver 未找到
- php - 我在 cpanel 上部署的应用程序出现 Laravel 文件权限错误
- java - 如何从.class 向@ServerEndpoint 发送消息
- html - 如何让我的网站在放大和缩小时不失真?