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

io.bdeploy.jersey.monitoring.JerseyServerMonitoringResourceImpl Maven / Gradle / Ivy

Go to download

Public API including dependencies, ready to be used for integrations and plugins.

There is a newer version: 7.4.0
Show newest version
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