Examples of SourcesResponse


Examples of org.graylog2.restclient.models.api.responses.SourcesResponse

    }

    public List<Source> all(int range) throws APIException, IOException {
        List<Source> list = Lists.newArrayList();

        SourcesResponse response = api.path(routes.SourcesResource().list(), SourcesResponse.class)
                .queryParam("range", range)
                .timeout(apiTimeout("sources_all", 20, TimeUnit.SECONDS))
                .execute();

        for (Map.Entry<String, Long> source : response.sources.entrySet()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.