com.plumelog.lite.client.IndexUtil Maven / Gradle / Ivy
The newest version!
package com.plumelog.lite.client;
import com.plumelog.core.constant.LogMessageConstant;
public class IndexUtil {
public static String getRunLogIndex(long epochMillis) {
return LogMessageConstant.ES_INDEX + LogMessageConstant.LOG_TYPE_RUN + "_"
+ DateUtil.getDateShortStr(InitConfig.ES_INDEX_ZONE_ID, epochMillis);
}
public static String getTraceLogIndex(long epochMillis) {
return LogMessageConstant.ES_INDEX + LogMessageConstant.LOG_TYPE_TRACE + "_"
+ DateUtil.getDateShortStr(InitConfig.ES_INDEX_ZONE_ID, epochMillis);
}
public static String getRunLogIndexWithHour(long epochMillis) {
return LogMessageConstant.ES_INDEX + LogMessageConstant.LOG_TYPE_RUN + "_"
+ DateUtil.getDateWithHourShortStr(InitConfig.ES_INDEX_ZONE_ID, epochMillis);
}
public static String getTraceLogIndexWithHour(long epochMillis) {
return LogMessageConstant.ES_INDEX + LogMessageConstant.LOG_TYPE_TRACE + "_"
+ DateUtil.getDateWithHourShortStr(InitConfig.ES_INDEX_ZONE_ID, epochMillis);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy