Measurements
The Measurements endpoints provide access to raw sensor data (time series measurements) without any aggregation. Each measurement is an instantaneous reading from a sensor at a given timestamp. This is typically the most commonly used endpoint for retrieving time-series data.
A comma-separated list of one or more GUIDs.
ba529839-8179-40e2-b3fb-5da01a8d76e8,e8317666-77f2-4185-ae48-847af57563dbFrom date-time
2025-01-01T00:00:00.000000ZTo date-time
2025-01-01T00:00:10.000000ZFrom epoch. ex: 0
To epoch. ex: 100000
Since returns data going back. ex: '1day' from now
Last returns data going back. ex: '1day' from the last full day
Sets the year for which data should be retrieved. ex: 2025
Sets the month for which data should be retrieved. ex: 8
Sets the day for which data should be retrieved. ex: 1
Desired output format of the data. You can also specify the response format via the HTTP Accept Header instead of the format query parameter.
jsonPossible values: All data points for the times series within the requested time range.
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /{ENVIRONMENT}/measurements/id/{ids} HTTP/1.1
Host: prism.raalabs.io/{ENVIRONMENT}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "ba529839-8179-40e2-b3fb-5da01a8d76e8",
"timestamp": "2025-01-01T00:00:00.000000Z",
"value": 0.5
},
{
"id": "e8317666-77f2-4185-ae48-847af57563db",
"timestamp": "2025-01-01T00:00:10.000000Z",
"value": 1.5
}
]Get measurement data from the JSMEA domain
The vessel to retrieve from.
IMO1000002The short naming rule to retrieve from.
jsmea_macThe category to retrieve from.
MainEngineThe sub category to retrieve from.
FuelThe content to retrieve from.
InputThe position to retrieve from.
InletThe item to retrieve from.
EnergyThe modifier to retrieve from.
From date-time
2025-01-01T00:00:00.000000ZTo date-time
2025-01-01T00:00:10.000000ZFrom epoch. ex: 0
To epoch. ex: 100000
Since returns data going back. ex: '1day' from now
Last returns data going back. ex: '1day' from the last full day
Sets the year for which data should be retrieved. ex: 2025
Sets the month for which data should be retrieved. ex: 8
Sets the day for which data should be retrieved. ex: 1
Desired output format of the data. You can also specify the response format via the HTTP Accept Header instead of the format query parameter.
jsonPossible values: Response from the route
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /{ENVIRONMENT}/measurements/jsmea/{vessel}/{short_naming_rule}/{category}/{sub_category}/{content}/{position}/{item}/{modifier} HTTP/1.1
Host: prism.raalabs.io/{ENVIRONMENT}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "IMO1000002/jsmea_mac/MainEngine/Fuel/Input/Inlet/Energy/",
"timestamp": "2025-01-01T12:00:31.000000Z",
"value": 0.031
},
{
"id": "IMO1000002/jsmea_mac/MainEngine/Fuel/Input/Inlet/Energy/",
"timestamp": "2025-01-01T12:00:32.000000Z",
"value": {
"lat": 2,
"lon": 32
}
}
]Used to retrieve data for multiple queries in one request (you provide a list of domain/expression queries in the JSON body).
From date-time
2025-01-01T00:00:00.000000ZTo date-time
2025-01-01T00:00:10.000000ZFrom epoch. ex: 0
To epoch. ex: 100000
Since returns data going back. ex: '1day' from now
Last returns data going back. ex: '1day' from the last full day
Sets the year for which data should be retrieved. ex: 2025
Sets the month for which data should be retrieved. ex: 8
Sets the day for which data should be retrieved. ex: 1
Desired output format of the data. You can also specify the response format via the HTTP Accept Header instead of the format query parameter.
jsonPossible values: Array of domain/expression query strings
["raalabs/IMO1000001/ME*","id/00000000-0000-4000-8000-000000000000"]Batch measurement data
Bad Request
Unauthorized
Not Found
Internal Server Error
POST /{ENVIRONMENT}/measurements/query HTTP/1.1
Host: prism.raalabs.io/{ENVIRONMENT}
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 68
[
"raalabs/IMO1000001/ME*",
"id/00000000-0000-4000-8000-000000000000"
][
{
"id": "00000000-0000-4000-8000-000000000000",
"timestamp": "2025-01-01T00:00:03.000000Z",
"value": 1.5
},
{
"id": "IMO1000001/ME FuelEnergy_0",
"timestamp": "2025-01-01T12:00:01.000000Z",
"value": 0.001
}
]The IMO number of the vessel
IMO1000001Short descriptive tag. May include wildcard (*)
ME FuelEnergy*From date-time
2025-01-01T00:00:00.000000ZTo date-time
2025-01-01T00:00:10.000000ZFrom epoch. ex: 0
To epoch. ex: 100000
Since returns data going back. ex: '1day' from now
Last returns data going back. ex: '1day' from the last full day
Sets the year for which data should be retrieved. ex: 2025
Sets the month for which data should be retrieved. ex: 8
Sets the day for which data should be retrieved. ex: 1
Desired output format of the data. You can also specify the response format via the HTTP Accept Header instead of the format query parameter.
jsonPossible values: Response from the route
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /{ENVIRONMENT}/measurements/raalabs/{imo_number}/{tag_name} HTTP/1.1
Host: prism.raalabs.io/{ENVIRONMENT}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "IMO1000001/ME FuelEnergy_0",
"timestamp": "2025-01-01T00:00:01.000000Z",
"value": 0.001
},
{
"id": "IMO1000001/ME FuelEnergy_1",
"timestamp": "2025-01-01T00:00:02.000000Z",
"value": {
"lat": 2,
"lon": 2
}
}
]Last updated