Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

630 B
Raw Blame
<?php

declare(strict_types=1);

namespace App\Dto\Analytics;

use Carbon\CarbonImmutable;

final readonly class PublicationMetricObservation
{
    /**
     * @param  list<MetricValue>  $metrics
     * @param  array<string, mixed>|null  $providerMetadata  Keys the network reported about the publication itself, merged into its `provider_metadata`
     */
    public function __construct(
        public CarbonImmutable $date,
        public array $metrics,
        public ?CarbonImmutable $providerObservedAt = null,
        public ?CarbonImmutable $collectedAt = null,
        public ?array $providerMetadata = null,
    ) {}
}