Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

enchobelezirev
Copy link
Contributor

No description provided.

@nebhale nebhale requested a review from twoseat April 2, 2020 16:50
@twoseat twoseat self-assigned this Apr 3, 2020
Copy link
Contributor

@twoseat twoseat left a 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 {
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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 {
Copy link
Contributor

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

@twoseat twoseat changed the base branch from master to main July 9, 2020 15:42
@dmikusa dmikusa added client doppler triaged Initial triage of issue has been performed labels Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client doppler triaged Initial triage of issue has been performed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants