Skip to content

Commit dd7ee2f

Browse files
committed
feat: Add RecentLogs support
1 parent 1fffc4c commit dd7ee2f

File tree

3 files changed

+163
-111
lines changed

3 files changed

+163
-111
lines changed

cloudfoundry-client/src/main/java/org/cloudfoundry/doppler/DopplerClient.java

+3
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ public interface DopplerClient {
3939
*/
4040
Flux<Envelope> firehose(FirehoseRequest request);
4141

42+
//TODO Adapt the message
4243
/**
4344
* Makes the <a href="https://github.com/cloudfoundry/loggregator/tree/develop/src/trafficcontroller#endpoints">Recent Logs</a> request
4445
*
46+
* @deprecated Do not use this type directly, it exists only for the <em>Jackson</em>-binding infrastructure
4547
* @param request the Recent Logs request
4648
* @return the events from the recent logs
4749
*/
50+
@Deprecated
4851
Flux<Envelope> recentLogs(RecentLogsRequest request);
4952

5053
/**

cloudfoundry-client/src/main/java/org/cloudfoundry/logcache/v1/LogCacheClient.java

+8
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,12 @@ public interface LogCacheClient {
4646
* @return the read response
4747
*/
4848
Mono<ReadResponse> read(ReadRequest request);
49+
50+
/**
51+
* Makes the Log Cache RecentLogs /api/v1/read request
52+
*
53+
* @param request the Recent Logs request
54+
* @return the events from the recent logs
55+
*/
56+
Mono<ReadResponse> recentLogs(ReadRequest request);
4957
}

0 commit comments

Comments
 (0)