Defining dependencies
Last updated
Last updated
In Cortex, you have the ability to define outgoing dependencies on other entities. Cortex can also automatically for some integrations. Having dependencies defined powers the ability to when a dependency deprecates its API or makes backwards incompatible changes, and the ability to visualize dependencies in a .
Incoming dependencies are inferred based the outgoing dependency definitions.
In Cortex, you can visualize dependencies using the relationship graph at Tools > Relationship graphs. See the for more information.
When a dependency deprecates its API or makes backwards incompatible changes, Cortex surfaces these issues via these methods:
Breaking API changes are listed in your Cortex workspace under .
Cortex attempts to automatically make comments on PRs containing breaking OpenAPI changes that have downstream dependencies that Cortex knows about.
If a breaking change is merged to the default branch, Cortex alerts dependency owners via Slack that a breaking change was merged.
Cortex can automatically discover dependencies from your integrations:
You can define dependencies manually via an entity's YAML descriptor, via the Cortex UI (if UI editing is enabled), or via the API.
Your user or API key need the Edit entities
permission.
Navigate to the entity where you need to define a dependency.
In the upper right corner of the entity details page, click Configure entity.
Click the Hierarchy tab.
In the dropdown menu, choose an entity.
Optionally, select an endpoint.
Click Add.
Before you can select an endpoint from the dropdown when manually defining a dependency, that endpoint must be defined as a path in the entity's YAML file. See the example below:
Cortex syncs AWS dependencies every day at 8:00 a.m. UTC. All other dependencies sync at 12:00 a.m. UTC.
If you need to sync dependencies manually:
Navigate to Tools > Relationship graphs.
In the Dependencies block, click +Add entity.
In order for an endpoint to populate in this dropdown, it must first be defined as a path in the entity's YAML file. See below.
In the UI, the paths will appear in the Endpoint dropdown:
See the for authentication details.
In the upper right corner of the page, click the menu icon, then click Sync dependencies.