Start Simulation
If the user prefers to manually stream data to PrCore or utilize a program to do so, they may consult the Stream Data section. Alternatively, if the user wishes to test the streaming feature prior to conducting any manual streaming, they may utilize the following endpoint to simulate streaming data.
You should only call this endpoint when the project’s status is TRAINED
.
Method | Endpoint | Request body type | Description |
---|---|---|---|
PUT | /project/{project_id}/stream/start/simulating |
none |
Start the simulation of the project |
{
"message": "Project simulation started successfully",
"project_id": 123
}
To retrieve the results of the simulation, users can subscribe to the prescription results by calling the endpoint introduced in the Get Streaming Result section.
It should be noted that the simulation will come to a stop under the following conditions:
- All simulation data has been consumed.
- Results have not been consumed within a 5-minute window.
- If the reading result connection is closed, the simulation will be stopped in 1 minute. However, if the connection is re-established within this timeframe, the simulation will continue uninterrupted.
- The simulator has sent 1800 events, which is equivalent to 30 minutes of simulation if the event rate is 1 event per second.
- The simulation is stopped by calling the Stop Streaming endpoint.