impulse_api module

ImpulseApi

class edgeimpulse_api.api.impulse_api.ImpulseApi(
		api_client=None
)

Parameters

  • api_client=None

Methods

clone_impulse_complete

edgeimpulse_api.api.impulse_api.clone_impulse_complete(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Impulse ID', extra={})],
		clone_impulse_request: edgeimpulse_api.models.clone_impulse_request.CloneImpulseRequest,
		**kwargs
)> edgeimpulse_api.models.start_job_response.StartJobResponse

Clone impulse (complete)

Clones the complete impulse (incl. config and data) of an existing impulse.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Impulse ID', extra={})]

  • clone_impulse_request: edgeimpulse_api.models.clone_impulse_request.CloneImpulseRequest

  • **kwargs

Return

edgeimpulse_api.models.start_job_response.StartJobResponse

clone_impulse_structure

edgeimpulse_api.api.impulse_api.clone_impulse_structure(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Impulse ID', extra={})],
		clone_impulse_request: edgeimpulse_api.models.clone_impulse_request.CloneImpulseRequest,
		**kwargs
)> edgeimpulse_api.models.create_impulse_response.CreateImpulseResponse

Clone impulse (structure)

Clones the complete structure (incl. config) of an impulse. Does not copy data.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Impulse ID', extra={})]

  • clone_impulse_request: edgeimpulse_api.models.clone_impulse_request.CloneImpulseRequest

  • **kwargs

Return

edgeimpulse_api.models.create_impulse_response.CreateImpulseResponse

create_impulse

edgeimpulse_api.api.impulse_api.create_impulse(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse: edgeimpulse_api.models.create_impulse_request.CreateImpulseRequest,
		impulse_id: Annotated[pydantic.types.StrictInt | NoneFieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.create_impulse_response.CreateImpulseResponse

Create impulse

Sets the impulse for this project. If you specify impulseId then that impulse is created/updated, otherwise the default impulse is created/updated.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse: edgeimpulse_api.models.create_impulse_request.CreateImpulseRequest

  • impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.create_impulse_response.CreateImpulseResponse

create_new_empty_impulse

edgeimpulse_api.api.impulse_api.create_new_empty_impulse(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.create_new_empty_impulse_response.CreateNewEmptyImpulseResponse

Create new empty impulse

Create a new empty impulse, and return the ID.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.create_new_empty_impulse_response.CreateNewEmptyImpulseResponse

delete_impulse

edgeimpulse_api.api.impulse_api.delete_impulse(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[pydantic.types.StrictInt | NoneFieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Delete impulse

Clears the impulse and all associated blocks for this project. If you specify impulseId then that impulse is cleared, otherwise the default impulse is cleared.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

download_detailed_impulses

edgeimpulse_api.api.impulse_api.download_detailed_impulses(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		format: Annotated[pydantic.types.StrictStr | NoneFieldInfo(default=PydanticUndefined, description="Format of the detailed impulses response, either 'json' or 'csv'. If not set, defaults to 'json'.", extra={})] = None,
		**kwargs
)> str

Download all impulses (incl. metrics), as JSON or CSV.

Download all impulse for a project, including accuracy and performance metrics, as JSON or CSV.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • format: Annotated[pydantic.types.StrictStr | None, FieldInfo(default=PydanticUndefined, description="Format of the detailed impulses response, either 'json' or 'csv'. If not set, defaults to 'json'.", extra={})] = None

  • **kwargs

Return

str

get_all_detailed_impulses

edgeimpulse_api.api.impulse_api.get_all_detailed_impulses(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.get_all_detailed_impulses_response.GetAllDetailedImpulsesResponse

Get all impulses (incl. metrics)

Retrieve all impulse for a project, including accuracy and performance metrics.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.get_all_detailed_impulses_response.GetAllDetailedImpulsesResponse

get_all_impulses

edgeimpulse_api.api.impulse_api.get_all_impulses(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.get_all_impulses_response.GetAllImpulsesResponse

Get all impulses

Retrieve all impulse for a project

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.get_all_impulses_response.GetAllImpulsesResponse

get_impulse

edgeimpulse_api.api.impulse_api.get_impulse(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[pydantic.types.StrictInt | NoneFieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.get_impulse_response.GetImpulseResponse

Get impulse

Retrieve the impulse for this project. If you specify impulseId then that impulse is returned, otherwise the default impulse is returned.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.get_impulse_response.GetImpulseResponse

get_impulse_all

edgeimpulse_api.api.impulse_api.get_impulse_all(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[pydantic.types.StrictInt | NoneFieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.get_impulse_response.GetImpulseResponse

Get impulse including disabled blocks

Retrieve the impulse for this project including disabled blocks. If you specify impulseId then that impulse is returned, otherwise the default impulse is returned.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.get_impulse_response.GetImpulseResponse

get_impulse_blocks

edgeimpulse_api.api.impulse_api.get_impulse_blocks(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.get_impulse_blocks_response.GetImpulseBlocksResponse

Get impulse blocks

Lists all possible blocks that can be used in the impulse

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.get_impulse_blocks_response.GetImpulseBlocksResponse

get_new_block_id

edgeimpulse_api.api.impulse_api.get_new_block_id(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.get_new_block_id_response.GetNewBlockIdResponse

Get new block ID

Returns an unused block ID. Use this function to determine new block IDs when you construct an impulse; so you won't accidentally re-use block IDs.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.get_new_block_id_response.GetNewBlockIdResponse

update_impulse

edgeimpulse_api.api.impulse_api.update_impulse(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		update_impulse_request: edgeimpulse_api.models.update_impulse_request.UpdateImpulseRequest,
		impulse_id: Annotated[pydantic.types.StrictInt | NoneFieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Update impulse

Update the impulse for this project. If you specify impulseId then that impulse is created/updated, otherwise the default impulse is created/updated.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • update_impulse_request: edgeimpulse_api.models.update_impulse_request.UpdateImpulseRequest

  • impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

verify_dsp_block_url

edgeimpulse_api.api.impulse_api.verify_dsp_block_url(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		verify_dsp_block_url_request: edgeimpulse_api.models.verify_dsp_block_url_request.VerifyDspBlockUrlRequest,
		**kwargs
)> edgeimpulse_api.models.verify_dsp_block_url_response.VerifyDspBlockUrlResponse

Verify custom DSP block

Verify the validity of a custom DSP block

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • verify_dsp_block_url_request: edgeimpulse_api.models.verify_dsp_block_url_request.VerifyDspBlockUrlRequest

  • **kwargs

Return

edgeimpulse_api.models.verify_dsp_block_url_response.VerifyDspBlockUrlResponse

Last updated