61 lines
1.4 KiB
C#
61 lines
1.4 KiB
C#
// <copyright file="HeartbeatModel.cs" company="alveus.dev">
|
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
|
// </copyright>
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Astral.ApiServer.Models;
|
|
|
|
/// <summary>
|
|
/// Heartbeat contents.
|
|
/// </summary>
|
|
public class HeartbeatModel
|
|
{
|
|
/// <summary>
|
|
/// True if connected.
|
|
/// </summary>
|
|
[JsonPropertyName("connected")]
|
|
public bool Connected { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path.
|
|
/// </summary>
|
|
[JsonPropertyName("path")]
|
|
public string Path { get; set; }
|
|
|
|
/// <summary>
|
|
/// Domain id.
|
|
/// </summary>
|
|
[JsonPropertyName("domain_id")]
|
|
public Guid DomainId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Place id.
|
|
/// </summary>
|
|
[JsonPropertyName("place_id")]
|
|
public Guid PlaceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Network address.
|
|
/// </summary>
|
|
[JsonPropertyName("network_address")]
|
|
public string NetworkAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// Network port.
|
|
/// </summary>
|
|
[JsonPropertyName("network_port")]
|
|
public int NetworkPort { get; set; }
|
|
|
|
/// <summary>
|
|
/// Node id.
|
|
/// </summary>
|
|
[JsonPropertyName("node_id")]
|
|
public Guid NodeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Availability.
|
|
/// </summary>
|
|
[JsonPropertyName("availability")]
|
|
public string Availability { get; set; }
|
|
}
|