package com.goldenchart.trading.pipeline;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 파이프라인 운영 상태 조회 (모니터링·디버깅).
 */
@RestController
@RequestMapping("/trading/pipeline")
@RequiredArgsConstructor
public class TradingPipelineStatusController {

    private final PipelineMonitorService monitorService;

    @GetMapping("/status")
    public Map<String, Object> status() {
        return monitorService.buildMonitorSnapshot();
    }
}
