diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-03-03 14:55:20 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-03-07 16:10:23 +0100 |
commit | 2f5d0cf228a0df8301ffd5a555b50bb38afc0817 (patch) | |
tree | 1e1afe17c7b1e5860ad6690df5cc62f7d8b8d620 /server/sonar-web/src/main/js/api | |
parent | 1ca986e90c183bce327bfb3d2c9094db8a3083e1 (diff) | |
download | sonarqube-2f5d0cf228a0df8301ffd5a555b50bb38afc0817.tar.gz sonarqube-2f5d0cf228a0df8301ffd5a555b50bb38afc0817.zip |
SONAR-7403 Display the leak period value on the "Measures" page
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r-- | server/sonar-web/src/main/js/api/measures.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/measures.js b/server/sonar-web/src/main/js/api/measures.js index a22b042104d..4676b338b53 100644 --- a/server/sonar-web/src/main/js/api/measures.js +++ b/server/sonar-web/src/main/js/api/measures.js @@ -25,3 +25,12 @@ export function getMeasures (componentKey, metrics) { const data = { componentKey, metricKeys: metrics.join(',') }; return getJSON(url, data).then(r => r.component.measures); } + +export function getMeasuresAndMeta (componentKey, metrics, additional = {}) { + const url = '/api/measures/component'; + const data = Object.assign({}, additional, { + componentKey, + metricKeys: metrics.join(',') + }); + return getJSON(url, data); +} |