summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/services/monitoring_service.js
blob: 1e9ae93485365bfb6cde1f2f7146e3732ea42a34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
  }
}