mchades commented on code in PR #14210:
URL: https://github.com/apache/gravitino/pull/14210#discussion_r4413571631


##########
docs/manage-semantic-model-metadata-using-gravitino.md:
##########
@@ -326,6 +327,144 @@ loaded = models.load_semantic_model(ident)
 </TabItem>
 </Tabs>
 
+### Discover Metrics in a Schema
+
+Use schema-level metric discovery to find metrics across the current 
definitions of Semantic
+Models in one schema. You can list identifiers or retrieve complete metric 
definitions without
+first listing and loading each model. These examples use the `total_revenue` 
metric in
+`mart.sales_model` created above, before importing any other models.
+
+#### List Metric Identifiers
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \
+  
'http://localhost:8090/api/metalakes/example/catalogs/sales/schemas/mart/semantic-model-metrics'
+```
+
+The default is `details=false`. If `sales_model` is the only model with 
metrics in this schema,
+the response is:

Review Comment:
   Only `true` (case-insensitive) enables details. `details=1` and 
`details=yes` are treated as `details=false`, so only metric identifiers are 
returned. Added a clarification next to the default.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to