26 Jan 2026
09:49 PM
- last edited on
27 Jan 2026
08:10 AM
by
MaciejNeumann
I have an existing query for returning back problems in the V2 Problem API for a particular Kubernetes namespace.
My question is, how can I tack on an additional condition for a particular Kubernetes workload in that namespace?
https://{environmentid}.live.dynatrace.com/api/v2/problems?pageSize=10&fields=evidenceDetails,impactAnalysis,recentComments&from=1769403600000&to=1769457600000&entitySelector=type(CLOUD_APPLICATION),toRelationships.IS_NAMESPACE_OF_CA(type(CLOUD_APPLICATION_NAMESPACE),entityName("some-namespace-name"))
Any help greatly appreciated.
(Soon to retire from IT) Crabby Lou
Solved! Go to Solution.
27 Jan 2026 04:34 PM - edited 27 Jan 2026 05:19 PM
Hi @crabbylou
If you want to add both workload and namespace condition, could you try out this entity selector?
type(CLOUD_APPLICATION),entityName.equals("WORKLOAD-NAME"),toRelationships.IS_NAMESPACE_OF_CA(type(CLOUD_APPLICATION_NAMESPACE),entityName("NAMESPACE-NAME"))
27 Jan 2026 07:25 PM
Thank you raksh_hitha
Featured Posts