// GET api/<controller> public List<Objects.Uptrends.Probe.Probe> Get() { UptrendsApi api = new UptrendsApi(); try { List<Objects.Uptrends.Probe.Probe> response = api.allProbes(); return response; } catch (Exception) { string er = "Error getting probes from Uptrends API"; throw new Exception(er); } }
public List<Objects.Uptrends.StatusProbe.StatusProbe> GetStatus() { UptrendsApi api = new UptrendsApi(); List<Objects.Uptrends.StatusProbe.StatusProbe> response = api.probesStatus("185f66884b2842f8b3b48f3afd6de726"); return response; }