Skip to content

Commit

Permalink
added config.meta to metric
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDee committed Jul 15, 2024
1 parent 83bae77 commit ff7c4ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metricflow/engine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from dbt_semantic_interfaces.protocols.measure import MeasureAggregationParameters
from dbt_semantic_interfaces.protocols.metadata import Metadata
from dbt_semantic_interfaces.protocols.metric import Metric as SemanticManifestMetric
from dbt_semantic_interfaces.protocols.metric import MetricInputMeasure, MetricType, MetricTypeParams
from dbt_semantic_interfaces.protocols.metric import MetricConfig, MetricInputMeasure, MetricType, MetricTypeParams
from dbt_semantic_interfaces.protocols.saved_query import (
SavedQuery as SemanticManifestSavedQuery,
)
Expand Down Expand Up @@ -44,6 +44,7 @@ class Metric:
metadata: Optional[Metadata]
dimensions: List[Dimension]
label: Optional[str]
config: Optional[MetricConfig]

@classmethod
def from_pydantic(cls, pydantic_metric: SemanticManifestMetric, dimensions: List[Dimension]) -> Metric:
Expand All @@ -57,6 +58,7 @@ def from_pydantic(cls, pydantic_metric: SemanticManifestMetric, dimensions: List
metadata=pydantic_metric.metadata,
dimensions=dimensions,
label=pydantic_metric.label,
config=pydantic_metric.config,
)

@property
Expand Down

0 comments on commit ff7c4ab

Please sign in to comment.