2022-02-01 20:45:01 +00:00
|
|
|
import ApplicationAdapter from '../application';
|
2022-01-25 22:06:56 +00:00
|
|
|
|
2022-02-01 20:45:01 +00:00
|
|
|
export default class MonthlyAdapter extends ApplicationAdapter {
|
2022-01-25 22:06:56 +00:00
|
|
|
queryRecord() {
|
|
|
|
let url = `${this.buildURL()}/internal/counters/activity/monthly`;
|
|
|
|
// Query has startTime defined. The API will return the endTime if none is provided.
|
|
|
|
return this.ajax(url, 'GET').then((resp) => {
|
|
|
|
let response = resp || {};
|
|
|
|
response.id = response.request_id || 'no-data';
|
|
|
|
return response;
|
|
|
|
});
|
2022-02-01 20:45:01 +00:00
|
|
|
}
|
|
|
|
}
|