diff --git a/source/Octopus.Server.Client/Model/PreconditionStatus.cs b/source/Octopus.Server.Client/Model/PreconditionStatus.cs new file mode 100644 index 000000000..88a625f6d --- /dev/null +++ b/source/Octopus.Server.Client/Model/PreconditionStatus.cs @@ -0,0 +1,24 @@ + +namespace Octopus.Client.Model +{ + public class PreconditionStatus + { + /// + /// The human-readable name of the precondition which has raised + /// this message/status + /// + public string PreconditionName { get; set; } + + /// + /// A human-readable statement indicating the status of the + /// Precondition + /// + public string Message { get; set; } + + /// + /// True if this precondition will outright fail the task (terminal) + /// False if this precondition will delay the task's execution + /// + public bool WillFailTask { get; set; } + } +} \ No newline at end of file diff --git a/source/Octopus.Server.Client/Model/TaskResource.cs b/source/Octopus.Server.Client/Model/TaskResource.cs index 46259ffa2..e19c714a9 100644 --- a/source/Octopus.Server.Client/Model/TaskResource.cs +++ b/source/Octopus.Server.Client/Model/TaskResource.cs @@ -163,6 +163,14 @@ public bool FinishedSuccessfully [JsonProperty(Order = 34)] public bool HasWarningsOrErrors { get; set; } + /// + /// Contains a list of all Preconditions which must be + /// satisfied prior to this task executing. An empty list + /// implies the task is able to run at its scheduled time + /// + [JsonProperty(Order = 35)] + public List UnmetPreconditions { get; set; } + public string SpaceId { get; set; } } } \ No newline at end of file