【发布时间】:2016-02-12 20:53:15
【问题描述】:
我正在尝试使用 REST Api 检索项目指标。因此,我首先使用 "/api/projects/index" 查询项目。之后我使用 "/api/metrics/search" 检索指标。两者都工作正常。结果是:
- [id:35476, k:com.test:TestProject, nm:TestProject, qu:TRK, sc:PRJ]
- [custom:false, description:Cyclomatic complex, direction:-1, domain:Complexity, hidden:false, id:10019, key:complexity, name:Complexity, quality:false, type:INT]
现在我想检索项目指标。因此我使用以下网址: https://MYHOST/sonarqube/api/timemachine/index?resource=35476&metric=10019&fromDateTime=2010-12-25T23:59:59+0100&toDateTime=2018-12-25T23:59:59+0100
服务器仅在此处重新运行:[{"cols":[],"cells":[]}]
这让我很吃惊,因为当我进入该项目的声纳的WebInterface 时,我可以看到数字。我尝试了其他一些指标,但都以相同的结果结束。我做错了什么?
【问题讨论】: