DevOps entity modeling design

Updated at:

Overview

In an end-to-end DevOps solution, entity modeling is the foundation of the data architecture. This topic describes the modeling concepts, field design principles, and best practices for each entity to help you build a complete DevOps data model in UModel.

  • Note: The architecture and implementation described in this document are examples. Adjust and optimize them as needed for your specific business scenarios.

Case study materials

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

Modeling principles

1. Domain separation principle

  • Organization domain (organization): Focuses on development data, such as the R&D organization structure, code management, and AI tool usage.

  • Operations and Maintenance (O&M) domain (ops): Focuses on O&M data, such as infrastructure, service deployment, and runtime status.

  • Cross-domain association: Use EntitySetLink to establish connections between data in different domains.

2. Semantic design

  • Field naming: Use field names with clear business semantics. Avoid technical jargon.

  • Multilingual support: Provide descriptions in both Chinese and English to improve readability.

  • Type specification: Strictly define field types to ensure data consistency.

3. Scalability

  • Extension fields: Reserve extension fields to accommodate future business growth.

  • Dynamic support: Supports dynamically adding fields to adapt to business changes.

  • Version management: Uses schema versioning to ensure smooth upgrades.

Organization domain entity design

1. Developer (organization.developer)

Business significance

The developer entity represents the core participants in the DevOps process. It stores organization charts, job information, and management relationships, and links code contributions to service ownership.

Field design analysis

Field name

Type

Business significance

Design considerations

work_no

string

Employee ID (primary key)

Use the employee ID as the unique identifier to ensure identity accuracy.

show_name

string

Display name

A user-friendly name for UI display. Supports Chinese characters.

dept_name

string

Department name

Supports organizational-level efficiency analysis and management.

job_code_name

string

Job title

Analyzes the work characteristics and efficiency across different roles.

super_work_no

string

Supervisor's employee ID

A key field for building the organizational hierarchy.

super_show_name

string

Supervisor's name

Displays the supervisor's information in a user-friendly format.

2. Code repository (organization.code_repo)

Business significance

The code repository entity represents the source code management unit of a software project. It is the foundation for tracking code changes, versioning, and release traceability.

Field design analysis

Field name

Type

Business significance

Design considerations

project_id

integer

Project ID (primary key)

Uses an integer ID to ensure uniqueness and query efficiency.

project_path

string

Project path

A human-readable project identifier, such as "group/project".

project_url

string

Project URL

Allows direct navigation to the code repository page.

3. Code release (organization.code_release)

Business significance

The code release entity records how code is transformed into a deployable version. It links development activities to O&M deployments.

Field design analysis

Field name

Type

Business significance

Design considerations

buildid

string

Build ID

A unique build identifier generated by the CI/CD system.

commit_id

string

Commit ID

The SHA value of a Git commit. Ensures code version traceability.

repo_id

integer

Repository ID

Associates with a specific code repository.

repo_name

string

Repository name

Provides a user-friendly display name for the repository.

release_title

string

Release title

A human-readable identifier for the release version.

release_note

string

Release note

Detailed description of release changes. Does not support filtering or sorting.

4. AI tool (organization.ai_tool)

Business significance

The AI tool entity is an emerging element in the DevOps process. It tracks and analyzes the impact of AI technology on R&D efficiency.

Field design analysis

Field name

Type

Business significance

Design considerations

name

string

Tool name (primary key)

A concise and clear tool identifier, such as "Claude" or "Copilot".

O&M domain entity design

1. Cluster (ops.cluster)

Business significance

The cluster entity represents the top-level organizational unit of the infrastructure. It captures multi-dimensional information such as region, business line, and management.

Field design analysis

Field name

Type

Business significance

Design considerations

cluster

string

Cluster name (primary key)

The unique identifier for the cluster.

region

string

Region code

The technical identifier for the region.

region_show_name

string

Region display name

A user-friendly name for the region.

zone

string

Zone/Application name

Partition information from a business perspective.

business

string

Business line

The line of business the cluster belongs to.

2. Host (ops.host)

Business significance

The host entity represents the basic computing unit of the infrastructure and the underlying resource on which services run.

Field design analysis

Field name

Type

Business significance

Design considerations

hostname

string

Hostname (primary key)

The unique identifier for the host.

ip

string

IP address

The network endpoint. Supports filtering and querying.

cluster

string

Cluster

A foreign key field that associates with the cluster entity.

zone

string

Zone

Physical location information.

3. Server role (ops.server_role)

Business significance

The server role entity is a core O&M concept. It represents a service unit with specific functions and links service definitions to actual deployments.

Field design analysis

Field name

Type

Business significance

Design considerations

aliasName

string

Server role alias (primary key)

The service identifier at the business layer.

serverRole

string

Server role name

The role definition at the technical layer.

cluster

string

Cluster

Deployment location information.

zone

string

Region information

Geographic location information.

role

string

Role type

Service type classification.

template_md5

string

Template MD5

Configuration version validation.

template_commit_msg

string

Version commit message

Description of version changes.

template_modify_timestamp

time

Version modification time

Version timestamp.

4. Service template (ops.service_template)

Business significance

The service template entity defines the standardized configuration template for a service and provides the foundation for service standardization and reuse.

Field design analysis

Field name

Type

Business significance

Design considerations

name

string

Template name (primary key)

The unique identifier for the template.

group

string

Group

Classifies and organizes the template.

description

string

Template description

Detailed functional description.

type

string

Template type

The category of the template.

modify_user

string

Last modified by

The person responsible for the change.

modify_timestamp

timestamp

Modification time

Records the change time.

5. Service version (ops.service_version)

Business significance

The service version entity records the version information of a service and links service templates to code releases.

Field design analysis

Field name

Type

Business significance

Design considerations

template_name

string

Template name

Associates with the service template.

md5

string

Version MD5 checksum

Ensures version uniqueness.

commit

string

Commit ID

Associates with a code commit.

message

string

Commit message

Description of version changes.

submit_timestamp

timestamp

Submission time

Version creation time.

audit

string

Audit status

The status of the version audit process.