The api api/measures/component_tree
gives the list of components based on the provided input filters. Is there any parameter to provide the language so that the returned list only contains components of that language?
Asked
Active
Viewed 215 times
1

slartidan
- 20,403
- 15
- 83
- 131

Manoj Kumar
- 289
- 4
- 12
1 Answers
0
No, currently you cannot filter on language.
You could do it like this:
- Find all potentially relevant components with
api/measures/component_tree
- Use
api/components/show
to get the language of each of those - Only take components, that are included in 1. and have your desired language in 2.

slartidan
- 20,403
- 15
- 83
- 131
-
But the above mentioned URL doesn't have metricKeys parameter. My need is to search based on metric keys. – Manoj Kumar Jul 04 '17 at 09:13
-
@slardan I don't think that work around will satisfy the use case. Because both are two different APIs. First API wont return the entire set of files. It will return only the number of values based on page size and metric key. Second API will return different set of values since it don't have metric keys. So merging both the APIs won't work in this case. – Manoj Kumar Jul 04 '17 at 13:45