All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datorama.oss.timbermill.unit.IndexEvent Maven / Gradle / Ivy

There is a newer version: 2.5.3
Show newest version
package com.datorama.oss.timbermill.unit;

import java.time.ZonedDateTime;
import java.util.Map;

import com.datorama.oss.timbermill.common.TimbermillDatesUtils;

public class IndexEvent extends Task {

    public IndexEvent(String env, Integer fetchedAmount, ZonedDateTime startTime, ZonedDateTime endTime, Integer eventsAmount, long defaultDaysRotation,
            long timesDuration) {
        setName("metadata_timbermill_index");
        setEnv(env);
        Map metric = getMetric();
        metric.put("eventsAmount", eventsAmount);
        metric.put("fetchedAmount", fetchedAmount);
        setStatus(TaskStatus.SUCCESS);

        setStartTime(startTime);
        setEndTime(endTime);
        setDuration(timesDuration);
        setDateToDelete(TimbermillDatesUtils.getDateToDeleteWithDefault(defaultDaysRotation));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy