Interface LogstashIndexerDao

    • Method Detail

      • getDescription

        String getDescription()
      • push

        void push​(String data)
           throws IOException
        Sends the log data to the Logstash indexer.
        Parameters:
        data - The serialized data, not null
        Throws:
        IOException - The data is not written to the server
      • buildPayload

        net.sf.json.JSONObject buildPayload​(BuildData buildData,
                                            String jenkinsUrl,
                                            List<String> logLines)
        Builds a JSON payload compatible with the Logstash schema.
        Parameters:
        buildData - Metadata about the current build, not null
        jenkinsUrl - The host name of the Jenkins instance, not null
        logLines - The log data to transmit, not null
        Returns:
        The formatted JSON object, never null