DevOps entity modeling design
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 |
|
|
string |
Employee ID (primary key) |
Use the employee ID as the unique identifier to ensure identity accuracy. |
|
|
string |
Display name |
A user-friendly name for UI display. Supports Chinese characters. |
|
|
string |
Department name |
Supports organizational-level efficiency analysis and management. |
|
|
string |
Job title |
Analyzes the work characteristics and efficiency across different roles. |
|
|
string |
Supervisor's employee ID |
A key field for building the organizational hierarchy. |
|
|
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 |
|
|
integer |
Project ID (primary key) |
Uses an integer ID to ensure uniqueness and query efficiency. |
|
|
string |
Project path |
A human-readable project identifier, such as "group/project". |
|
|
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 |
|
|
string |
Build ID |
A unique build identifier generated by the CI/CD system. |
|
|
string |
Commit ID |
The SHA value of a Git commit. Ensures code version traceability. |
|
|
integer |
Repository ID |
Associates with a specific code repository. |
|
|
string |
Repository name |
Provides a user-friendly display name for the repository. |
|
|
string |
Release title |
A human-readable identifier for the release version. |
|
|
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 |
|
|
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 |
|
|
string |
Cluster name (primary key) |
The unique identifier for the cluster. |
|
|
string |
Region code |
The technical identifier for the region. |
|
|
string |
Region display name |
A user-friendly name for the region. |
|
|
string |
Zone/Application name |
Partition information from a business perspective. |
|
|
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 |
|
|
string |
Hostname (primary key) |
The unique identifier for the host. |
|
|
string |
IP address |
The network endpoint. Supports filtering and querying. |
|
|
string |
Cluster |
A foreign key field that associates with the cluster entity. |
|
|
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 |
|
|
string |
Server role alias (primary key) |
The service identifier at the business layer. |
|
|
string |
Server role name |
The role definition at the technical layer. |
|
|
string |
Cluster |
Deployment location information. |
|
|
string |
Region information |
Geographic location information. |
|
|
string |
Role type |
Service type classification. |
|
|
string |
Template MD5 |
Configuration version validation. |
|
|
string |
Version commit message |
Description of version changes. |
|
|
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 |
|
|
string |
Template name (primary key) |
The unique identifier for the template. |
|
|
string |
Group |
Classifies and organizes the template. |
|
|
string |
Template description |
Detailed functional description. |
|
|
string |
Template type |
The category of the template. |
|
|
string |
Last modified by |
The person responsible for the change. |
|
|
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 |
|
|
string |
Template name |
Associates with the service template. |
|
|
string |
Version MD5 checksum |
Ensures version uniqueness. |
|
|
string |
Commit ID |
Associates with a code commit. |
|
|
string |
Commit message |
Description of version changes. |
|
|
timestamp |
Submission time |
Version creation time. |
|
|
string |
Audit status |
The status of the version audit process. |