DSP
Get raw sample
Get raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out. If you pass dspId = 0 this will return a raw graph without any processing.
get/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}
Request
- Base URLhttps://studio.edgeimpulse.com/v1
- Auth
- API key in header x-api-key
- or API key in cookie jwt
- or API key in header x-jwt-token
- or OAuth 2Authorization code/v1/oauth/authorizeClient credentialsImplicit/v1/oauth/authorizePasswordToken URL/v1/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
Project ID
dspIdinteger required
DSP Block ID, use the impulse functions to retrieve the ID
sampleIdinteger required
Sample ID
Query parameters
limitPayloadValuesinteger
Limit the number of payload values in the response
truncateStructuredLabelsboolean
If true, only a slice of labels will be returned for samples with multiple labels.
useCachedUpsampledDataboolean
If true, upsampled data will be fetched from cache, returning the original sample data when limitPayloadValues > sample length.
Response
OK
Example response
{
"sample": {
"id": 2,
"filename": "idle01.d8Ae",
"signatureValidate": true,
"signatureMethod": "HS256",
"label": "healthy-machine",
"intervalMs": 16,
"frequency": 62.5,
"originalIntervalMs": 16,
"originalFrequency": 62.5,
"sensors": [
{
"name": "accX"
}
],
"datastreams": [
{
"sensors": [
{
"name": "accX"
}
]
}
]
},
"payload": {
"device_name": "ac:87:a3:0a:2d:1b",
"device_type": "DISCO-L475VG-IOT01A",
"sensors": [
{
"name": "accX"
}
],
"cropEnd": 128,
"intervalMs": 16,
"frequencyHz": 62.5
}
}Changes
No recorded changes to this operation across all 1 revision of this API.