Class LogSenderHelper
- java.lang.Object
-
- com.sumologic.jenkins.jenkinssumologicplugin.sender.LogSenderHelper
-
public class LogSenderHelper extends Object
Sumo Logic plugin for Jenkins model.Log Sender Helper
Created by Sourabh Jain on 5/2019.
-
-
Constructor Summary
Constructors Constructor Description LogSenderHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogSenderHelper
getInstance()
void
sendAuditLogs(String data)
void
sendConsoleLogs(String data, String jobName, int buildNumber, String stageName)
void
sendData(byte[] bytes)
void
sendDataWithFields(byte[] bytes, HashMap<String,String> fields)
void
sendFilesData(List<String> messages, String localFileString, HashMap<String,String> fields)
void
sendJobStatusLogs(String data)
void
sendLogsToMetricDataCategory(List<String> messages)
void
sendLogsToPeriodicSourceCategory(String data)
void
sendMultiplePeriodicLogs(List<String> messages)
static void
sendPipelineStages(List<PipelineStageModel> stages, BuildModel buildModel)
static void
sendTestResult(TestCaseModel testCaseModel, BuildModel buildModel)
-
-
-
Field Detail
-
LOG
public static final Logger LOG
-
-
Method Detail
-
getInstance
public static LogSenderHelper getInstance()
-
sendData
public void sendData(byte[] bytes)
-
sendLogsToPeriodicSourceCategory
public void sendLogsToPeriodicSourceCategory(String data)
-
sendFilesData
public void sendFilesData(List<String> messages, String localFileString, HashMap<String,String> fields)
-
sendJobStatusLogs
public void sendJobStatusLogs(String data)
-
sendConsoleLogs
public void sendConsoleLogs(String data, String jobName, int buildNumber, String stageName)
-
sendAuditLogs
public void sendAuditLogs(String data)
-
sendTestResult
public static void sendTestResult(TestCaseModel testCaseModel, BuildModel buildModel)
-
sendPipelineStages
public static void sendPipelineStages(List<PipelineStageModel> stages, BuildModel buildModel)
-
-