Constructor.
the stream ID
the time zone ID
the stream type
the node or location ID
the source ID
OptionaliNames: string[]the instantaneous property name array
OptionalaNames: string[]the accumulating property name array
OptionalsNames: string[]the status property name array
The accumulating property names array length.
The accumulating property names array.
The instantaneous property names array length.
The instantaneous property names array.
The stream type.
The stream object ID (if the kind is Location), otherewise undefined.
The stream object ID (if the kind is Node), otherwise undefined.
The stream objece (node or location) ID.
Get all stream property names, in order of instantaneous, accumulating, and status.
The total number of instantaneous, accumulating, and status property names.
The stream source ID.
The status property names array length.
The status property names array.
The stream ID, for example 7714f762-2361-4ec2-98ab-7e96807b32a6.
The stream time zone ID, for example Pacific/Auckland.
Get the property names for a given samples type.
the type of property names to return; Tag is not supported
the property names for the given type, or undefined if none available
Get this object as a standard JSON encoded string value.
An example result looks like this:
{
"streamId": "7714f762-2361-4ec2-98ab-7e96807b32a6",
"zone": "Pacific/Auckland",
"kind": "n",
"objectId": 123,
"sourceId": "/power/1",
"i": ["watts", "current", "voltage", "frequency"],
"a": ["wattHours"]
}
the JSON encoded string
Get this object in standard JSON form.
An example result looks like this:
{
"streamId": "7714f762-2361-4ec2-98ab-7e96807b32a6",
"zone": "Pacific/Auckland",
"kind": "n",
"objectId": 123,
"sourceId": "/power/1",
"i": ["watts", "current", "voltage", "frequency"],
"a": ["wattHours"]
}
an object, ready for JSON encoding
StaticfromParse a JSON string into a Domain.DatumStreamMetadata instance.
The JSON must be encoded the same way Domain.DatumStreamMetadata#toJsonEncoding does.
the JSON to parse
the stream metadata instance
StaticfromCreate a metadata instance from an object parsed from a JSON string.
The object must have been parsed from JSON that was encoded the same way Domain.DatumStreamMetadata#toJsonEncoding does.
the object parsed from JSON
the stream metadata instance
StaticlocationCreate a new location datum stream metadata instance.
the stream ID
the time zone ID
the location ID
the source ID
OptionaliNames: string[]the instantaneous property name array
OptionalaNames: string[]the accumulating property name array
OptionalsNames: string[]the status property name array
the new metadata instance
StaticnodeCreate a new node datum stream metadata instance.
the stream ID
the time zone ID
the node ID
the source ID
OptionaliNames: string[]the instantaneous property name array
OptionalaNames: string[]the accumulating property name array
OptionalsNames: string[]the status property name array
the new metadata instance
Metadata about a datum stream.