io.bdeploy.jersey.monitoring.JerseyServerMonitoringResourceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Public API including dependencies, ready to be used for integrations and plugins.
package io.bdeploy.jersey.monitoring;
import io.bdeploy.common.security.RequiredPermission;
import io.bdeploy.common.security.ScopedPermission.Permission;
import jakarta.inject.Inject;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
@Path("/server-monitor")
@Produces(MediaType.APPLICATION_JSON)
public class JerseyServerMonitoringResourceImpl {
@Inject
private JerseyServerMonitoringSamplerService jsmss;
@GET
@RequiredPermission(permission = Permission.ADMIN)
public JerseyServerMonitoringDto getMonitoringSamples() {
return jsmss.getSamples();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy