public async Task <IEnumerable <IEnumerable <string> > > GetMeasurementsTable() { // https://localhost:44390/api/pingStatus/GetMeasurementsTable List <List <string> > nodeNamesTable = _pingStatusService.FetchNodesPingLiveStatus().Select(s => new List <string>() { s.NodeName }).ToList(); nodeNamesTable.Insert(0, new List <string>() { "id" }); return(await Task.FromResult(nodeNamesTable)); }
public void OnGet() { // get the live nodes ping status LiveNodesStatus_ = _scadaNodesService.FetchNodesPingLiveStatus(); }