condition.put("searchKey", searchKey);
condition.put("monitorName", monitorName);
condition.put("pipelineId", pipelineId);
int count = logRecordService.getCount(condition);
Paginator paginator = new Paginator();
paginator.setItems(count);
paginator.setPage(pageIndex);
condition.put("offset", paginator.getOffset());
condition.put("length", paginator.getLength());
List<LogRecord> logRecords = logRecordService.listByCondition(condition);
// List<LogRecord> logRecords = logRecordService.listAll();
context.put("logRecords", logRecords);