[英]Writing Java code to check how many instances of an AWS function are running
I want to write some Java code to see how many instances of a specific AWS Lambda function are currently running, but I can't find an appropriate API to do this.我想写一些 Java 代码来查看当前正在运行的特定 AWS Lambda function 的实例数量,但我找不到合适的 API 来执行此操作。
I've searched the web (AWS Documentation, StackOverflow, and general Google searches) but the only information I can find describes how to use the AWS Web Interface to view graphs.我搜索了 web(AWS 文档、StackOverflow 和一般的 Google 搜索),但我能找到的唯一信息描述了如何使用 AWS Web 界面查看图表。 This is not what I need.
这不是我需要的。
Does such an API exist?这样的API存在吗? I imagine that the AWS dashboard uses some API to get its statistics, but maybe this is isn't publicly available?
我想 AWS 仪表板使用一些 API 来获取其统计信息,但也许这不是公开的?
We can get this information via Cloudwatch metrics我们可以通过Cloudwatch 指标获取此信息
.
.
Just a small catch that this information has a lag of 60 seconds.只是一个小问题,即此信息有 60 秒的延迟。 To get the number of concurrent connections at any instant, there is no direct way.
要获取任何时刻的并发连接数,没有直接的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.