<?php

declare(strict_types=1);

namespace Drupal\flowdrop_runtime\Event;

use Symfony\Contracts\EventDispatcher\Event;

/**
 * Event dispatched when execution monitoring stops.
 *
 * @internal
 */
class MonitoringStoppedEvent extends Event {

  /**
   * The event name.
   */
  const NAME = 'flowdrop_runtime.monitoring.stopped';

  /**
   * Constructs a new MonitoringStoppedEvent.
   *
   * @param string $executionId
   *   The execution ID.
   * @param array $finalReport
   *   The final monitoring report.
   * @param int $timestamp
   *   The event timestamp.
   */
  public function __construct(
    public readonly string $executionId,
    public readonly array $finalReport,
    public readonly int $timestamp,
  ) {}

}
