Class AbstractLogstashIndexerDao

    • Constructor Detail

      • AbstractLogstashIndexerDao

        public AbstractLogstashIndexerDao()
    • Method Detail

      • buildPayload

        public net.sf.json.JSONObject buildPayload​(BuildData buildData,
                                                   String jenkinsUrl,
                                                   List<String> logLines)
        Description copied from interface: LogstashIndexerDao
        Builds a JSON payload compatible with the Logstash schema.
        Specified by:
        buildPayload in interface LogstashIndexerDao
        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