DataSample Parameter

The DataSample Parameter specifies the number of data samples to retrieve from the archive. Samples are evenly spaced within the time range defined by start time and end time for most sampling modes.
Property NameProperty TypeDescription
ValueStringFormat for a multi-field tag like { "field1":"1","field2":"1000.0" } (user-defined type tag).

JavaScript code can parse the value string as a JSON object. All field values are string.

TimeStampDateTimeStart and end times of the query. If no start time is specified, the start time is two hours prior to running the query. If no EndTime is specified, the end time is the time the query runs.
QualityInteger

(Enumerated value of DataQuality.StatusType)

Data type consisting of a set of named values called elements, members or enumerators of the type. Property values reflect quality as "quality is good" or " quality is bad".
Value and Status
  • 0 – Bad
  • 1 – Uncertain
  • 2 – NA
  • 3 – Good