DataStreamReference
A reference to the data streams of one study deployment in CAWS.
Obtained from CarpDataStreamService.dataStream. append uses this reference's study deployment ID. The read methods use the deployment ID in the DataStreamId you pass in, without checking that it matches.
- Inheritance
-
- Object
- CarpReference
- RPCCarpReference
- DataStreamReference
Properties
rpcEndpointUri
The URL for the data stream service endpoint.
{{PROTOCOL}}://{{SERVER_HOST}}:{{SERVER_PORT}}/api/data-stream-service
service
The service this reference sends its requests through.
studyDeploymentId
The CARP study deployment ID.
Methods
append
- List<
DataStreamBatch> batch, { - bool compress = true,
Appends a batch of measurements to the data streams of this deployment. If compress is true, the data is compressed before upload.
get
- DataStreamId dataStream,
- int fromSequenceId, [
- int? toSequenceIdInclusive
Gets all data in dataStream with sequence numbers between fromSequenceId and toSequenceIdInclusive. If toSequenceIdInclusive is null, all data from fromSequenceId is returned.
getDataStreamBatchesByTime
- DataStreamId dataStream,
- DateTime from,
- DateTime to
Gets all data in dataStream whose local update time falls within the inclusive from-to window, as one DataStreamBatch per contiguous run of measurements.