dt-migration

Migrate Dynatrace classic and Gen2 entity-based DQL, topology navigation, and classic entity selectors to Smartscape equivalents. Use this skill when users want to convert classic entities to Smartscape nodes, rewrite entityName, entityAttr, or classicEntitySelector patterns, or map old relationships to Smartscape traversal.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dt-migration" with this command: npx skills add dynatrace/dynatrace-for-ai/dynatrace-dynatrace-for-ai-dt-migration

Smartscape Migration Skill

This skill helps migrate Dynatrace classic and Gen2 entity-based DQL queries and query patterns to Smartscape-based equivalents.

Use it to:

  • convert classic entity types to Smartscape node types
  • rewrite classic entity DQL into Smartscape DQL
  • migrate entityName(), entityAttr(), classicEntitySelector(), and classic relationship patterns
  • explain how classic entity concepts map to Smartscape nodes, edges, fields, and IDs

Load the dt-dql-essentials skill before writing final DQL so the translated query also follows current DQL syntax rules.

This skill focuses on Smartscape-oriented DQL migration only. It does not cover asset-level migration workflows.

Use Cases

Load this skill when the user wants to:

Use caseWhat to do
Convert a classic entity query to SmartscapeFollow the migration workflow, use the mapping table, then load the relevant detailed references
Migrate classicEntitySelector(...) to SmartscapeStart from the constrained side, convert selector filters to node filters, and replace relationship selectors with traverse
Understand what a classic entity became in SmartscapeCheck the entity mapping table and special cases before translating literally
Rewrite classic DQL functions such as entityName() or entityAttr()Use the DQL construct guidance and function migration reference
Migrate classic topology navigationReplace relationship fields and selectors with smartscapeNodes, smartscapeEdges, traverse, or references
Translate signal or event queries using dt.entity.* dimensionsRewrite every entity dimension to the correct dt.smartscape.* field and adjust related helpers

Migration Workflow

Follow this order:

  1. Identify the classic input pattern:
    • fetch dt.entity.*
    • classicEntitySelector(...)
    • relationship field access such as belongs_to[...], runs[...], instance_of[...]
    • signal or event queries using dt.entity.*
  2. Identify the involved classic entity types.
  3. Look up the Smartscape replacement in the core entity mapping table below.
  4. Check which classic DQL constructs need explicit migration.
  5. Rewrite the query using Smartscape primitives:
    • smartscapeNodes
    • smartscapeEdges
    • traverse
    • references
    • getNodeName()
    • getNodeField()
  6. Check for special cases, unsupported entities, or ID assumptions.
  7. Load the matching detailed references for the specific entity family or migration pattern.

For the full migration process and output expectations, load references/migration-workflow.md.

Core Entity Mapping Table

Use this compact table first for common migrations. For the full mapping set, load references/type-mappings.md.

Classic / Gen2 entitySmartscape fieldSmartscape node typeNotes
dt.entity.hostdt.smartscape.hostHOSTStandard host mapping
dt.entity.servicedt.smartscape.serviceSERVICEStandard service mapping
dt.entity.process_group_instancedt.smartscape.processPROCESSProcess instance maps directly
dt.entity.container_group_instancedt.smartscape.containerCONTAINERContainer-group instance maps directly
dt.entity.kubernetes_clusterdt.smartscape.k8s_clusterK8S_CLUSTERKubernetes cluster
dt.entity.kubernetes_nodedt.smartscape.k8s_nodeK8S_NODEKubernetes node
dt.entity.kubernetes_servicedt.smartscape.k8s_serviceK8S_SERVICEKubernetes service
dt.entity.cloud_applicationmultiple workload fieldsmultiple K8S workload node typesMaps to multiple workload types; load the cloud-application guide
dt.entity.cloud_application_instancedt.smartscape.k8s_podK8S_PODClassic cloud app instance becomes pod
dt.entity.cloud_application_namespacedt.smartscape.k8s_namespaceK8S_NAMESPACENamespace mapping
dt.entity.applicationdt.smartscape.frontendFRONTENDFrontend application mapping
dt.entity.aws_lambda_functiondt.smartscape.aws.lambda_functionAWS_LAMBDA_FUNCTIONCloud-function entity mapping

DQL Constructs to Inspect During Migration

These classic constructs usually need explicit rewriting:

Classic constructTypical Smartscape replacementNotes
entityName(x)name or getNodeName(x)Prefer name when querying nodes directly
entityAttr(x, "...")direct node field or getNodeField(x, "...")Prefer direct fields when available
classicEntitySelector(...)node filters plus traverseStart from the constrained side
dt.entity.* in signal queriesdt.smartscape.*Applies to by, filter, fieldsAdd, expand, and related clauses
belongs_to[...], runs[...], instance_of[...]traverse or references[...]references works only for static edges
classic entity ID filtersSmartscape idDo not reuse classic IDs blindly
affected_entity_ids and affected_entity_typessmartscape.affected_entity.ids and smartscape.affected_entity.typesUse Smartscape event fields

For the detailed function-by-function guide, load references/dql-function-migration.md.

Special Cases

Do not translate these patterns literally:

  • Host group — no standalone Smartscape entity; use fields on HOST
  • Process group — no standalone Smartscape entity; use fields on PROCESS
  • Container group — no standalone Smartscape entity; preserve output shape with placeholders if needed
  • Classic IDs — classic entity IDs do not carry over to Smartscape automatically
  • Planned, missing, or not-planned mappings — check the full mapping table before assuming direct support

Load references/special-cases.md before migrating these patterns.

Entity-Focused Guides

When a migration centers on a specific entity family, load the matching detailed guide:

Each guide explains:

  • what the classic entity represented
  • what the Smartscape replacement is
  • which fields usually change
  • how relationships are migrated
  • common examples and pitfalls

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

dt-dql-essentials

No summary provided by upstream source.

Repository SourceNeeds Review
General

dt-app-dashboards

No summary provided by upstream source.

Repository SourceNeeds Review
General

dt-obs-logs

No summary provided by upstream source.

Repository SourceNeeds Review
General

dt-obs-services

No summary provided by upstream source.

Repository SourceNeeds Review