Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/services/statisticsService.js @ 12516

Last change on this file since 12516 was 12516, checked in by dglaser, 9 years ago

#2388:

HeuristicLab.Services.Hive.DataAccess-3.3:

  • updated daos
  • changed statistics database schema
  • updated HiveStatisticsGenerator

HeuristicLab.Services.WebApp.Statistics-3.3:

  • added jobs, client and user page
File size: 2.3 KB
Line 
1(function () {
2    var module = appStatisticsPlugin.getAngularModule();
3    var apiUrl = 'api/Statistics/Data/';
4    module.factory('app.statistics.data.service',
5        ['$resource', function ($resource) {
6            return $resource(apiUrl + ':action', { id: '@id', page: '@page', size: '@size', states: '@states', expired: '@expired'}, {
7                getJob: { method: 'GET', params: { action: 'GetJob' } },
8                getJobs: { method: 'GET', params: { action: 'GetJobs' }, isArray: true },
9                getCompletedJobs: { method: 'GET', params: { action: 'GetCompletedJobs' }, isArray: true },
10                getCompletedJobsByUserId: { method: 'GET', params: { action: 'GetCompletedJobsByUserId' }, isArray: true },
11                getCompletedJobsCount: { method: 'GET', params: { action: 'GetCompletedJobsCount' } },
12                getCompletedJobsCountByUserId: { method: 'GET', params: { action: 'GetCompletedJobsCountByUserId' } },
13                getJobsByUserId: { method: 'GET', params: { action: 'GetJobsByUserId' }, isArray: true },
14                getTaskCountByJobId: { method: 'GET', params: { action: 'GetTaskCountByJobId' } },
15                getTasksByJobId: { method: 'GET', params: { action: 'GetTasksByJobId' }, isArray: true },
16                getJobTasksStatesByJobId: { method: 'GET', params: { action: 'GetJobTasksStatesByJobId' }, isArray: true },
17                getClient: { method: 'GET', params: { action: 'GetClient' } },
18                getClientCount: { method: 'GET', params: { action: 'GetClientCount' } },
19                getClients: { method: 'GET', params: { action: 'GetClients' }, isArray: true },
20                getTaskCountByClientId: { method: 'GET', params: { action: 'GetTaskCountByClientId' } },
21                getTasksByClientId: { method: 'GET', params: { action: 'GetTasksByClientId' }, isArray: true },
22                getJobTasksStatesByClientId: { method: 'GET', params: { action: 'GetJobTasksStatesByClientId' }, isArray: true },
23                getClientHistory: { method: 'GET', params: { action: 'GetClientHistory' }, isArray: true },
24                getUsers: { method: 'GET', params: { action: 'GetUsers' }, isArray: true },
25                getUser: { method: 'GET', params: { action: 'GetUser' } }
26            });
27        }]
28    );
29})();
Note: See TracBrowser for help on using the repository browser.