Loading...
Loading...
Compare original and translation side by side
entityName()entityAttr()classicEntitySelector()entityName()entityAttr()classicEntitySelector()| Use case | What to do |
|---|---|
| Convert a classic entity query to Smartscape | Follow the migration workflow, use the mapping table, then load the relevant detailed references |
Migrate | Start from the constrained side, convert selector filters to node filters, and replace relationship selectors with |
| Understand what a classic entity became in Smartscape | Check the entity mapping table and special cases before translating literally |
Rewrite classic DQL functions such as | Use the DQL construct guidance and function migration reference |
| Migrate classic topology navigation | Replace relationship fields and selectors with |
Translate signal or event queries using | Rewrite every entity dimension to the correct |
| 用例 | 操作指引 |
|---|---|
| 将经典实体查询转换为Smartscape版本 | 遵循迁移工作流,使用映射表,然后加载相关的详细参考文档 |
将 | 从约束侧开始,将选择器过滤器转换为节点过滤器,并用 |
| 了解经典实体在Smartscape中对应的内容 | 直译前先查看实体映射表和特殊情况说明 |
重写 | 参考DQL结构指引和函数迁移参考文档 |
| 迁移经典拓扑导航功能 | 用 |
转换使用 | 将每个实体维度重写为正确的 |
fetch dt.entity.*classicEntitySelector(...)belongs_to[...]runs[...]instance_of[...]dt.entity.*smartscapeNodessmartscapeEdgestraversereferencesgetNodeName()getNodeField()fetch dt.entity.*classicEntitySelector(...)belongs_to[...]runs[...]instance_of[...]dt.entity.*smartscapeNodessmartscapeEdgestraversereferencesgetNodeName()getNodeField()| Classic / Gen2 entity | Smartscape field | Smartscape node type | Notes |
|---|---|---|---|
| | | Standard host mapping |
| | | Standard service mapping |
| | | Process instance maps directly |
| | | Container-group instance maps directly |
| | | Kubernetes cluster |
| | | Kubernetes node |
| | | Kubernetes service |
| multiple workload fields | multiple K8S workload node types | Maps to multiple workload types; load the cloud-application guide |
| | | Classic cloud app instance becomes pod |
| | | Namespace mapping |
| | | Frontend application mapping |
| | | Cloud-function entity mapping |
| 经典/第二代实体 | Smartscape字段 | Smartscape节点类型 | 说明 |
|---|---|---|---|
| | | 标准主机映射 |
| | | 标准服务映射 |
| | | 进程实例直接映射 |
| | | 容器组实例直接映射 |
| | | Kubernetes集群 |
| | | Kubernetes节点 |
| | | Kubernetes服务 |
| 多个工作负载字段 | 多个K8S工作负载节点类型 | 映射到多种工作负载类型;请加载云应用指南 |
| | | 经典云应用实例对应为Pod |
| | | 命名空间映射 |
| | | 前端应用映射 |
| | | 云函数实体映射 |
| Classic construct | Typical Smartscape replacement | Notes |
|---|---|---|
| | Prefer |
| direct node field or | Prefer direct fields when available |
| node filters plus | Start from the constrained side |
| | Applies to |
| | |
| classic entity ID filters | Smartscape | Do not reuse classic IDs blindly |
| | Use Smartscape event fields |
| 经典结构 | 常用Smartscape替代项 | 说明 |
|---|---|---|
| | 直接查询节点时优先使用 |
| 直接节点字段或 | 存在直接字段时优先使用 |
| 节点过滤器加 | 从约束侧开始 |
信号查询中的 | | 适用于 |
| | |
| 经典实体ID过滤器 | Smartscape | 不要盲目复用经典ID |
| | 使用Smartscape事件字段 |
HOSTPROCESSHOSTPROCESS