use of com.axibase.tsd.api.model.series.SeriesGroupInfo in project atsd-api-test by axibase.
the class SeriesSign method of.
public static SeriesSign of(Series series) {
String entity = series.getEntity();
Map<String, String> tags = series.getTags();
String side = tags == null ? null : tags.get("side");
Aggregate aggregate = series.getAggregate();
AggregationType aggregationType = aggregate == null ? null : aggregate.getType();
SeriesGroupInfo group = series.getGroup();
GroupType groupType = group == null ? null : group.getType();
return new SeriesSign(entity, side, aggregationType, groupType);
}
Aggregations