Skip to content

Add API to report disconnected endpoint count to ServiceControl.Monitoring#2059

Merged
WilliamBZA merged 2 commits intomasterfrom
disconnected-endpoint-count
Aug 11, 2020
Merged

Add API to report disconnected endpoint count to ServiceControl.Monitoring#2059
WilliamBZA merged 2 commits intomasterfrom
disconnected-endpoint-count

Conversation

@boblangley
Copy link
Copy Markdown
Member

Adds a new API and test to report the total endpoint disconnected count for use by ServicePulse.

@boblangley boblangley marked this pull request as ready for review July 23, 2020 21:54
@boblangley boblangley requested a review from WilliamBZA July 23, 2020 21:54
@WilliamBZA
Copy link
Copy Markdown
Member

Don't forget milestones and labels

@WilliamBZA WilliamBZA added this to the 4.12.0 milestone Aug 11, 2020
@WilliamBZA
Copy link
Copy Markdown
Member

I've added to the 4.12.0 release.

@WilliamBZA WilliamBZA merged commit ee4a5a0 into master Aug 11, 2020
@WilliamBZA WilliamBZA deleted the disconnected-endpoint-count branch August 11, 2020 06:54

return context.SecondInstance;
}))
.Done(async c =>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember this is run over and over until it returns true.

Comment on lines +82 to +84
Assert.AreEqual(0, context.AfterAllStartedCount, "Disconnected count after all endpoints started");
Assert.AreEqual(1, context.AfterFirstStoppedCount, "Disconnected count after first endpoint stopped");
Assert.AreEqual(2, context.AfterSecondStoppedCount, "Disconnected count after both endpoints stopped");
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are asserts are incorrect, but I think the rest of the test is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants