Writing Timeseries Data
This overview covers shared details for write methods in Historian Multi.
Timestamp Formats Accepted
Section titled “Timestamp Formats Accepted”Write methods accept timestamps as:
- Python
datetimeobjects - Epoch seconds (
intorfloat) or epoch milliseconds (int) - Strings parsed by dateparser (e.g.
"2024-01-01 00:00:00") - Relative strings like
"now"or"1 hour ago"
The library converts timestamps to epoch milliseconds before sending requests.
Methods
Section titled “Methods”Response Structure Notes
Section titled “Response Structure Notes”- Success responses return
{"success": true, "message": "All points written!"}. - If the server rejects points,
successwill be false andmessagecontains the server response.