Skip to content

Commit

Permalink
docs: fix typo in get_common_metadata.py sample (#224)
Browse files Browse the repository at this point in the history
The print statement in the print_get_metadata_response was printing the custom definition status of a dimension when it was supposed to be printing information about the custom definition status of a metric

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
anweshan and parthea authored May 5, 2022
1 parent 0c89f93 commit d03baa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def print_get_metadata_response(response):
for metric in response.metrics:
print("METRIC")
print(f"{metric.api_name} ({metric.ui_name}): {metric.description}")
print(f"custom_definition: {dimension.custom_definition}")
print(f"custom_definition: {metric.custom_definition}")
if metric.expression:
print(f"Expression: {metric.expression}")

Expand Down

0 comments on commit d03baa8

Please sign in to comment.