Files
temporalio-test/app/Temporal/SystemMonitor/SystemMonitorWorkflowInterface.php
2026-05-09 01:18:51 +02:00

22 lines
530 B
PHP

<?php
namespace App\Temporal\SystemMonitor;
use Temporal\Workflow\QueryMethod;
use Temporal\Workflow\SignalMethod;
use Temporal\Workflow\WorkflowInterface;
use Temporal\Workflow\WorkflowMethod;
#[WorkflowInterface]
interface SystemMonitorWorkflowInterface
{
#[WorkflowMethod]
public function monitor(int $intervalSeconds = 60, int $maxIterations = 30, array $state = [], array $simulationConfig = []);
#[SignalMethod]
public function stop(): void;
#[QueryMethod]
public function getStatus(): array;
}