C# Class GrafanaAdapters.GrafanaDataSourceBase

Represents a base implementation for Grafana data sources.
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode Description
Annotations ( GrafanaAdapters.AnnotationRequest request, CancellationToken cancellationToken ) : Task>

Queries openHistorian for annotations in a time-range (e.g., Alarms).

Query ( GrafanaAdapters.QueryRequest request, CancellationToken cancellationToken ) : Task>

Queries openHistorian as a Grafana data source.

Search ( GrafanaAdapters.Target request ) : Task

Search openHistorian for a target.

Méthodes protégées

Méthode Description
QueryTimeSeriesValues ( System.DateTime startTime, System.DateTime stopTime, int maxDataPoints, string>.Dictionary targetMap, CancellationToken cancellationToken ) : List

Queries data source for time-series values given a target map.

Method Details

Annotations() public méthode

Queries openHistorian for annotations in a time-range (e.g., Alarms).
public Annotations ( GrafanaAdapters.AnnotationRequest request, CancellationToken cancellationToken ) : Task>
request GrafanaAdapters.AnnotationRequest Annotation request.
cancellationToken System.Threading.CancellationToken Cancellation token.
Résultat Task>

Query() public méthode

Queries openHistorian as a Grafana data source.
public Query ( GrafanaAdapters.QueryRequest request, CancellationToken cancellationToken ) : Task>
request GrafanaAdapters.QueryRequest Query request.
cancellationToken System.Threading.CancellationToken Cancellation token.
Résultat Task>

QueryTimeSeriesValues() protected abstract méthode

Queries data source for time-series values given a target map.
protected abstract QueryTimeSeriesValues ( System.DateTime startTime, System.DateTime stopTime, int maxDataPoints, string>.Dictionary targetMap, CancellationToken cancellationToken ) : List
startTime System.DateTime Start-time for query.
stopTime System.DateTime Stop-time for query.
maxDataPoints int Maximum data points to return.
targetMap string>.Dictionary Point ID's
cancellationToken System.Threading.CancellationToken Cancellation token.
Résultat List

Search() public méthode

Search openHistorian for a target.
public Search ( GrafanaAdapters.Target request ) : Task
request GrafanaAdapters.Target Search target.
Résultat Task