Retrieve Service Hierarchy API returns no hierarchy information
search cancel

Retrieve Service Hierarchy API returns no hierarchy information

book

Article ID: 390041

calendar_today

Updated On:

Products

DX Operational Intelligence DX Operational Observability

Issue/Introduction

Below API call to GET Service information returns JSON with no hierarchy information. 

Techdocs Retrieve Service Hierarchy

Selected service has multiple layers of services but returned JSON shows every service as a single service under the same root service. 

 

Environment

DX Operational Observability (DX O2) 2x, SaaS

Resolution

The API below returns a response containing all the parent and child services along with their hierarchical relationships.
 
In DXO2, services are stored in a flat hierarchy, represented by a set of vertices and edges.
a) The set of vertices contains details about the services,
b) The edges describe the relationships between them.
 
In the response, all services are listed at the same root level. However, their hierarchy is determined by the edges section, where the `sourceExternalId` refers to the parent service and the `targetExternalId` refers to the child service.
 
https://<doi-adminui.route>/oi/v2/sa/service/details/hierarchy/{service_name}

Additional Information