curl --request GET \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/impulse/all \
--header 'x-api-key: <api-key>'{
"success": true,
"error": "<string>",
"impulse": {
"id": 123,
"name": "<string>",
"inputBlocks": [
{
"id": 2,
"type": "time-series",
"name": "Time series",
"title": "Time series",
"windowSizeMs": 2004,
"windowIncreaseMs": 123,
"frequencyHz": 60,
"classificationWindowIncreaseMs": 123,
"padZeros": true,
"labelingMethodMultiLabel": {
"type": "end-of-window",
"labels": [
"<string>"
]
},
"imageWidth": 28,
"imageHeight": 28,
"resizeMode": "squash",
"resizeMethod": "squash",
"cropAnchor": "middle-center",
"createdBy": "createImpulse",
"createdAt": "2023-11-07T05:31:56Z",
"datasetSubset": {
"includePercentage": 123,
"seed": 123
}
}
],
"dspBlocks": [
{
"id": 2,
"type": "spectral-analysis",
"name": "Spectral features",
"axes": [
"accX"
],
"title": "Spectral Analysis",
"implementationVersion": 123,
"valuesPerAxis": 11,
"input": 1,
"createdBy": "createImpulse",
"createdAt": "2023-11-07T05:31:56Z",
"organization": {
"id": 123,
"dspId": 123
},
"customUrl": "<string>",
"namedAxes": [
{
"name": "<string>",
"description": "<string>",
"required": true,
"selectedAxis": "<string>"
}
]
}
],
"learnBlocks": [
{
"id": 2,
"type": "anomaly",
"name": "NN Classifier",
"dsp": [
27
],
"title": "Classification (Keras)",
"createdBy": "createImpulse",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"postProcessingBlocks": [
{
"id": 2,
"type": "object-tracking",
"name": "Object tracking",
"title": "Object tracking",
"implementationVersion": 123,
"createdBy": "createImpulse",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}Retrieve the impulse for this project including disabled blocks. If you specify impulseId then that impulse is returned, otherwise the default impulse is returned.
curl --request GET \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/impulse/all \
--header 'x-api-key: <api-key>'{
"success": true,
"error": "<string>",
"impulse": {
"id": 123,
"name": "<string>",
"inputBlocks": [
{
"id": 2,
"type": "time-series",
"name": "Time series",
"title": "Time series",
"windowSizeMs": 2004,
"windowIncreaseMs": 123,
"frequencyHz": 60,
"classificationWindowIncreaseMs": 123,
"padZeros": true,
"labelingMethodMultiLabel": {
"type": "end-of-window",
"labels": [
"<string>"
]
},
"imageWidth": 28,
"imageHeight": 28,
"resizeMode": "squash",
"resizeMethod": "squash",
"cropAnchor": "middle-center",
"createdBy": "createImpulse",
"createdAt": "2023-11-07T05:31:56Z",
"datasetSubset": {
"includePercentage": 123,
"seed": 123
}
}
],
"dspBlocks": [
{
"id": 2,
"type": "spectral-analysis",
"name": "Spectral features",
"axes": [
"accX"
],
"title": "Spectral Analysis",
"implementationVersion": 123,
"valuesPerAxis": 11,
"input": 1,
"createdBy": "createImpulse",
"createdAt": "2023-11-07T05:31:56Z",
"organization": {
"id": 123,
"dspId": 123
},
"customUrl": "<string>",
"namedAxes": [
{
"name": "<string>",
"description": "<string>",
"required": true,
"selectedAxis": "<string>"
}
]
}
],
"learnBlocks": [
{
"id": 2,
"type": "anomaly",
"name": "NN Classifier",
"dsp": [
27
],
"title": "Classification (Keras)",
"createdBy": "createImpulse",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"postProcessingBlocks": [
{
"id": 2,
"type": "object-tracking",
"name": "Object tracking",
"title": "Object tracking",
"implementationVersion": 123,
"createdBy": "createImpulse",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}Project ID
Impulse ID. If this is unset then the default impulse is used.
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
Show child attributes
ID for this impulse.
Name for this impulse.
Input Blocks that are part of this impulse
Show child attributes
Identifier for this block. Make sure to up this number when creating a new block via getNewBlockId, and don't re-use identifiers. If the block hasn't changed, keep the ID as-is. ID must be unique across the project and greather than zero (>0).
x >= 1Block type (either time-series, image or features)
time-series, image, features "time-series"
Block name, will be used in menus
"Time series"
Block title, used in the impulse UI
"Time series"
Size of the sliding window in milliseconds
2004
We use a sliding window to go over the raw data. How many milliseconds to increase the sliding window with for each step.
(Input only) Frequency of the input data in Hz
60
We use a sliding window to go over the raw data. How many milliseconds to increase the sliding window with for each step in classification mode.
Whether to zero pad data when a data item is too short
How to pick the label for multi-label samples
Show child attributes
end-of-window, anywhere-in-window Required when choosing "anywhere-in-window". The list of classes that should trigger detection (e.g. "interference").
Width all images are resized to before training
28
Width all images are resized to before training
28
Input images are resized automatically before training and testing, to match the impulse input shape. This determines the resize mode used when the aspect ratio of the input data is different to the aspect ratio of the impulse.
squash, fit-short, fit-long, crop "squash"
Resize method to use when resizing images
lanczos3, nearest "squash"
If images are resized using a crop, choose where to anchor the crop
top-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center, bottom-right "middle-center"
The system component that created the block version (createImpulse | clone | tuner). Cannot be set via API.
"createImpulse"
The datetime that the block version was created. Cannot be set via API.
Only generate features for samples where (sample_id + datasetSubsetSeed) % datasetSubset) == 0
DSP Blocks that are part of this impulse
Show child attributes
Identifier for this block. Make sure to up this number when creating a new block via getNewBlockId, and don't re-use identifiers. If the block hasn't changed, keep the ID as-is. ID must be unique across the project and greather than zero (>0).
x >= 1Block type
"spectral-analysis"
Block name, will be used in menus
"Spectral features"
Input axes, identified by the name in the name of the axis
Block title, used in the impulse UI
"Spectral Analysis"
Implementation version of the block
Number of features this DSP block outputs per axis. This is only set when the DSP block is configured.
11
The ID of the Input block a DSP block is connected to
1
The system component that created the block version (createImpulse | clone | tuner). Cannot be set via API.
"createImpulse"
The datetime that the block version was created. Cannot be set via API.
Required for type 'custom'
Named axes for the block
Show child attributes
Learning Blocks that are part of this impulse
Show child attributes
Identifier for this block. Make sure to up this number when creating a new block via getNewBlockId, and don't re-use identifiers. If the block hasn't changed, keep the ID as-is. ID must be unique across the project and greather than zero (>0).
x >= 1The type of learning block (anomaly, keras, keras-transfer-image, keras-transfer-kws, keras-object-detection, keras-regression). Each behaves differently.
anomaly, anomaly-gmm, keras, keras-transfer-image, keras-transfer-kws, keras-object-detection, keras-regression, keras-akida, keras-akida-transfer-image, keras-akida-object-detection, keras-visual-anomaly Block name, will be used in menus. If a block has a baseBlockId, this field is ignored and the base block's name is used instead.
"NN Classifier"
DSP dependencies, identified by DSP block ID
Block title, used in the impulse UI
"Classification (Keras)"
The system component that created the block version (createImpulse | clone | tuner). Cannot be set via API.
"createImpulse"
The datetime that the block version was created. Cannot be set via API.
Post-processing blocks that are part of this impulse
Show child attributes
Identifier for this block. Make sure to up this number when creating a new block via getNewBlockId, and don't re-use identifiers. If the block hasn't changed, keep the ID as-is. ID must be unique across the project and greather than zero (>0).
x >= 1Block type
"object-tracking"
Block name, will be used in menus
"Object tracking"
Block title, used in the impulse UI
"Object tracking"
Implementation version of the block
The system component that created the block version (createImpulse | clone | tuner). Cannot be set via API.
"createImpulse"
The datetime that the block version was created. Cannot be set via API.
Was this page helpful?