Click or drag to resize
Grid Solutions Framework

GrafanaFunctionBaseTComputeSliceAsync Method

Executes a custom slice computation for the Grafana function.

Namespace: GrafanaAdapters.Functions
Assembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.182-beta
Syntax
public virtual IAsyncEnumerable<T> ComputeSliceAsync(
	Parameters parameters,
	CancellationToken cancellationToken
)
View Source

Parameters

parameters  Parameters
Input parameters for the computation.
cancellationToken  CancellationToken
Cancellation token.

Return Value

IAsyncEnumerableT
A sequence of computed data source parameters.

Implements

IGrafanaFunctionTComputeSliceAsync(Parameters, CancellationToken)
Remarks
This method is used to support custom slice computations for functions that need special handling for slice operations. By default, this method will call ComputeAsync(Parameters, CancellationToken) to perform the computation.
See Also