hisWrite method

Future<HGrid> hisWrite(
  1. HRef id,
  2. List<HHisItem> items
)

Write a set of history time-series data to the given point record.

The record must already be defined and must be properly tagged as a historized point. The timestamp timezone must exactly match the point's configured "tz" tag. If duplicate or out-of-order items are inserted then they must be gracefully merged.

Implementation

Future<HGrid> hisWrite(HRef id, List<HHisItem> items) {
  HDict meta = HDictBuilder().add("id", id).toDict();
  HGrid req = HGridBuilder.hisItemsToGrid(meta, items);

  return call("hisWrite", req);
}