deployment_api module
DeploymentApi
Parameters
api_client=None
Methods
download_build
Download
Download the build artefacts for a project
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
type: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='The name of the built target. You can find this by listing all deployment targets through
listDeploymentTargetsForProject
(viaGET /v1/api/{projectId}/deployment/targets
) and see theformat
type.', extra={})]model_type: Annotated[Optional[edgeimpulse_api.models.keras_model_type_enum.KerasModelTypeEnum], FieldInfo(default=PydanticUndefined, description='Optional model type of the build (if not, it uses the settings in the Keras block)', extra={})] = None
engine: Annotated[Optional[edgeimpulse_api.models.deployment_target_engine.DeploymentTargetEngine], FieldInfo(default=PydanticUndefined, description='Optional engine for the build (if not, it uses the default engine for the deployment target)', extra={})] = None
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
**kwargs
Return
str
find_syntiant_posterior
Find Syntiant posterior parameters
Automatically find the current posterior parameters for the Syntiant deployment target
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
target_words: List[pydantic.types.StrictStr]
reference_set: pydantic.types.StrictStr
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
wav_file: Optional[pydantic.types.StrictStr] = None
meta_csv_file: Optional[pydantic.types.StrictStr] = None
deployment_target: Optional[pydantic.types.StrictStr] = None
**kwargs
Return
edgeimpulse_api.models.start_job_response.StartJobResponse
get_deployment
Get deployment info
Gives information on whether a deployment was already built for a type
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
type: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='The name of the built target. You can find this by listing all deployment targets through
listDeploymentTargetsForProject
(viaGET /v1/api/{projectId}/deployment/targets
) and see theformat
type.', extra={})]model_type: Annotated[Optional[edgeimpulse_api.models.keras_model_type_enum.KerasModelTypeEnum], FieldInfo(default=PydanticUndefined, description='Optional model type of the build (if not, it uses the settings in the Keras block)', extra={})] = None
engine: Annotated[Optional[edgeimpulse_api.models.deployment_target_engine.DeploymentTargetEngine], FieldInfo(default=PydanticUndefined, description='Optional engine for the build (if not, it uses the default engine for the deployment target)', extra={})] = None
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
**kwargs
Return
edgeimpulse_api.models.get_deployment_response.GetDeploymentResponse
get_evaluate_job_result
Evaluate job result
Get evaluate job result, containing detailed performance statistics for every possible variant of the impulse.
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
**kwargs
Return
edgeimpulse_api.models.evaluate_job_response.EvaluateJobResponse
get_evaluate_job_result_cache
Check evaluate job result (cache)
Get evaluate job result, containing detailed performance statistics for every possible variant of the impulse. This only checks cache, and throws an error if there is no data in cache.
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
**kwargs
Return
edgeimpulse_api.models.evaluate_job_response.EvaluateJobResponse
get_last_deployment_build
Get information on the last deployment build
Get information on the result of the last successful deployment job, including info on the build e.g. whether it is still valid.
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
**kwargs
Return
edgeimpulse_api.models.get_last_deployment_build_response.GetLastDeploymentBuildResponse
get_syntiant_posterior
Get Syntiant posterior parameters
Get the current posterior parameters for the Syntiant deployment target
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
**kwargs
Return
edgeimpulse_api.models.get_syntiant_posterior_response.GetSyntiantPosteriorResponse
list_all_deployment_targets
Deployment targets
List all deployment targets
Parameters
self
**kwargs
Return
edgeimpulse_api.models.deployment_targets_response.DeploymentTargetsResponse
list_deployment_targets_for_project
Deployment targets
List deployment targets for a project
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
**kwargs
Return
edgeimpulse_api.models.project_deployment_targets_response.ProjectDeploymentTargetsResponse
list_deployment_targets_for_project_data_sources
Deployment targets (data sources)
List deployment targets for a project from data sources page (it shows some things like all Linux deploys, and hides 'fake' deploy targets like mobile phone / computer)
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None
**kwargs
Return
edgeimpulse_api.models.deployment_targets_response.DeploymentTargetsResponse
set_syntiant_posterior
Set Syntiant posterior parameters
Set the current posterior parameters for the Syntiant deployment target
Parameters
self
project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]
set_syntiant_posterior_request: edgeimpulse_api.models.set_syntiant_posterior_request.SetSyntiantPosteriorRequest
impulse_id: Annotated[Optional[pydantic.types.StrictInt], 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
Last updated