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

VmConditions implementation #151

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

VmConditions implementation #151

wants to merge 3 commits into from

Conversation

dgkanatsios
Copy link
Contributor

This PR implements a VmCondition class to designate various extra conditions (states) the VM might encounter.

@dgkanatsios dgkanatsios requested a review from a team January 13, 2023 21:40
public string ToLogString()
{
if (SessionHostHeartbeatMap?.Count > 10)
{
string maintenanceSchedule = MaintenanceSchedule?.ToJsonString() ?? string.Empty;
string networkConfiguration = NetworkConfiguration?.ToJsonString() ?? string.Empty;
string sessionHostSummary = SessionHostHeartbeatMap.Values.GroupBy(x => x.CurrentGameState).ToDictionary(y => y.Key, y => y.Count()).ToJsonString();
string vmConditions = VmConditions?.ToJsonString() ?? string.Empty;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you check this serialization with a test please?

@dgkanatsios dgkanatsios marked this pull request as draft January 19, 2023 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants