Skip to content

Commit

Permalink
from_expression -> select_expression (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
ANich authored Aug 16, 2023
1 parent 6d40713 commit 6d0c8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/concepts/metric_hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ from metric_config_parser.config import ConfigCollection

config_collection = ConfigCollection.from_github_repo("https://github.com/mozilla/metric-hub")
metric = config_collection.get_metric_definition(slug="active_hours", app_name="firefox_desktop")
print(metric.from_expression)
print(metric.select_expression)
```

To use the metrics with Mozanalysis, you'll need `Metric`s not `MetricDefinition`s. For example:
Expand Down

0 comments on commit 6d0c8ec

Please sign in to comment.