Search in sources :

Example 1 with SeriesGroupInfo

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);
}
Also used : GroupType(com.axibase.tsd.api.model.series.query.transformation.group.GroupType) Aggregate(com.axibase.tsd.api.model.series.query.transformation.aggregate.Aggregate) SeriesGroupInfo(com.axibase.tsd.api.model.series.SeriesGroupInfo) AggregationType(com.axibase.tsd.api.model.series.query.transformation.aggregate.AggregationType)

Aggregations

SeriesGroupInfo (com.axibase.tsd.api.model.series.SeriesGroupInfo)1 Aggregate (com.axibase.tsd.api.model.series.query.transformation.aggregate.Aggregate)1 AggregationType (com.axibase.tsd.api.model.series.query.transformation.aggregate.AggregationType)1 GroupType (com.axibase.tsd.api.model.series.query.transformation.group.GroupType)1