diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-20 08:50:31 +0000 |
---|---|---|
committer | Jose Ivan Vargas Lopez <jvargas@gitlab.com> | 2017-06-26 14:44:03 +0000 |
commit | 871bf96c9b231b5c2281a021599959c4f164b479 (patch) | |
tree | 31b12a94ae2faaf39792f75f2b117a94df0ade01 /app/assets/javascripts/monitoring/services | |
parent | 676c559409b8b51e3e97abab24bbb44207744e13 (diff) | |
download | gitlab-ce-871bf96c9b231b5c2281a021599959c4f164b479.tar.gz |
Merge branch 'additional-metrics-dashboard' into '28717-additional-metrics-review-branch'
Additional metrics dashboard
See merge request !11740
Diffstat (limited to 'app/assets/javascripts/monitoring/services')
-rw-r--r-- | app/assets/javascripts/monitoring/services/monitoring_service.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/assets/javascripts/monitoring/services/monitoring_service.js b/app/assets/javascripts/monitoring/services/monitoring_service.js new file mode 100644 index 00000000000..1e9ae934853 --- /dev/null +++ b/app/assets/javascripts/monitoring/services/monitoring_service.js @@ -0,0 +1,19 @@ +import Vue from 'vue'; +import VueResource from 'vue-resource'; + +Vue.use(VueResource); + +export default class MonitoringService { + constructor(endpoint) { + this.graphs = Vue.resource(endpoint); + } + + get() { + return this.graphs.get(); + } + + // eslint-disable-next-line class-methods-use-this + getDeploymentData(endpoint) { + return Vue.http.get(endpoint); + } +} |