package com.kidgrow.log.controller; import com.kidgrow.searchcenter.client.service.IQueryService; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import java.util.Map; /** * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020
* * @Description: 访问统计
* @Project:
* @CreateDate: Created in 2020/2/24 11:23
* @Author: liuke */ @RestController public class AggregationController { @Autowired private IQueryService queryService; @ApiOperation(value = "访问统计") @GetMapping(value = "/requestStat") public Map requestStatAgg() { return queryService.requestStatAgg("point-log-*","request-statistics"); } }