SELECT TOP(1)[Id], [WorkspaceId], [CapturedAtUtc], [TotalTaskCount], [SuccessfulTaskCount], [FailedTaskCount], [AverageQueueLatencySeconds], [AverageExecutionSeconds], [TotalRuntimeSeconds], [EstimatedCostUsd], [ForecastedTaskCount], [MeanAbsolutePercentageError], [CreatedAtUtc]
FROM [dbo].[AutonomousScalingSnapshots]
WHERE [WorkspaceId] = @WorkspaceId
ORDER BY [CapturedAtUtc] DESC;
