Class Serie
- java.lang.Object
-
- com.elastisys.autoscaler.metricstreamers.influxdb.resultset.Serie
-
public class Serie extends java.lang.ObjectRepresents a single data point series for an InfluxDB queryResult. If thisSeries was the result of a query that grouped by tags, theSerierepresents a single result group, with a common set of tags as specified bytags. If theSeriewas the result of a query that did not group by tags, theSerieis the single result group and notagsfield is specified.- See Also:
Result
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<java.lang.String>getColumns()Holds the column names selected in the SELECT clause.java.lang.StringgetName()The name of the measurement that was requested in theFROMclause.java.util.List<java.lang.String>getTags()The grouping tags shared by all data points in thisSeries.java.util.List<java.util.List<java.lang.Object>>getValues()The data points in theSeries as a list of[<time>, <col1-value>, <col2-value>, ...]tuples.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Serie
public Serie(java.lang.String name, java.util.List<java.lang.String> tags, java.util.List<java.lang.String> columns, java.util.List<java.util.List<java.lang.Object>> values)Creates aSerie.- Parameters:
name- The name of the measurement that was requested in theFROMclause.tags- The grouping tags shared by all data points in thisSeries. Only set if the query grouped by tag, otherwisenull.columns- Holds the column names selected in the SELECT clause. The first column is alwaystime.values- The data points in theSeries as a list of[<time>, <col1-value>, <col2-value>, ...]tuples.
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the measurement that was requested in theFROMclause.- Returns:
-
getTags
public java.util.List<java.lang.String> getTags()
The grouping tags shared by all data points in thisSeries. Only set if the query grouped by tag, otherwisenull.- Returns:
-
getColumns
public java.util.List<java.lang.String> getColumns()
Holds the column names selected in the SELECT clause. The first column is alwaystime.- Returns:
-
getValues
public java.util.List<java.util.List<java.lang.Object>> getValues()
The data points in theSeries as a list of[<time>, <col1-value>, <col2-value>, ...]tuples.- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-