fetchDeployAttemptStatus static method
Future<({List<DeployAttemptStage> stages, DateTime? startedAt})>
fetchDeployAttemptStatus(
- Client cloudApiClient, {
- required String cloudCapsuleId,
- required UuidValue attemptId,
Implementation
static Future<({DateTime? startedAt, List<DeployAttemptStage> stages})>
fetchDeployAttemptStatus(
final Client cloudApiClient, {
required final String cloudCapsuleId,
required final UuidValue attemptId,
}) async {
final stages = await cloudApiClient.status.getDeployAttemptStatus(
cloudCapsuleId: cloudCapsuleId,
attemptId: attemptId,
);
return (
startedAt: stages.firstOrNull?.startedAt,
stages: _combineRolloutStages(stages),
);
}