简体   繁体   中英

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.

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. This is not what I need.

Does such an API exist? I imagine that the AWS dashboard uses some API to get its statistics, but maybe this is isn't publicly available?

We can get this information via Cloudwatch metrics在此处输入图像描述 .

Just a small catch that this information has a lag of 60 seconds. To get the number of concurrent connections at any instant, there is no direct way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM