Files
git.stella-ops.org/src/JobEngine/StellaOps.JobEngine/StellaOps.JobEngine.WebService/Services/IDeploymentCompatibilityStore.cs
master 59eca36429 Add JobEngine deployment compatibility store and scheduler persistence
Introduce PostgresDeploymentCompatibilityStore with migration 011, in-memory
fallback, deployment endpoints, and Postgres fixture for integration tests.
Update Scheduler repository with connection policy adoption.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 08:52:50 +03:00

49 lines
1.5 KiB
C#

namespace StellaOps.JobEngine.WebService.Services;
public interface IDeploymentCompatibilityStore
{
Task<IReadOnlyList<DeploymentDto>> ListAsync(string tenantId, CancellationToken cancellationToken);
Task<DeploymentDto?> GetAsync(string tenantId, string deploymentId, CancellationToken cancellationToken);
Task<IReadOnlyList<DeploymentLogEntryDto>?> GetLogsAsync(
string tenantId,
string deploymentId,
string? targetId,
string? level,
int? limit,
CancellationToken cancellationToken);
Task<IReadOnlyList<DeploymentEventDto>?> GetEventsAsync(
string tenantId,
string deploymentId,
CancellationToken cancellationToken);
Task<DeploymentMetricsDto?> GetMetricsAsync(
string tenantId,
string deploymentId,
CancellationToken cancellationToken);
Task<DeploymentDto> CreateAsync(
string tenantId,
CreateDeploymentRequest request,
string actor,
CancellationToken cancellationToken);
Task<DeploymentMutationResult> TransitionAsync(
string tenantId,
string deploymentId,
IReadOnlyCollection<string> allowedStatuses,
string nextStatus,
string eventType,
string message,
bool complete,
CancellationToken cancellationToken);
Task<DeploymentMutationResult> RetryAsync(
string tenantId,
string deploymentId,
string targetId,
CancellationToken cancellationToken);
}