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 LogSenderHelpergetInstance()voidsendAuditLogs(String data)voidsendConsoleLogs(String data, String jobName, int buildNumber, String stageName)voidsendData(byte[] bytes)voidsendDataWithFields(byte[] bytes, HashMap<String,String> fields)voidsendFilesData(List<String> messages, String localFileString, HashMap<String,String> fields)voidsendJobStatusLogs(String data)voidsendLogsToMetricDataCategory(List<String> messages)voidsendLogsToPeriodicSourceCategory(String data)voidsendMultiplePeriodicLogs(List<String> messages)static voidsendPipelineStages(List<PipelineStageModel> stages, BuildModel buildModel)static voidsendTestResult(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)
-
-