@Path(value="/measurements") @Produces(value="application/json") public class MeasurementsResource extends Object
| Constructor and Description |
|---|
MeasurementsResource(org.opennms.newts.api.SampleRepository repository,
Map<String,ResultDescriptorDTO> reports) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Collection<MeasurementDTO>> |
getMeasurements(ResultDescriptorDTO descriptorDTO,
org.opennms.newts.api.Resource resource,
com.google.common.base.Optional<TimestampParam> start,
com.google.common.base.Optional<TimestampParam> end,
com.google.common.base.Optional<DurationParam> resolution,
com.google.common.base.Optional<String> contextId) |
Collection<Collection<MeasurementDTO>> |
getMeasurements(String report,
org.opennms.newts.api.Resource resource,
com.google.common.base.Optional<TimestampParam> start,
com.google.common.base.Optional<TimestampParam> end,
com.google.common.base.Optional<DurationParam> resolution,
com.google.common.base.Optional<String> contextId) |
public MeasurementsResource(org.opennms.newts.api.SampleRepository repository,
Map<String,ResultDescriptorDTO> reports)
@POST
@Path(value="/{resource}")
@Timed
public Collection<Collection<MeasurementDTO>> getMeasurements(ResultDescriptorDTO descriptorDTO,
@PathParam(value="resource")
org.opennms.newts.api.Resource resource,
@QueryParam(value="start")
com.google.common.base.Optional<TimestampParam> start,
@QueryParam(value="end")
com.google.common.base.Optional<TimestampParam> end,
@QueryParam(value="resolution")
com.google.common.base.Optional<DurationParam> resolution,
@QueryParam(value="context")
com.google.common.base.Optional<String> contextId)
@GET
@Path(value="/{report}/{resource}")
@Timed
public Collection<Collection<MeasurementDTO>> getMeasurements(@PathParam(value="report")
String report,
@PathParam(value="resource")
org.opennms.newts.api.Resource resource,
@QueryParam(value="start")
com.google.common.base.Optional<TimestampParam> start,
@QueryParam(value="end")
com.google.common.base.Optional<TimestampParam> end,
@QueryParam(value="resolution")
com.google.common.base.Optional<DurationParam> resolution,
@QueryParam(value="context")
com.google.common.base.Optional<String> contextId)
Copyright © 2019. All rights reserved.