MeasurementKeyLookUpOrCreate(String, UInt64) Method

Performs a lookup by source and, failing that, attempts to create the key using a newly generated signal ID and the given source and ID.

Definition

Namespace: Gemstone.Timeseries
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.171 -- Release Build+3ecaf8b66f8331a5e50f9e43ac234abd50096934
public static MeasurementKey LookUpOrCreate(
	string source,
	ulong id
)

Parameters

source  String
The source to use for the key if the lookup fails.
id  UInt64
The ID to use for the key if the lookup fails.

Return Value

MeasurementKey
If the lookup succeeds, an existing measurement key with a matching signalID. If creation succeeds, a new measurement key with matching signal ID, source, and ID. Otherwise, Undefined.

See Also