用于获取项目最后分析日期的REST API? [英] REST API for getting project last analysis date?

查看:126
本文介绍了用于获取项目最后分析日期的REST API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用SonarQube的REST API获得项目的最后分析时间(可以在仪表板中看到)?

How do I get a project's last analysis time (the one you can see in the dashboard) with the REST API of SonarQube?

我正在使用SonarQube 4.5.6,但如果仅在更高版本中可用,我仍然会对它的完成方式感兴趣.

I am working with SonarQube 4.5.6, but if it's only available on later versions I'd still be interested in how it is done.

推荐答案

您可以使用资源API:

You can use the Resources API : https://nemo.sonarqube.org/api/resources/index?metrics=date&format=json and look at the 'date' field to get the last analysis time.

这篇关于用于获取项目最后分析日期的REST API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆