public abstract class InfluxDbMeasurement extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InfluxDbMeasurement.Builder
A builder for
InfluxDbMeasurement. |
| Constructor and Description |
|---|
InfluxDbMeasurement() |
| Modifier and Type | Method and Description |
|---|---|
static InfluxDbMeasurement |
create(String name,
Map<String,String> tags,
Map<String,String> fields,
long timestamp)
Creates a new
InfluxDbMeasurement. |
abstract Map<String,String> |
fields() |
abstract String |
name() |
abstract Map<String,String> |
tags() |
abstract long |
timestamp() |
String |
toLine()
Returns the measurement in InfluxDB line notation with the provided timestamp precision.
|
String |
toString() |
public abstract String name()
public abstract long timestamp()
public static InfluxDbMeasurement create(String name, Map<String,String> tags, Map<String,String> fields, long timestamp)
InfluxDbMeasurement.
Assumes that these fields have already been escaped;
by default, any invalid measurement is silently dropped by InfluxDB.public String toLine()
Does not support sub-millisecond timestamp precision.
Copyright © 2017. All rights reserved.