@Path(value="/samples") @Produces(value="application/json") public class SampleResource extends Object
| Constructor and Description | 
|---|
SampleResource()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getSamples(String agentId,
          String resourceType,
          String resourceName,
          String metricNames,
          String start,
          String end)  | 
void | 
setAgentRepository(AgentRepository<?> agentRepository)  | 
void | 
setMetricRepository(MetricRepository metricRepository)  | 
void | 
setSampleRepository(SampleRepository sampleRepo)  | 
@GET
 @Path(value="{agentId}/{resourceType}/{resourceName}/{metric}")
public String getSamples(@PathParam(value="agentId")
                                                                                               String agentId,
                                                                                               @PathParam(value="resourceType")
                                                                                               String resourceType,
                                                                                               @PathParam(value="resourceName")
                                                                                               String resourceName,
                                                                                               @PathParam(value="metric")
                                                                                               String metricNames,
                                                                                               @QueryParam(value="start")
                                                                                               String start,
                                                                                               @QueryParam(value="end")
                                                                                               String end)
public void setSampleRepository(SampleRepository sampleRepo)
public void setAgentRepository(AgentRepository<?> agentRepository)
public void setMetricRepository(MetricRepository metricRepository)
Copyright © 2015. All rights reserved.