Salmon/Salmon.Service/Watchers/WebStatus.cs
2025-02-03 19:16:31 +01:00

19 lines
459 B
C#

using Salmon.Core;
namespace Salmon.Service.Watchers;
public class WebStatus
: BaseFielded
{
public string Method { get; set; } = "GET";
public string Uri { get; set; }
public override async Task<IEnumerable<Element>> ForgeElements()
{
List<Element> elements = new();
var ws = await Salmon.Model.Monitor.WebEndpoint.From(Uri, Method);
ApplyField(ws);
elements.Add(ws);
return elements;
}
}