org.openmetadata.service.search.indexes.WebAnalyticUserActivityReportDataIndex Maven / Gradle / Ivy
package org.openmetadata.service.search.indexes;
import java.util.Map;
import org.openmetadata.schema.analytics.ReportData;
import org.openmetadata.service.util.JsonUtils;
public record WebAnalyticUserActivityReportDataIndex(ReportData reportData) implements SearchIndex {
@Override
public Object getEntity() {
return reportData;
}
@Override
public Map buildSearchIndexDocInternal(Map esDoc) {
Map doc = JsonUtils.getMap(reportData);
doc.put("entityType", "webAnalyticUserActivityReportData");
return doc;
}
}