All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.actuate.startup.AppStartupEndpoint Maven / Gradle / Ivy

The newest version!
package org.zodiac.actuate.startup;

import org.springframework.boot.actuate.endpoint.web.annotation.RestControllerEndpoint;
import org.springframework.web.bind.annotation.GetMapping;
import org.zodiac.core.application.startup.AppStartupReporter;
import org.zodiac.core.application.startup.AppStartupStatisticsDetail;

@RestControllerEndpoint(id = AppStartupEndpoint.ENDPOINT_NAME)
public class AppStartupEndpoint {

    public static final String ENDPOINT_NAME = "app-startup";

    private AppStartupReporter startupReporter;

    public AppStartupEndpoint(AppStartupReporter startupReporter) {
        super();
        this.startupReporter = startupReporter;
    }

    @GetMapping("/statis")
    public AppStartupStatisticsDetail startup() {
        return startupReporter.report();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy