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

com.wavefront.api.LogAPI Maven / Gradle / Ivy

package com.wavefront.api;

import com.wavefront.dto.Log;

import javax.ws.rs.Consumes;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.List;

@Path("/")
public interface LogAPI {

    /**
     * Ingest a batch of logs.
     *
     * @param logBatch batch of logs to be reported
     * @return HTTP response
     */
    @POST
    @Consumes(MediaType.APPLICATION_JSON)
    @Path("le-mans/v1/streams/ingestion-pipeline-stream")
    Response proxyLogs(@HeaderParam("agent") final String agentProxyId, final List logBatch);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy