-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce LoggregatorV2 Client #1021
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @enchobelezirev - my apologies for the delay, I can now give this the attention it deserves. Everything looks good, but we need some tests adding to prove the functionality. I've tried to give pointers to what they should look like. Thanks for the submission, I look forward to incorporating it soon!
import reactor.core.publisher.Mono; | ||
|
||
@Value.Immutable | ||
abstract class _ReactorLoggregatorClient implements LoggregatorClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires tests in line with ReactorDopplerClientTest
@@ -41,6 +42,30 @@ public static ContainerMetric from(org.cloudfoundry.dropsonde.events.ContainerMe | |||
.build(); | |||
} | |||
|
|||
public static ContainerMetric from(LoggregatorEnvelope.Envelope envelope) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires tests in line with ContainerMetricTests
@@ -36,6 +37,15 @@ public static CounterEvent from(org.cloudfoundry.dropsonde.events.CounterEvent d | |||
.total(dropsonde.total) | |||
.build(); | |||
} | |||
public static CounterEvent from(LoggregatorEnvelope.Counter counter) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires tests in line with CounterEventTests
@@ -40,6 +42,20 @@ public static LogMessage from(org.cloudfoundry.dropsonde.events.LogMessage drops | |||
.build(); | |||
} | |||
|
|||
public static LogMessage from(LoggregatorEnvelope.Envelope envelope) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires tests in line with LogMessageTests
* The request payload for the Read endpoint | ||
*/ | ||
@Value.Immutable | ||
abstract class _StreamRequest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires tests in line with the doppler StreamRequestTests
No description provided.