Lines
0.00%
0 / 1
Functions and Methods
0.00%
0 / 1
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| AppActivityReport | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Runtime\Ipc\Message; | |
| 6 | ||
| 7 | use Stewart\Contracts\Time\Instant; | |
| 8 | use Stewart\Contracts\Wire\ListOf; | |
| 9 | use Stewart\Runtime\Lifecycle\AppState; | |
| 10 | use Stewart\Runtime\Model\ResourceScope; | |
| 11 | ||
| 12 | final readonly class AppActivityReport | |
| 13 | { | |
| 14 | /** | |
| 15 | * @param list<SubscriptionActivityReport> $subscriptionReports | |
| 16 | * @param list<ScheduleActivityReport> $scheduleReports | |
| 17 | */ | |
| 18 | public function __construct( | |
| 19 | public ResourceScope $scope, | |
| 20 | public AppState $state, | |
| 21 | public int $subscriptions, | |
| 22 | public int $schedules, | |
| 23 | public int $delivered, | |
| 24 | public int $subscriptionDropped, | |
| 25 | public int $scheduleRuns, | |
| 26 | public int $publishes, | |
| 27 | public int $failures, | |
| 28 | public int $suppressed, | |
| 29 | public int $handled = 0, | |
| 30 | public ?Instant $lastHandledAt = null, | |
| 31 | public ?Instant $nextRunAt = null, | |
| 32 | #[ListOf(SubscriptionActivityReport::class)] | |
| 33 | public array $subscriptionReports = [], | |
| 34 | #[ListOf(ScheduleActivityReport::class)] | |
| 35 | public array $scheduleReports = [], | |
| 36 | ) {} | |
| 37 | } |