DevOps relationship modeling design

Updated at:

Overview

Entity relationship modeling is a core feature of UModel. EntitySetLink connects separate entities into a cohesive business network. In a DevOps workflow, relationship modeling bridges development and O&M data while providing rich context for AI analysis.

  • Note: The architecture and implementation described below are examples. Adjust and optimize them for your business scenarios.

Case study materials

Download the materials for this use case: umodel-full-devops.zip.

Relationship modeling principles

1. Prioritize business semantics

  • Define clear semantics: Each relationship must have a clear business meaning.

  • Be intuitive: Relationship names and directions must be intuitive for business users.

  • Be explainable: AI systems must be able to understand and explain the meaning of relationships.

2. Cross-domain connections

  • Break down data silos: Connect entities from different business domains.

  • Trace end-to-end: Support end-to-end tracing from development to O&M.

  • Associate bidirectionally: Consider the need for bidirectional queries.

3. Hierarchical design

  • Set priorities: Use `priority` to control the importance of relationships.

  • Classify relationships: Use different relationship types for different business semantics.

  • Ensure scalability: Design for scalability by allowing for the addition of new relationship types.

Relationship type system

1. Contains relationship (contains)

Semantics

Indicates that one entity physically or logically contains another, reflecting hierarchy and ownership.

Scenarios

Source entity

Target entity

Business meaning

Value

ops.cluster

ops.host

A cluster contains a host

Infrastructure hierarchy management

ops.cluster

ops.server_role

A cluster contains a server role

Service deployment location tracking

ops.server_role

ops.host

A server role is deployed on a host

Service-to-host mapping

ops.server_role

ops.service_version

A server role contains a service version

Version deployment relationship

ops.service_template

ops.service_version

A service template contains multiple versions

Version management

2. Source relationship (sourced_from)

Semantics

Indicates that one entity originates from another, reflecting data lineage and traceability.

Scenarios

Source entity

Target entity

Business meaning

Value

ops.service_version

organization.code_repo

A service version comes from a code repository

Trace source code for a version

ops.service_version

organization.code_release

A service version comes from a code release

Link deployments to releases

organization.code_release

organization.code_repo

A code release comes from a code repository

Link releases to source code

3. Call relationship (calls)

Semantics

Represents call dependencies between services, reflecting system architecture and runtime dependencies.

Scenarios

Source entity

Target entity

Business meaning

Value

ops.server_role

ops.server_role

A call between server roles

Service dependency analysis

4. Use relationship (use)

Semantics

Indicates that one entity uses the services or features of another entity.

Scenarios

Source entity

Target entity

Business meaning

Value

organization.developer

organization.ai_tool

A developer uses an AI tool

AI tool effectiveness analysis

5. Manage relationship (manage)

Semantics

Represents ownership, clarifying the team or individual responsible for a resource.

Scenarios

Source entity

Target entity

Business meaning

Value

organization.developer

ops.server_role

A developer owns a server role

Accountability management

6. Direct relationship (direct)

Semantics

Represents a direct reporting relationship in an organization chart.

Scenarios

Source entity

Target entity

Business meaning

Value

organization.developer

organization.developer

A direct report relationship between developers

Organization chart analysis

7. Related to relationship (related_to)

Semantics

Represents a general association between entities, suitable for establishing loosely coupled relationships.

Scenarios

Source entity

Target entity

Business meaning

Value

organization.ai_tool

organization.code_repo

An AI tool is related to a code repository

Tool usage context

organization.code_release

organization.developer

A code release is related to a developer

Link releases to contributors

Cross-domain relationship design

1. Development-O&M bridge relationships

Cross-domain relationships are key to a fully integrated DevOps workflow. The main connection points include:

Version traceability chain

ops.service_version ──sourced_from──► organization.code_repo
ops.service_version ──sourced_from──► organization.code_release
organization.code_release ──sourced_from──► organization.code_repo

Value:

  • Trace runtime issues directly to the source code.

  • Analyze the impact of code changes on services.

  • Provide a complete change context for AI analysis.

Ownership chain

organization.developer ──manage──► ops.server_role
organization.developer ──related_to──► organization.code_release

Value:

  • Establish clear ownership of services.

  • Quickly find and notify the responsible person when a failure occurs.

  • Provide data for performance analysis.

AI effectiveness chain

organization.developer ──use──► organization.ai_tool
organization.ai_tool ──related_to──► organization.code_repo

Value:

  • Measure how AI tools improve effectiveness across projects.

  • Analyze AI tool usage by individuals and teams.

  • Provide data to support AI tool adoption decisions.