The following set of API's provide a mechanism to monitor the various parameters of the engine.
The following API, shows the resource allocation of the containers running on the engine
import razor
razor.api.engines.allocations()
The following API, shows the active containers that are running on the engine
import razor
razor.api.engines(name='Engine-name').containers()
Attributes
Argument | Description |
---|---|
name | Name of the engine that needs to be obtained |
The following API, shows all the pipelines that have run on the engine. The pipeline runs will contain the historical data along with the status
import razor
razor.api.engines(name='Engine-name').runs()
Attributes
Argument | Description |
---|---|
name | Name of the engine that needs to be obtained |
The following API, shows the overall health status of the servers on the engine
import razor
razor.api.engines(name='Engine-name').health()
Attributes
Argument | Description |
---|---|
name | Name of the engine that needs to be obtained |
The following API, shows the status of the queue i.e. the number of blocks queued for execution at the engine level
import razor
razor.api.engines(name='Engine-name').queue()
Attributes
Argument | Description |
---|---|
name | Name of the engine that needs to be obtained |