Jagger
 All Classes Namespaces Files Functions Variables Groups Pages
DataService.java
Go to the documentation of this file.
1 package com.griddynamics.jagger.engine.e1.services;
2 
3 import com.griddynamics.jagger.engine.e1.services.data.service.MetricEntity;
4 import com.griddynamics.jagger.engine.e1.services.data.service.MetricPlotPointEntity;
5 import com.griddynamics.jagger.engine.e1.services.data.service.MetricSummaryValueEntity;
6 import com.griddynamics.jagger.engine.e1.services.data.service.SessionEntity;
7 import com.griddynamics.jagger.engine.e1.services.data.service.TestEntity;
8 
9 import java.util.Collection;
10 import java.util.List;
11 import java.util.Map;
12 import java.util.Set;
13 
31 public interface DataService extends JaggerService {
32 
41  SessionEntity getSession(String sessionId);
42 
52  Set<SessionEntity> getSessions(Collection<String> sessionIds);
53 
62  Set<TestEntity> getTests(SessionEntity session);
63 
72  Set<TestEntity> getTests(String sessionId);
73 
82  Map<String, Set<TestEntity>> getTests(Collection<String> sessionIds);
83 
93  TestEntity getTestByName(String sessionId, String testName);
94 
104  TestEntity getTestByName(SessionEntity session, String testName);
105 
115  Map<String, TestEntity> getTestsByName(Collection<String> sessionIds, String testName);
116 
125  Set<MetricEntity> getMetrics(Long testId);
126 
135  Set<MetricEntity> getMetrics(TestEntity test);
136 
145  Map<TestEntity, Set<MetricEntity>> getMetricsByTests(Collection<TestEntity> tests);
146 
155  Map<Long, Set<MetricEntity>> getMetricsByTestIds(Collection<Long> testIds);
156 
168 
179  Map<MetricEntity, MetricSummaryValueEntity> getMetricSummary(Collection<MetricEntity> metrics);
180 
191  List<MetricPlotPointEntity> getMetricPlotData(MetricEntity metric);
192 
203  Map<MetricEntity, List<MetricPlotPointEntity>> getMetricPlotData(Collection<MetricEntity> metrics);
204 }