26 Aug 2025
01:48 PM
- last edited on
27 Aug 2025
07:22 AM
by
MaciejNeumann
Hi,
I want to use service IDs instead of tag, help replace tag(\"",$MyServices,"\") with ID.
timeseries count = sum(dt.service.request.count), by: { endpoint.name },
filter: { endpoint.name in[fetch dt.entity.service_method
| filter in(id, classicEntitySelector(concat("type(service_method),fromRelationship.isServiceMethodOfService(type(SERVICE),tag(\"",$MyServices,"\"))")))
| fields entity.name ] }
| sort arraySum(count) desc
| limit 20
26 Aug 2025 03:01 PM
Hi,
Why do you prefer IDs? I think using tags would be more flexible.
Best regards
26 Aug 2025 03:29 PM - edited 26 Aug 2025 03:48 PM
That would be like this:
timeseries count = sum(dt.service.request.count), by: { endpoint.name },
filter: { endpoint.name in[fetch dt.entity.service_method
| filter in(id, classicEntitySelector(concat("type(service_method),fromRelationship.isServiceMethodOfService(type(SERVICE),entityID(\"",$MyIDs,"\"))")))| fields entity.name ] }
| sort arraySum(count) desc
| limit 20
Assuming you have a var called MyIDs with the ID list.
Try and let us know
28 Aug 2025 11:40 AM
Thanks for the solution. Unfortunately, it didn’t work as expected — I’m not seeing any records in the output
28 Aug 2025 11:52 AM - edited 28 Aug 2025 11:53 AM
Can I suggest a different approach?
Jump to notebooks/dashboard from the services app.
Select the service you need from the service app, and from the overview, throughput, 3 dots open with