获取 /analysis/{projectId}/report

获取迁移前分析报告。

路径参数

  • projectId 字符串 必需

    项目 ID

    格式应符合以下模式:^[A-Za-z0-9\-]+$

响应

  • 200 application/json

    正常

    隐藏响应属性 显示响应属性 对象
    • id 字符串 必需

      格式应符合以下模式:^[A-Za-z0-9\-]+$

    • projectId 字符串 必需

      格式应符合以下模式:^[A-Za-z0-9\-]+$

    • generatedAt string(date-time) 必需
    • preflightChecks 大量[对象]
      隐藏 preflightChecks 属性 显示预检检查属性 对象
      • 名称 字符串 必需
      • 迁移模式 字符串 必需

        值为 SNAPSHOTCDCINCREMENTAL

      • 通过 布尔 必需
    • 规则 大量[对象] 必需
      隐藏规则属性 显示规则属性 对象
      • id 字符串 必需
      • dboType 字符串 必需

        取值为 TABLEVIEWROUTINEINDEXTRIGGERDATABASECOLUMN

      • ruleType 字符串 必需

        值为 TASKRISKNOTICE

      • 实体名称 字符串 必需
      • detectionText 字符串 必需
      • 难度 字符串 必需

        值为 HIGHMEDIUMLOW

      • MitrationText 字符串 必需
      • category 字符串 必需

        取值为 DATA_TYPEUNSUPPORTED_FEATUREPERFORMANCESCHEMA

      • incompleteFeatureType 字符串

        取值为 ORACLE-PACKAGEROUTINETRIGGERSMATERIALIZED-VIEWS

    • dbMetrics 对象 必需

      不允许使用其他属性。

      隐藏 dbMetrics 属性 显示 dbMetrics 属性 对象
      • totalDbSize integer(int64) 必需
      • readHeavyTables 大量[对象] 必需
        隐藏 readHeavyTables 属性 显示 readHeavyTables 属性 对象
        • database 字符串 必需
        • 模式 字符串 必需
        • 名称 字符串 必需
      • writeHeavyTables 大量[对象] 必需
        隐藏 writeHeavyTables 属性 显示 writeHeavyTables 属性 对象
        • database 字符串 必需
        • 模式 字符串 必需
        • 名称 字符串 必需
      • allTables 大量[对象] 必需
        隐藏 allTables 属性 显示所有表属性 对象
        • 路径 对象 必需

          不允许使用其他属性。

          隐藏路径属性 显示路径属性 对象
          • database 字符串 必需
          • 模式 字符串 必需
          • 名称 字符串 必需
        • 数据大小 integer(int64) 必需
        • 行计数 integer(int64) 必需
        • readCount integer(int64) 必需
        • writeCount integer(int64) 必需
        • readWriteClassification 字符串 必需

          取值为 READ_HEAVYWRITE_HEAVYREAD_AND_WRITE_HEAVYNONE

        • 对象 必需
          隐藏列属性 显示列属性 对象
          • * 对象 additionalProperties

            不允许使用其他属性。

            隐藏 * 属性 显示 * 属性 对象
            • 类型 对象 必需

              不允许使用其他属性。

              隐藏类型属性 显示类型属性 对象
              • defaultMongoFieldType 字符串

                值为 AUTOSTRINGINTEGERBOOLDOUBLELONGDECIMALARRAYDATETIMESTAMPOBJECTOBJECT_IDBIN_DATAMIN_KEYMAX_KEYJAVASCRIPTREGEXNULL

              • databaseSpecificType 字符串 必需
              • 精度 整型
              • 扩展(Scale) 整型
            • ordinalPosition 整型 必需

              最小值为 1

            • 主键 对象

              不允许使用其他属性。

              隐藏 PrimaryKey 属性 显示primaryKey 属性 对象
              • 名称 字符串 必需
            • foreignKey 对象

              不允许使用其他属性。

              隐藏外键属性 显示外键属性 对象
              • 名称 字符串 必需
              • 模式 字符串
              • 数据表(table) 字符串
              • 字符串
              • 关联基数 字符串

                取值为 UNKNOWNZERO_TO_ONEONE_TO_ONEZERO_TO_MANY

              • 合成的 布尔
            • 可空 布尔 必需
            • autoIncremented 布尔 必需
            • 生成 布尔 必需
            • 隐藏 布尔 必需
            • 已索引 布尔 必需
            • uniqueIndexed 布尔 必需
      • allStoredProcedures 大量[对象] 必需
        隐藏 allStoredProcedures 属性 显示 allStoredProcedures 属性 对象
        • 路径 对象 必需

          不允许使用其他属性。

          隐藏路径属性 显示路径属性 对象
          • database 字符串 必需
          • 模式 字符串 必需
          • 名称 字符串 必需
        • 定义 字符串 必需
      • allTriggers 大量[对象] 必需
        隐藏 allTriggers 属性 显示 allTriggers 属性 对象
        • 路径 对象 必需

          不允许使用其他属性。

          隐藏路径属性 显示路径属性 对象
          • database 字符串 必需
          • 模式 字符串 必需
          • 名称 字符串 必需
        • 定义 字符串 必需
      • allViews 大量[对象] 必需
        隐藏 allViews 属性 显示 allViews 属性 对象
        • 路径 对象 必需

          不允许使用其他属性。

          隐藏路径属性 显示路径属性 对象
          • database 字符串 必需
          • 模式 字符串 必需
          • 名称 字符串 必需
        • 定义 字符串 必需
    • databaseMetadata 对象 必需
      Hide databaseMetadata attributes 显示数据库元数据属性 对象
      • databaseVersion 字符串
      • connectionId 字符串 必需
      • connectionName 字符串
      • connectionUrl 字符串
      • databaseType 字符串 必需
      • connectionType 字符串

        取值为 DEMOQASTAGINGDEVELOPMENTPRODUCTIONNONE

    • healthScore 数字 必需
    • solvedRules array[string] 必需
    • 秘诀 大量[对象] 必需
      隐藏外卖属性 显示外卖属性 对象
      • 类型 字符串 必需

        取值为 DATA_TYPEUNSUPPORTED_FEATUREPERFORMANCESCHEMA

      • 数字 必需
    • uniqueDboAlerts 对象 必需

      不允许使用其他属性。

      隐藏 uniqueDboAlerts 属性 显示 uniqueDboAlerts 属性 对象
      • 任务 整型 必需
      • 风险 整型 必需
      • notice 整型 必需
      • 整型 必需
    • 检测CountsByDboType 对象 必需
      隐藏检测CountsByDboType 属性 显示检测计数ByDboType 属性 对象
      • * 对象 additionalProperties

        不允许使用其他属性。

        隐藏 * 属性 显示 * 属性 对象
        • 严重性计数按检测类别 对象
          隐藏“severityCountsByDetectionCategory”属性 显示severityCountsByDetectionCategory 属性 对象
          • * 对象

            不允许使用其他属性。

            隐藏 * 属性 显示 * 属性 对象
            • 任务 整型 必需
            • 风险 整型 必需
            • notice 整型 必需
            • 整型 必需
    • errors array[string]
  • 404 application/json

    未找到

    隐藏响应属性 显示响应属性 对象
    • jobId 字符串

      格式应符合以下模式:^[A-Za-z0-9\-]+$

    • message 字符串 必需
    • 描述 字符串
    • timestamp string(date-time) 必需
GET /analysis/{projectId}/report
curl \
 --request GET 'http://127.0.0.1:8278/api/v1/analysis/{projectId}/report'
响应示例 (200)
{
  "id": "string",
  "projectId": "string",
  "generatedAt": "2025-05-04T09:42:00Z",
  "preflightChecks": [
    {
      "name": "string",
      "migrationMode": "SNAPSHOT",
      "passed": true
    }
  ],
  "rules": [
    {
      "id": "string",
      "dboType": "TABLE",
      "ruleType": "TASK",
      "entityName": "string",
      "detectionText": "string",
      "difficulty": "HIGH",
      "mitigationText": "string",
      "category": "DATA_TYPE",
      "incompatibleFeatureType": "ORACLE-PACKAGE"
    }
  ],
  "dbMetrics": {
    "totalDbSize": 42,
    "readHeavyTables": [
      {
        "database": "string",
        "schema": "string",
        "name": "string"
      }
    ],
    "writeHeavyTables": [
      {
        "database": "string",
        "schema": "string",
        "name": "string"
      }
    ],
    "allTables": [
      {
        "path": {
          "database": "string",
          "schema": "string",
          "name": "string"
        },
        "dataSize": 42,
        "rowCount": 42,
        "readCount": 42,
        "writeCount": 42,
        "readWriteClassification": "READ_HEAVY",
        "columns": {
          "additionalProperty1": {
            "type": {
              "defaultMongoFieldType": "AUTO",
              "databaseSpecificType": "string",
              "precision": 42,
              "scale": 42
            },
            "ordinalPosition": 42,
            "primaryKey": {
              "name": "string"
            },
            "foreignKey": {
              "name": "string",
              "schema": "string",
              "table": "string",
              "column": "string",
              "cardinality": "UNKNOWN",
              "synthetic": true
            },
            "nullable": true,
            "autoIncremented": true,
            "generated": true,
            "hidden": true,
            "indexed": true,
            "uniqueIndexed": true
          },
          "additionalProperty2": {
            "type": {
              "defaultMongoFieldType": "AUTO",
              "databaseSpecificType": "string",
              "precision": 42,
              "scale": 42
            },
            "ordinalPosition": 42,
            "primaryKey": {
              "name": "string"
            },
            "foreignKey": {
              "name": "string",
              "schema": "string",
              "table": "string",
              "column": "string",
              "cardinality": "UNKNOWN",
              "synthetic": true
            },
            "nullable": true,
            "autoIncremented": true,
            "generated": true,
            "hidden": true,
            "indexed": true,
            "uniqueIndexed": true
          }
        }
      }
    ],
    "allStoredProcedures": [
      {
        "path": {
          "database": "string",
          "schema": "string",
          "name": "string"
        },
        "definition": "string"
      }
    ],
    "allTriggers": [
      {
        "path": {
          "database": "string",
          "schema": "string",
          "name": "string"
        },
        "definition": "string"
      }
    ],
    "allViews": [
      {
        "path": {
          "database": "string",
          "schema": "string",
          "name": "string"
        },
        "definition": "string"
      }
    ]
  },
  "databaseMetadata": {
    "databaseVersion": "string",
    "connectionId": "string",
    "connectionName": "string",
    "connectionUrl": "string",
    "databaseType": "string",
    "connectionType": "DEMO"
  },
  "healthScore": 42.0,
  "resolvedRules": [
    "string"
  ],
  "takeaways": [
    {
      "type": "DATA_TYPE",
      "value": 42.0
    }
  ],
  "uniqueDboAlerts": {
    "task": 42,
    "risk": 42,
    "notice": 42,
    "none": 42
  },
  "detectionCountsByDboType": {
    "additionalProperty1": {
      "severityCountsByDetectionCategory": {
        "*": {
          "task": 42,
          "risk": 42,
          "notice": 42,
          "none": 42
        }
      }
    },
    "additionalProperty2": {
      "severityCountsByDetectionCategory": {
        "*": {
          "task": 42,
          "risk": 42,
          "notice": 42,
          "none": 42
        }
      }
    }
  },
  "errors": [
    "string"
  ]
}
响应示例 (404)
{
  "jobId": "string",
  "message": "string",
  "description": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}