Historical readings as a table
POST
/GetAllHistoryMeasures
const url = 'https://api.eianalytic.com/ApiWeb.svc/GetAllHistoryMeasures';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"machinecode":1,"pointindex":1,"axis":1,"StartDate":"2019-10-10","EndDate":"2019-10-10","getRMS":true,"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/GetAllHistoryMeasures \ --header 'Content-Type: application/json' \ --data '{ "machinecode": 1, "pointindex": 1, "axis": 1, "StartDate": "2019-10-10", "EndDate": "2019-10-10", "getRMS": true, "Token": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
machinecode
required
integer
pointindex
required
integer
axis
required
integer
StartDate
yyyy-MM-dd for a whole day, or yyyy-MM-dd HH:mm:ss (24-hour clock)
for an instant. A date-only value returns everything in that range.
string
EndDate
yyyy-MM-dd for a whole day, or yyyy-MM-dd HH:mm:ss (24-hour clock)
for an instant. A date-only value returns everything in that range.
string
getRMS
true also returns the internal RMS the sensor calculates, expressed as velocity in mm/s.
boolean
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" ] } ] }]