Skip to content

Commit

Permalink
feat: Add RecentLogs support
Browse files Browse the repository at this point in the history
  • Loading branch information
ZPascal committed Aug 1, 2024
1 parent 1fffc4c commit dd7ee2f
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ public interface DopplerClient {
*/
Flux<Envelope> firehose(FirehoseRequest request);

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,12 @@ public interface LogCacheClient {
* @return the read response
*/
Mono<ReadResponse> read(ReadRequest request);

/**
* Makes the Log Cache RecentLogs /api/v1/read request
*
* @param request the Recent Logs request
* @return the events from the recent logs
*/
Mono<ReadResponse> recentLogs(ReadRequest request);
}
Loading

0 comments on commit dd7ee2f

Please sign in to comment.