Executions

class ExecutionHistoryMixin

This class defines all functions related to notebook executions.

get_executions(start=0, count=20)

Gets the executions and returns them in a generator with all notebook executions.

Parameters:
  • start (int, optional) – The execution to start from. Defaults to 0.

  • count (int, optional) – The number of executions to retrieve. Defaults to 20.

Returns:

Iterator with Execution

Return type:

Iterator[Execution]

Usage:
>>> import blueconic
>>> bc = blueconic.Client()
>>> bc.get_executions()
<generator object ExecutionHistory.get_executions>
class Execution
get_value(property_id)

Gets the first value of a property.

Parameters:

property_id (str) – The ID of the property to retrieve the value from

Raises:

KeyError – If the ID does not refer to an existing property

Returns:

The first value of the property

Return type:

str

get_values(property_id)

Gets all values of a property.

Parameters:

property_id (str) – The ID of the property to retrieve the values from

Raises:

KeyError – If the ID does not refer to an existing property

Returns:

All the values of the property

Return type:

[str]

property end_date

Returns the end datetime of the execution.

property external_identifier

Returns the external identifier of the execution.

property log_url

Returns the log url of the execution.

property message

Returns the message of the execution.

property properties

Returns the properties of this object.

property property_ids

Returns the property IDs of this object.

property run_count

Returns the run count of the execution.

property run_id

Returns the run identifier of the execution.

property start_date

Returns the start datetime of the execution.

property state

Returns the state of the execution.