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

extending heartbeat response #121

Merged
merged 3 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion AgentInterfaces/MaintenanceSchedule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ namespace Microsoft.Azure.Gaming.AgentInterfaces
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

// Data Format: https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-scheduled-events
// Data Format: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/scheduled-events
[Serializable]
public class MaintenanceSchedule
{
public string DocumentIncarnation { get; set; }
Expand All @@ -32,6 +34,7 @@ public MaintenanceSchedule(MaintenanceSchedule other)
}

// https://docs.microsoft.com/en-us/azure/virtual-machines/windows/scheduled-events#query-for-events
[Serializable]
public class MaintenanceEvent
{
public string EventId { get; set; }
Expand Down
5 changes: 5 additions & 0 deletions AgentInterfaces/SessionHostHeartbeatInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ public class SessionHostHeartbeatInfo
/// </summary>
public DateTime? NextScheduledMaintenanceUtc { get; set; }

/// <summary>
/// Planned maintenance events
/// </summary>
public MaintenanceSchedule MaintenanceSchedule { get; set; }

/// <summary>
/// Used by some legacy games such as Forza 5 for security handshake with the game client.
/// </summary>
Expand Down
Loading