class StreamStatusMetricService {

    @CachedGauge(absolute = true, name = "streams.actions", timeout = 30, timeoutUnit = TimeUnit.SECONDS)
    public Map<String, String> getStreamActions() {
        Map<String, StreamStatusDTO> streams = streamStatusDao.getAll();
        Map<String, String> result = new HashMap<>();
        for (StreamStatusDTO stream : streams.values()) {
            result.put(stream.getStreamName(), stream.getActionsEnabled().toString());
        }
        return result;
    }

    public  StreamStatusMetricService(StreamStatusDao streamStatusDao);

}