This commit is contained in:
Jenkins 2015-07-06 14:28:07 +00:00 committed by Gerrit Code Review
commit d155a68aaa
2 changed files with 16 additions and 11 deletions

View File

@ -21,37 +21,42 @@ import java.util.Map;
public class InfluxPoint {
private final String name;
private final String measurement;
private final Map<String, String> tags;
private final String timestamp;
private final String time;
private final Map<String, Object> fields;
private final String Precision = "ms";
public InfluxPoint(
final String name,
final String measurement,
final Map<String, String> tags,
final String timestamp,
final String time,
final Map<String, Object> fields) {
this.name = name;
this.measurement = measurement;
this.tags = tags;
this.timestamp = timestamp;
this.time = time;
this.fields = fields;
}
public String getName() {
return name;
public String getMeasurement() {
return measurement;
}
public Map<String, String> getTags() {
return this.tags;
}
public String getTimestamp() {
return this.timestamp;
public String getTime() {
return this.time;
}
public Map<String, Object> getFields() {
return this.fields;
}
public String getPrecision() {
return Precision;
}
}

View File

@ -185,7 +185,7 @@ public class InfluxV9RepoWriter {
int rc = response.getStatusLine().getStatusCode();
if (rc != HttpStatus.SC_OK) {
if (rc != HttpStatus.SC_OK && rc != HttpStatus.SC_NO_CONTENT) {
logger.error("[{}]: failed to send data to influxdb {} at {}: {}", id,
this.influxName, this.influxUrl, String.valueOf(rc));