| Package | Description |
|---|---|
| org.opennms.newts.api |
| Modifier and Type | Method and Description |
|---|---|
static Timestamp |
Timestamp.fromDate(Date d) |
static Timestamp |
Timestamp.fromEpochMillis(long millis) |
static Timestamp |
Timestamp.fromEpochSeconds(long seconds) |
Timestamp |
Sample.getTimestamp() |
Timestamp |
Measurement.getTimestamp() |
Timestamp |
Results.Row.getTimestamp() |
Timestamp |
Element.getTimestamp() |
Timestamp |
Timestamp.minus(Duration d) |
Timestamp |
Timestamp.minus(long value,
TimeUnit units) |
static Timestamp |
Timestamp.now() |
Timestamp |
Timestamp.plus(Duration d) |
Timestamp |
Timestamp.plus(long value,
TimeUnit units) |
Timestamp |
Timestamp.stepCeiling(Duration d) |
Timestamp |
Timestamp.stepCeiling(long stepSize,
TimeUnit units) |
Timestamp |
Timestamp.stepFloor(Duration d) |
Timestamp |
Timestamp.stepFloor(long stepSize,
TimeUnit units) |
| Modifier and Type | Method and Description |
|---|---|
int |
Timestamp.compareTo(Timestamp o) |
boolean |
Timestamp.gt(Timestamp other) |
boolean |
Timestamp.gte(Timestamp other) |
boolean |
Timestamp.lt(Timestamp other) |
boolean |
Timestamp.lte(Timestamp other) |
Duration |
Timestamp.minus(Timestamp t) |
| Modifier and Type | Method and Description |
|---|---|
Results<Sample> |
SampleRepository.select(Context context,
Resource resource,
com.google.common.base.Optional<Timestamp> start,
com.google.common.base.Optional<Timestamp> end)
Read stored samples.
|
Results<Sample> |
SampleRepository.select(Context context,
Resource resource,
com.google.common.base.Optional<Timestamp> start,
com.google.common.base.Optional<Timestamp> end)
Read stored samples.
|
Results<Measurement> |
SampleRepository.select(Context context,
Resource resource,
com.google.common.base.Optional<Timestamp> start,
com.google.common.base.Optional<Timestamp> end,
ResultDescriptor descriptor,
com.google.common.base.Optional<Duration> resolution)
Query measurements.
|
Results<Measurement> |
SampleRepository.select(Context context,
Resource resource,
com.google.common.base.Optional<Timestamp> start,
com.google.common.base.Optional<Timestamp> end,
ResultDescriptor descriptor,
com.google.common.base.Optional<Duration> resolution)
Query measurements.
|
| Constructor and Description |
|---|
Measurement(Timestamp timestamp,
Resource resource,
String name,
double value) |
Measurement(Timestamp timestamp,
Resource resource,
String name,
double value,
Map<String,String> attributes) |
Row(Timestamp timestamp,
Resource resource) |
Sample(Timestamp timestamp,
Context context,
Resource resource,
String name,
MetricType type,
ValueType<?> value) |
Sample(Timestamp timestamp,
Context context,
Resource resource,
String name,
MetricType type,
ValueType<?> value,
Map<String,String> attributes) |
Sample(Timestamp timestamp,
Resource resource,
String name,
MetricType type,
ValueType<?> value) |
Sample(Timestamp timestamp,
Resource resource,
String name,
MetricType type,
ValueType<?> value,
Map<String,String> attributes) |
Copyright © 2015. All rights reserved.