2026-10-01 11:09:35 +02:00
|
|
|
using MongoDB.Entities;
|
|
|
|
|
|
|
|
|
|
namespace PrivaPub.Models.Jobs
|
|
|
|
|
{
|
|
|
|
|
public class RemoteInstance : Entity
|
|
|
|
|
{
|
|
|
|
|
public string Host { get; set; }
|
|
|
|
|
public int ConsecutiveFailures { get; set; }
|
|
|
|
|
public DateTime? UnavailableUntil { get; set; }
|
|
|
|
|
public DateTime? LastSuccessAt { get; set; }
|
|
|
|
|
public DateTime? LastFailureAt { get; set; }
|
|
|
|
|
public string LastError { get; set; }
|
2026-10-01 17:49:22 +02:00
|
|
|
|
|
|
|
|
public string Software { get; set; }//NodeInfo software.name: for display, never for deciding behaviour
|
|
|
|
|
public string SoftwareVersion { get; set; }
|
|
|
|
|
public string NodeName { get; set; }
|
|
|
|
|
public List<string> Protocols { get; set; } = new();
|
|
|
|
|
public bool? OpenRegistrations { get; set; }
|
|
|
|
|
public string NodeInfo { get; set; }//the raw document, when small enough
|
|
|
|
|
public DateTime? DescribedAt { get; set; }
|
|
|
|
|
public string DescriptionError { get; set; }
|
2026-10-01 11:09:35 +02:00
|
|
|
}
|
|
|
|
|
}
|