Statistics
The Statistics endpoint provides aggregated metrics calculated from time series data, over specified time windows. This allows you to query values such as averages, minima, maxima, counts, standard deviation, etc., instead of raw data points. It is useful for downsampling data or getting summary insights over time intervals.
A comma-separated list of one or more GUIDs.
ba529839-8179-40e2-b3fb-5da01a8d76e8,e8317666-77f2-4185-ae48-847af57563db
Desired output format of the data. You can also specify the response format via the HTTP Accept Header instead of the format query parameter.
json
Possible values: Response from the route
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /{ENVIRONMENT}/statistics/id/{ids} HTTP/1.1
Host: prism.raalabs.io/{ENVIRONMENT}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"00000000-0000-4000-8000-000000000000:avg": 1.2499918981481482,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"00000000-0000-4000-8000-000000000000:min": 0.1,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"00000000-0000-4000-8000-000000000000:max": 1.5,
"timestamp": "2025-01-01T00:00:00.000000Z"
}
]
The vessel to retrieve from.
IMO1000002
The short naming rule to retrieve from.
jsmea_mac
The category to retrieve from.
MainEngine
The sub category to retrieve from.
Fuel
The content to retrieve from.
Input
The position to retrieve from.
Inlet
The item to retrieve from.
Energy
The modifier to retrieve from.
From date-time
2025-01-01T00:00:00.000000Z
To date-time
2025-01-01T00:00:10.000000Z
From 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
A comma-separated list of aggregation functions to compute for each time window. You can request multiple metrics at once. Valid values: min, max, mean, count, sum, stddev, var, skewness, kurtosis, avg, first_val, last_val, integral, first_time, last_time
avg
Example: avg,min,max
The duration of each aggregation window. This is given as a time interval literal, e.g., 1m (1 minute), 2h (2 hours), 2d (2 days), etc. All data within each window will be used to calculate the aggregations.
1month
Example: 1month
Desired output format of the data. You can also specify the response format via the HTTP Accept Header instead of the format query parameter.
json
Possible values: Response from the route
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /{ENVIRONMENT}/statistics/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: */*
[
{
"IMO1000017/jsmea_mac/MainEngine/Fuel/Input/Inlet/Energy//Avg": 3042.1666666666665,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"IMO1000017/jsmea_mac/MainEngine/Fuel/Input/Inlet/Energy//Min": 1,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"IMO1000017/jsmea_mac/MainEngine/Fuel/Input/Inlet/Energy//Max": 23467,
"timestamp": "2025-01-01T00:00:00.000000Z"
}
]
Used to retrieve multiple series in one request (you provide a list of domain/expression queries in the JSON body).
From date-time
2025-01-01T00:00:00.000000Z
To date-time
2025-01-01T00:00:10.000000Z
From 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
A comma-separated list of aggregation functions to compute for each time window. You can request multiple metrics at once. Valid values: min, max, mean, count, sum, stddev, var, skewness, kurtosis, avg, first_val, last_val, integral, first_time, last_time
avg
Example: avg,min,max
The duration of each aggregation window. This is given as a time interval literal, e.g., 1m (1 minute), 2h (2 hours), 2d (2 days), etc. All data within each window will be used to calculate the aggregations.
1month
Example: 1month
Desired output format of the data. You can also specify the response format via the HTTP Accept Header instead of the format query parameter.
json
Possible values: ["raalabs/IMO1000001/ME FuelEnergy_1","id/00000000-0000-4000-8000-000000000000"]
Batch statistics data
Bad Request
Unauthorized
Not Found
Internal Server Error
POST /{ENVIRONMENT}/statistics/query HTTP/1.1
Host: prism.raalabs.io/{ENVIRONMENT}
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 80
[
"raalabs/IMO1000001/ME FuelEnergy_1",
"id/00000000-0000-4000-8000-000000000000"
]
[
{
"IMO1000017/ME FuelEnergy_1/Avg": 3042.1666666666665,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"IMO1000017/ME FuelEnergy_1/Min": 1,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"IMO1000017/ME FuelEnergy_1/Max": 23467,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"00000000-0000-4000-8000-000000000000:avg": 1.2499918981481482,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"00000000-0000-4000-8000-000000000000:min": 0.1,
"timestamp": "2025-01-01T00:00:00.000000Z"
},
{
"00000000-0000-4000-8000-000000000000:max": 1.5,
"timestamp": "2025-01-01T00:00:00.000000Z"
}
]
The IMO number of the vessel
IMO1000001
Short descriptive tag. May include wildcard (*
)
ME FuelEnergy*
From date-time
2025-01-01T00:00:00.000000Z
To date-time
2025-01-01T00:00:10.000000Z
From 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
A comma-separated list of aggregation functions to compute for each time window. You can request multiple metrics at once. Valid values: min, max, mean, count, sum, stddev, var, skewness, kurtosis, avg, first_val, last_val, integral, first_time, last_time
avg
Example: avg,min,max
The duration of each aggregation window. This is given as a time interval literal, e.g., 1m (1 minute), 2h (2 hours), 2d (2 days), etc. All data within each window will be used to calculate the aggregations.
1month
Example: 1month
Desired output format of the data. You can also specify the response format via the HTTP Accept Header instead of the format query parameter.
json
Possible values: Response from the route
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /{ENVIRONMENT}/statistics/raalabs/{imo_number}/{tag_name} HTTP/1.1
Host: prism.raalabs.io/{ENVIRONMENT}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"IMO1000001/ME ShaftPower/Avg": 13.12,
"timestamp": "2025-09-10T09:00:00.000000Z"
},
{
"IMO1000001/ME ShaftPower/Max": 15.47,
"timestamp": "2025-09-10T09:00:00.000000Z"
},
{
"IMO1000001/ME ShaftPower/Min": 10.85,
"timestamp": "2025-09-10T09:00:00.000000Z"
},
{
"IMO1000001/ME ShaftPower/Count": 3600,
"timestamp": "2025-09-10T09:00:00.000000Z"
}
]