/// <summary> /// Search openHistorian for a target. /// </summary> /// <param name="request">Search target.</param> public Task<string[]> Search(Target request) { // TODO: Make openHistorian Grafana data source metric query more interactive, adding drop-downs and/or query builders // For now, just return a truncated list of tag names return Task.Factory.StartNew(() => { return Metadata.Tables["ActiveMeasurements"] .Select($"ID LIKE '{InstanceName}:%'") .Take(MaximumSearchTargetsPerRequest) .Select(row => $"{row["PointTag"]}") .ToArray(); }); }
/// <summary> /// Search openHistorian for a target. /// </summary> /// <param name="request">Search target.</param> public async Task<string[]> Search(Target request) { return await m_dataSource.Search(request); }
/// <summary> /// Search openHistorian for a target. /// </summary> /// <param name="request">Search target.</param> public Task<string[]> Search(Target request) { return Task.Factory.StartNew(() => { return Metadata.Tables["ActiveMeasurements"] .Select($"ID LIKE '{InstanceName}:%'") .Take(MaximumSearchTargetsPerRequest) .Select(row => $"{row["ID"]}") .ToArray(); }); }
/// <summary> /// Search openHistorian for a target. /// </summary> /// <param name="request">Search target.</param> public Task<string[]> Search(Target request) { return m_dataSource.Search(request); }