Search in sources :

Example 6 with ApplicationMapping

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);
}
Also used : ApplicationMapping(org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping)

Example 7 with ApplicationMapping

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);
}
Also used : ApplicationMapping(org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping)

Example 8 with ApplicationMapping

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);
}
Also used : ApplicationMapping(org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping)

Aggregations

ApplicationMapping (org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping)8 RemoteSenderService (org.apache.skywalking.apm.collector.remote.service.RemoteSenderService)1