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.3.6
Show newest version
package io.bdeploy.jersey.monitoring;

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;

import io.bdeploy.common.security.RequiredPermission;
import io.bdeploy.common.security.ScopedPermission.Permission;

@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