Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dgkanatsios committed Jun 24, 2022
1 parent 7b1dcde commit 08d04ec
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions AgentInterfaces/MaintenanceSchedule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ namespace Microsoft.Azure.Gaming.AgentInterfaces
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

[Serializable]
public class MaintenanceScheduleEx : MaintenanceSchedule
{
public MaintenanceReason MaintenanceReason { get; set; }
}

// Data Format: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/scheduled-events
[Serializable]
public class MaintenanceSchedule
Expand All @@ -24,6 +18,11 @@ public class MaintenanceSchedule
public IList<MaintenanceEvent> MaintenanceEvents { get; set; }

public string ReportingVmId { get; set; }

/// <summary>
/// The source of the maintenance event. It can be either Azure or PlayFab
/// </summary>
public string MaintenanceSource { get; set; }
}

// https://docs.microsoft.com/en-us/azure/virtual-machines/windows/scheduled-events#query-for-events
Expand All @@ -47,11 +46,4 @@ public class MaintenanceEvent

public int DurationInSeconds { get; set; }
}

[JsonConverter(typeof(StringEnumConverter))]
public enum MaintenanceReason
{
Azure,
PlayFab
}
}

0 comments on commit 08d04ec

Please sign in to comment.