def _get_workflow_metrics(
        self,
    ) -> dict[EnvMetricsName, Callable[[], int]]:
        """
        Returns callables that counts the number of open change requests and scheduled changes for the environment.
        """
        return {
            EnvMetricsName.OPEN_CHANGE_REQUESTS: lambda: self.environment.get_change_requests_metrics_queryset().count(),
            EnvMetricsName.TOTAL_SCHEDULED_CHANGES: lambda: self.environment.get_scheduled_metrics_queryset().count(),
        }

        Returns callables that counts the number of open change requests and scheduled changes for the environment.
        
api/metrics/metrics_service.py