Interface LogStorageRetriever
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
CustomLogStorageRetriever
,ElasticsearchLogStorageRetriever
,LokiLogStorageRetriever
-
Method Summary
Modifier and TypeMethodDescriptionoverallLog
(String jobFullName, int runNumber, String traceId, String spanId, boolean complete, Instant startTime, Instant endTime) stepLog
(String jobFullName, int runNumber, String flowNodeId, String traceId, String spanId, boolean complete, Instant startTime, Instant endTime) Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
overallLog
@NonNull LogsQueryResult overallLog(@NonNull String jobFullName, int runNumber, @NonNull String traceId, @NonNull String spanId, boolean complete, @NonNull Instant startTime, @Nullable Instant endTime) throws IOException - Parameters:
jobFullName
- seeAbstractItem.getFullName()
runNumber
- seeRun.getNumber()
complete
- if true, we claim to be serving the complete log for a build, so implementations should be sure to retrieve final log linesstartTime
- Pipeline run start time. SeeRun.getStartTimeInMillis()
endTime
-null
if the pipeline is still running. SeeRun.getDuration()
- Throws:
IOException
-
stepLog
@NonNull LogsQueryResult stepLog(@NonNull String jobFullName, int runNumber, @NonNull String flowNodeId, @NonNull String traceId, @NonNull String spanId, boolean complete, @NonNull Instant startTime, @Nullable Instant endTime) throws IOException - Parameters:
jobFullName
- seeAbstractItem.getFullName()
runNumber
- seeRun.getNumber()
flowNodeId
- seeFlowNode.getId()
complete
- if true, we claim to be serving the complete log for a build, so implementations should be sure to retrieve final log linesstartTime
- Pipeline run start time. SeeRun.getStartTimeInMillis()
endTime
-null
if the pipeline is still running. SeeRun.getDuration()
- Throws:
IOException
-