Click or drag to resize

SubscriberHubSetMeasurementFormats Method

Defines string formats to apply for the collection of format records.

Namespace: GSF.Web.Shared
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public void SetMeasurementFormats(
	string subscriberID,
	IEnumerable<Object> formatRecords
)
View Source

Parameters

subscriberID  String
The ID of the subscriber.
formatRecords  IEnumerableObject
Collection of format records.
Remarks
This is simply a bulk operation for SetMeasurementFormat(String, Guid, String, String). Each format record should be a Json object similar to the following:
C#
{
    "signalID":"4B1DEE7C-72EC-41EA-AAF3-7E8094355740",
    "format":"{0:N3} seconds",
    "dataType":"System.Double"
}
Where - "signalID" is the measurement signal ID to which to apply the format - "format" is the string format to apply, and - "dataType" is the fully qualified data type for measurement
See Also