From fc03ffbd8a9fb93c49ccb1a93bc7744cb188c712 Mon Sep 17 00:00:00 2001 From: Anwesha Date: Thu, 7 Apr 2022 17:53:19 -0700 Subject: [PATCH] docs: fixes mistake in python sample code 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 --- samples/snippets/get_common_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/get_common_metadata.py b/samples/snippets/get_common_metadata.py index 731da0d..19a1964 100644 --- a/samples/snippets/get_common_metadata.py +++ b/samples/snippets/get_common_metadata.py @@ -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}")