Skip to content

Commit

Permalink
maintenancev2
Browse files Browse the repository at this point in the history
  • Loading branch information
dgkanatsios committed Mar 1, 2024
1 parent d22d2a3 commit a4f6f4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
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
6 changes: 6 additions & 0 deletions AgentInterfaces/VmAgentSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public class VmAgentSettings
/// </summary>
public HashSet<string> TitlesUsingExternalAllocations { get; set; }

/// <summary>
/// Titles that are using MaintenanceV2 - essentially, getting the full maintenance schedule details on the
/// GSDK maintenance callback
/// </summary>
public HashSet<string> TitlesUsingMaintenanceV2 { get; set; }

/// <summary>
/// Whether the maintenance schedule time should be passed to GSDK.
/// </summary>
Expand Down

0 comments on commit a4f6f4c

Please sign in to comment.