curl --request GET \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice/run/readonly \
--header 'x-api-key: <api-key>'{
"success": true,
"features": [
123
],
"graphs": [
{
"name": "Frequency domain",
"type": "<string>",
"image": "<string>",
"imageMimeType": "<string>",
"X": {
"accX": [
3,
5,
7
],
"accY": [
2,
1,
5
]
},
"y": [
0,
0.5,
1
],
"suggestedXMin": 123,
"suggestedXMax": 123,
"suggestedYMin": 123,
"suggestedYMax": 123,
"lineWidth": 123,
"smoothing": true,
"axisLabels": {
"X": "<string>",
"y": "<string>"
},
"highlights": {}
}
],
"sample": {
"sample": {
"id": 2,
"filename": "idle01.d8Ae",
"signatureValidate": true,
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"category": "training",
"coldstorageFilename": "<string>",
"label": "healthy-machine",
"intervalMs": 16,
"frequency": 62.5,
"originalIntervalMs": 16,
"originalFrequency": 62.5,
"deviceType": "<string>",
"sensors": [
{
"name": "accX",
"units": "<string>"
}
],
"valuesCount": 123,
"added": "2023-11-07T05:31:56Z",
"boundingBoxes": [
{
"label": "<string>",
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
],
"boundingBoxesType": "object_detection",
"chartType": "chart",
"isDisabled": true,
"isProcessing": true,
"processingError": true,
"isCropped": true,
"projectId": 123,
"sha256Hash": "<string>",
"signatureMethod": "HS256",
"signatureKey": "<string>",
"deviceName": "<string>",
"totalLengthMs": 123,
"thumbnailVideo": "<string>",
"thumbnailVideoFull": "<string>",
"processingJobId": 123,
"processingErrorString": "<string>",
"metadata": {},
"projectOwnerName": "<string>",
"projectName": "<string>",
"projectLabelingMethod": "single_label",
"structuredLabels": [
{
"startIndex": 123,
"endIndex": 123,
"label": "<string>"
}
],
"structuredLabelsList": [
"<string>"
],
"createdBySyntheticDataJobId": 123,
"imageDimensions": {
"width": 123,
"height": 123
},
"videoUrl": "<string>",
"videoUrlFull": "<string>"
},
"payload": {
"device_type": "DISCO-L475VG-IOT01A",
"sensors": [
{
"name": "accX",
"units": "<string>"
}
],
"values": [
[
123
]
],
"device_name": "ac:87:a3:0a:2d:1b",
"cropStart": 0,
"cropEnd": 128
},
"totalPayloadLength": 123
},
"canProfilePerformance": true,
"error": "<string>",
"labels": [
"<string>"
],
"state_string": "<string>",
"labelAtEndOfWindow": "<string>",
"labelForWindow": "<string>",
"performance": {
"latency": 123,
"ram": 123,
"customDspString": "<string>"
}
}Get slice of sample data, and run it through the DSP block. This 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.
curl --request GET \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice/run/readonly \
--header 'x-api-key: <api-key>'{
"success": true,
"features": [
123
],
"graphs": [
{
"name": "Frequency domain",
"type": "<string>",
"image": "<string>",
"imageMimeType": "<string>",
"X": {
"accX": [
3,
5,
7
],
"accY": [
2,
1,
5
]
},
"y": [
0,
0.5,
1
],
"suggestedXMin": 123,
"suggestedXMax": 123,
"suggestedYMin": 123,
"suggestedYMax": 123,
"lineWidth": 123,
"smoothing": true,
"axisLabels": {
"X": "<string>",
"y": "<string>"
},
"highlights": {}
}
],
"sample": {
"sample": {
"id": 2,
"filename": "idle01.d8Ae",
"signatureValidate": true,
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"category": "training",
"coldstorageFilename": "<string>",
"label": "healthy-machine",
"intervalMs": 16,
"frequency": 62.5,
"originalIntervalMs": 16,
"originalFrequency": 62.5,
"deviceType": "<string>",
"sensors": [
{
"name": "accX",
"units": "<string>"
}
],
"valuesCount": 123,
"added": "2023-11-07T05:31:56Z",
"boundingBoxes": [
{
"label": "<string>",
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
],
"boundingBoxesType": "object_detection",
"chartType": "chart",
"isDisabled": true,
"isProcessing": true,
"processingError": true,
"isCropped": true,
"projectId": 123,
"sha256Hash": "<string>",
"signatureMethod": "HS256",
"signatureKey": "<string>",
"deviceName": "<string>",
"totalLengthMs": 123,
"thumbnailVideo": "<string>",
"thumbnailVideoFull": "<string>",
"processingJobId": 123,
"processingErrorString": "<string>",
"metadata": {},
"projectOwnerName": "<string>",
"projectName": "<string>",
"projectLabelingMethod": "single_label",
"structuredLabels": [
{
"startIndex": 123,
"endIndex": 123,
"label": "<string>"
}
],
"structuredLabelsList": [
"<string>"
],
"createdBySyntheticDataJobId": 123,
"imageDimensions": {
"width": 123,
"height": 123
},
"videoUrl": "<string>",
"videoUrlFull": "<string>"
},
"payload": {
"device_type": "DISCO-L475VG-IOT01A",
"sensors": [
{
"name": "accX",
"units": "<string>"
}
],
"values": [
[
123
]
],
"device_name": "ac:87:a3:0a:2d:1b",
"cropStart": 0,
"cropEnd": 128
},
"totalPayloadLength": 123
},
"canProfilePerformance": true,
"error": "<string>",
"labels": [
"<string>"
],
"state_string": "<string>",
"labelAtEndOfWindow": "<string>",
"labelForWindow": "<string>",
"performance": {
"latency": 123,
"ram": 123,
"customDspString": "<string>"
}
}Project ID
DSP Block ID, use the impulse functions to retrieve the ID
Sample ID
Begin index of the slice
End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.
OK
Whether the operation succeeded
Array of processed features. Laid out according to the names in 'labels'
Graphs to plot to give an insight in how the DSP process ran
Show child attributes
Name of the graph
"Frequency domain"
Type of graph (either logarithmic, linear or image)
Base64 encoded image, only present if type is 'image'
Mime type of the Base64 encoded image, only present if type is 'image'
Values of the y-axis. Present if type is 'logarithmic' or 'linear'.
[0, 0.5, 1]Suggested minimum value of x-axis
Suggested maxium value of x-axis
Suggested minimum value of y-axis
Suggested maximum value of y-axis
Width of the graph line (if type is logarithmic or linear). Default 3.
Whether to apply smoothing to the graph.
Show child attributes
Show child attributes
2
"idle01.d8Ae"
Whether signature validation passed
true
Timestamp when the sample was created on device, or if no accurate time was known on device, the time that the file was processed by the ingestion service.
Timestamp when the sample was last modified.
training, testing, post-processing "training"
"healthy-machine"
Interval between two windows (1000 / frequency). If the data was resampled, then this lists the resampled interval.
16
Frequency of the sample. If the data was resampled, then this lists the resampled frequency.
62.5
Interval between two windows (1000 / frequency) in the source data (before resampling).
16
Frequency of the sample in the source data (before resampling).
62.5
Show child attributes
Name of the axis
"accX"
Type of data on this axis. Needs to comply to SenML units (see https://www.iana.org/assignments/senml/senml.xhtml).
Number of readings in this file
Timestamp when the sample was added to the current acquisition bucket.
object_detection, constrained_object_detection chart, image, video, table True if the current sample is excluded from use
True if the current sample is still processing (e.g. for video)
Set when processing this sample failed
Whether the sample is cropped from another sample (and has crop start / end info)
Unique identifier of the project this sample belongs to
Data sample SHA 256 hash (including CBOR envelope if applicable)
"HS256"
Either the shared key or the public key that was used to validate the sample
Total length (in ms.) of this file
Set when sample is processing and a job has picked up the request
Error (only set when processing this sample failed)
Name of the owner of the project this sample belongs to
Name of the project this sample belongs to
What labeling flow the project this sample belongs to uses
single_label, object_detection Show child attributes
Start index of the label (e.g. 0)
End index of the label (e.g. 3). This value is inclusive, so { startIndex: 0, endIndex: 3 } covers 0, 1, 2, 3.
The label for this section.
If this sample was created by a synthetic data job, it's referenced here.
Video link, cropped and in original resolution.
Video link in original resolution.
Sensor readings and metadata
Show child attributes
Device type, for example the exact model of the device. Should be the same for all similar devices.
"DISCO-L475VG-IOT01A"
Array with sensor axes
Show child attributes
Name of the axis
"accX"
Type of data on this axis. Needs to comply to SenML units (see https://www.iana.org/assignments/senml/senml.xhtml).
Array of sensor values. One array item per interval, and as many items in this array as there are sensor axes. This type is returned if there are multiple axes.
Unique identifier for this device. Only set this when the device has a globally unique identifier (e.g. MAC address).
"ac:87:a3:0a:2d:1b"
New start index of the cropped sample
0
New end index of the cropped sample
128
Total number of payload values
Optional error description (set if 'success' was false)
Labels of the feature axes
String representation of the DSP state returned
DEPRECATED. Label at the end of the window (only present for time-series data)
Label for the window. How the label is chosen is dependent on the value of "labelingMethodMultiLabel" in the input block.
Was this page helpful?