use of org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping in project incubator-skywalking by apache.
the class ApplicationMappingHourTransformNode method process.
@Override
public void process(ApplicationMapping applicationMapping, Next<ApplicationMapping> next) {
long timeBucket = TimeBucketUtils.INSTANCE.minuteToHour(applicationMapping.getTimeBucket());
ApplicationMapping newApplicationMapping = ApplicationMappingCopy.copy(applicationMapping);
newApplicationMapping.setId(String.valueOf(timeBucket) + Const.ID_SPLIT + applicationMapping.getMetricId());
newApplicationMapping.setTimeBucket(timeBucket);
next.execute(newApplicationMapping);
}
use of org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping in project incubator-skywalking by apache.
the class ApplicationMappingDayTransformNode method process.
@Override
public void process(ApplicationMapping applicationMapping, Next<ApplicationMapping> next) {
long timeBucket = TimeBucketUtils.INSTANCE.minuteToDay(applicationMapping.getTimeBucket());
ApplicationMapping newApplicationMapping = ApplicationMappingCopy.copy(applicationMapping);
newApplicationMapping.setId(String.valueOf(timeBucket) + Const.ID_SPLIT + applicationMapping.getMetricId());
newApplicationMapping.setTimeBucket(timeBucket);
next.execute(newApplicationMapping);
}
use of org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping in project incubator-skywalking by apache.
the class ApplicationMappingMonthTransformNode method process.
@Override
public void process(ApplicationMapping applicationMapping, Next<ApplicationMapping> next) {
long timeBucket = TimeBucketUtils.INSTANCE.minuteToMonth(applicationMapping.getTimeBucket());
ApplicationMapping newApplicationMapping = ApplicationMappingCopy.copy(applicationMapping);
newApplicationMapping.setId(String.valueOf(timeBucket) + Const.ID_SPLIT + applicationMapping.getMetricId());
newApplicationMapping.setTimeBucket(timeBucket);
next.execute(newApplicationMapping);
}
Aggregations