def _get_metric_definitions(self) -> list[MetricDefinition]:
        """
        Returns the list of metrics that are available for the environment.
        """
        definitions = list(DEFAULT_METRIC_DEFINITIONS)
        if self.environment.is_workflow_enabled:
            definitions.extend(WORKFLOW_METRIC_DEFINITIONS)
        return definitions

        Returns the list of metrics that are available for the environment.
        
api/metrics/metrics_service.py