Latest reading for every unit in the database
POST
/GetAllCurrentMeasures
const url = 'https://api.eianalytic.com/ApiWeb.svc/GetAllCurrentMeasures';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"dateTime":"2022-11-02 10:00:00","Token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.eianalytic.com/ApiWeb.svc/GetAllCurrentMeasures \ --header 'Content-Type: application/json' \ --data '{ "dateTime": "2022-11-02 10:00:00", "Token": "example" }'Returns every recent reading across all machines, points and axes as a column/row table. Your application is expected to pick out the rows it needs.
All real values are expressed in the metric system. Omitting
dateTime returns everything.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
dateTime
Return only data at or after this instant, as yyyy-MM-dd HH:mm:ss (24-hour clock).
string
Token
required
The database token returned by Login. Sent in the request body, not
in a header.
string
Responses
Section titled “Responses”A column/row table.
Media typeapplication/json
Array<object>
object
Key
The Key half of every response envelope.
object
StatusNumber
required
0 means OK. See the Conventions page for the full table.
integer
Description
required
string
Configs
Present on some responses; empty in the documented examples.
Array<object>
object
Value
Array<object>
A generic table. columns names the fields and each entry of data is
one row, positionally aligned with columns.
object
columns
Array<string>
data
Array<Array>
Example
[ { "Key": { "StatusNumber": 0, "Description": "OK" }, "Value": [ { "columns": [ "MachineCode", "PointIndex", "Axis", "Date_Time", "Units", "Severity", "RealValue", "Reason" ] } ] }]