I created an uptime check for my website. Then, I found this documentation page that shows how to extract information regarding the uptime check with C#.
After running the code:
public static object GetUptimeCheckConfig(string configName)
{
var client = UptimeCheckServiceClient.Create();
UptimeCheckConfig config = client.GetUptimeCheckConfig(configName);
if (config == null)
{
Console.Error.WriteLine(
"No configuration found with the name {0}", configName);
return -1;
}
Console.WriteLine("Name: {0}", config.Name);
Console.WriteLine("Display Name: {0}", config.DisplayName);
Console.WriteLine("Http Path: {0}", config.HttpCheck.Path);
return 0;
}
I found that this method provides information only about the configuration of the check. I want to get information about its current status (working good \ broken). Seems like this information is missing.
I also tried this REST call helper - the requested information is missing there too.
Is this possible to extract the current health status of the resource? Or I need to choose a more complex way to extract the data (e.g. via Webhooks)?