# Generated with protoc-gen-openapi # https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi openapi: 3.0.3 info: title: "" version: 0.0.1 paths: /analysis/{name}: post: tags: - Analysis description: Sends a greeting operationId: Analysis_GetAnalysis parameters: - name: name in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.AnalysisRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.AnalysisReply' /api/files: get: tags: - FileManager description: 获取文件列表 operationId: FileManager_ListFiles parameters: - name: fileType in: query description: 文件类型 schema: type: integer format: enum - name: limit in: query description: 分页限制 schema: type: integer format: int32 - name: offset in: query description: 分页偏移 schema: type: integer format: int32 responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/filemanager.v1.ListFilesReply' /api/files/{id}: get: tags: - FileManager description: 获取文件信息 operationId: FileManager_GetFileInfo parameters: - name: id in: path description: 文件ID required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/filemanager.v1.GetFileInfoReply' delete: tags: - FileManager description: 删除文件 operationId: FileManager_DeleteFile parameters: - name: id in: path description: 文件ID required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/filemanager.v1.DeleteFileReply' /api/files/{id}/download: get: tags: - FileManager description: 下载文件 operationId: FileManager_DownloadFile parameters: - name: id in: path description: 文件ID required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/filemanager.v1.DownloadFileReply' /api/runtime/function/info: post: tags: - Analysis description: GetFunctionInfoInGoroutine 获取函数在指定Goroutine中的信息 operationId: Analysis_GetFunctionInfoInGoroutine requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetFunctionInfoInGoroutineReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetFunctionInfoInGoroutineReply' /api/runtime/function/stats: post: tags: - Analysis description: GetFunctionCallStats 获取函数调用统计分析 operationId: Analysis_GetFunctionCallStats requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetFunctionCallStatsReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetFunctionCallStatsReply' /api/runtime/functions/children: post: tags: - Analysis description: GetChildFunctions 获取函数的子函数 operationId: Analysis_GetChildFunctions requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetChildFunctionsReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetChildFunctionsReply' /api/runtime/functions/parents: post: tags: - Analysis description: GetParentFunctions 获取所有的父函数 operationId: Analysis_GetParentFunctions requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetParentFunctionsReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetParentFunctionsReply' /api/runtime/functions/search: post: tags: - Analysis description: SearchFunctions 搜索函数 operationId: Analysis_SearchFunctions requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.SearchFunctionsReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.SearchFunctionsReply' /api/runtime/gids: post: tags: - Analysis operationId: Analysis_GetAllGIDs requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetAllGIDsReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetAllGIDsReply' /api/runtime/gids/function: post: tags: - Analysis operationId: Analysis_GetGidsByFunctionName requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetGidsByFunctionNameReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetGidsByFunctionNameReply' /api/runtime/goroutine-stats: post: tags: - Analysis description: GetGoroutineStats 获取Goroutine统计信息 operationId: Analysis_GetGoroutineStats requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetGoroutineStatsReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetGoroutineStatsReply' /api/runtime/hot-functions: post: tags: - Analysis description: GetHotFunctions 获取热点函数分析数据 operationId: Analysis_GetHotFunctions requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetHotFunctionsReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetHotFunctionsReply' /api/runtime/instrument: post: tags: - Analysis description: InstrumentProject 对项目进行插桩 operationId: Analysis_InstrumentProject requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.InstrumentProjectReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.InstrumentProjectReply' /api/runtime/modules: post: tags: - Analysis description: GetModuleNames 获取数据库中的模块名称列表 operationId: Analysis_GetModuleNames requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetModuleNamesReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetModuleNamesReply' /api/runtime/params/{id}: post: tags: - Analysis operationId: Analysis_GetParamsByID parameters: - name: id in: path required: true schema: type: integer format: int32 requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetParamsByIDReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetParamsByIDReply' /api/runtime/traces/parent/{parentId}: post: tags: - Analysis description: GetTracesByParentFunc 根据父函数ID获取函数调用 operationId: Analysis_GetTracesByParentFunc parameters: - name: parentId in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetTracesByParentFuncReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetTracesByParentFuncReply' /api/runtime/traces/{gid}: post: tags: - Analysis operationId: Analysis_GetAnalysisByGID parameters: - name: gid in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.AnalysisByGIDRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.AnalysisByGIDReply' /api/runtime/verify/path: post: tags: - Analysis description: 将VerifyProjectPath重定向到CheckDatabase operationId: Analysis_VerifyProjectPath requestBody: content: application/json: schema: $ref: '#/components/schemas/analysis.v1.VerifyProjectPathReq' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.VerifyProjectPathReply' /api/session: delete: tags: - Analysis description: ClearSession 清除session operationId: Analysis_ClearSession responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.ClearSessionReply' /api/session/analysis-path: get: tags: - Analysis description: |- Session管理相关API GetAnalysisPath 从session中获取分析路径 operationId: Analysis_GetAnalysisPath responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/analysis.v1.GetAnalysisPathReply' /api/static/analyze: post: tags: - StaticAnalysis description: 分析数据库文件 operationId: StaticAnalysis_AnalyzeDbFile requestBody: content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.AnalyzeDbFileRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.AnalyzeDbFileResponse' /api/static/analyze/path: post: tags: - StaticAnalysis description: 分析项目路径 operationId: StaticAnalysis_AnalyzeProjectPath requestBody: content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.AnalyzeProjectPathRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.AnalyzeProjectPathResponse' /api/static/dbfiles: get: tags: - StaticAnalysis description: 获取静态分析数据库文件列表 operationId: StaticAnalysis_GetStaticDbFiles responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetStaticDbFilesResponse' /api/static/search-functions: post: tags: - StaticAnalysis description: 模糊搜索函数 operationId: StaticAnalysis_SearchFunctions requestBody: content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.SearchFunctionsRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.SearchFunctionsResponse' /api/static/task/{taskId}/status: get: tags: - StaticAnalysis description: 获取分析任务状态 operationId: StaticAnalysis_GetAnalysisTaskStatus parameters: - name: taskId in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetAnalysisTaskStatusResponse' /api/static/viz/callgraph: post: tags: - StaticAnalysis description: 获取调用图数据 operationId: StaticAnalysis_GetCallGraph requestBody: content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetCallGraphRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetCallGraphResponse' /api/static/viz/callpaths: post: tags: - StaticAnalysis description: 获取函数调用路径 operationId: StaticAnalysis_GetFunctionCallPaths requestBody: content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetFunctionCallPathsRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetFunctionCallPathsResponse' /api/static/viz/function/{functionKey}: get: tags: - StaticAnalysis description: 获取函数详细信息 operationId: StaticAnalysis_GetFunctionDetails parameters: - name: functionKey in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetFunctionDetailsResponse' /api/static/viz/hotfunctions: get: tags: - StaticAnalysis description: 获取热点函数分析 operationId: StaticAnalysis_GetHotFunctions parameters: - name: limit in: query schema: type: integer format: int32 - name: sortBy in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetHotFunctionsResponse' /api/static/viz/initfunctions: get: tags: - StaticAnalysis description: 获取Init函数列表 operationId: StaticAnalysis_GetInitFunctions parameters: - name: limit in: query schema: type: integer format: int32 - name: packageFilter in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetInitFunctionsResponse' /api/static/viz/packages: get: tags: - StaticAnalysis description: 获取包依赖关系 operationId: StaticAnalysis_GetPackageDependencies responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetPackageDependenciesResponse' /api/static/viz/statistics: get: tags: - StaticAnalysis description: 获取全局统计信息 operationId: StaticAnalysis_GetGlobalStatistics responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/staticanalysis.v1.GetGlobalStatisticsResponse' components: schemas: analysis.v1.AnalysisByGIDReply: type: object properties: traceData: type: array items: $ref: '#/components/schemas/analysis.v1.AnalysisByGIDReply_TraceData' analysis.v1.AnalysisByGIDReply_TraceData: type: object properties: id: type: integer format: int32 name: type: string gid: type: string indent: type: integer format: int32 params: type: array items: $ref: '#/components/schemas/analysis.v1.TraceParams' paramCount: type: integer format: int32 timeCost: type: string parentId: type: string seq: type: string analysis.v1.AnalysisByGIDRequest: type: object properties: gid: type: string depth: type: integer description: dbpath参数已移除,从session中获取 format: int32 createTime: type: string analysis.v1.AnalysisReply: type: object properties: message: type: string description: The response message containing the greetings analysis.v1.AnalysisRequest: type: object properties: name: type: string description: The request message containing the user's name. analysis.v1.ClearSessionReply: type: object properties: success: type: boolean description: ClearSessionReply 清除session响应 analysis.v1.FunctionCallStats: type: object properties: name: type: string package: type: string callCount: type: integer format: int32 callerCount: type: integer format: int32 calleeCount: type: integer format: int32 avgTime: type: string maxTime: type: string minTime: type: string timeStdDev: type: number format: double description: 函数调用统计信息 analysis.v1.FunctionNode: type: object properties: id: type: string name: type: string package: type: string callCount: type: integer format: int32 avgTime: type: string timeCost: type: string paramCount: type: integer format: int32 depth: type: integer format: int32 seq: type: string analysis.v1.GetAllGIDsReply: type: object properties: body: type: array items: $ref: '#/components/schemas/analysis.v1.GetAllGIDsReply_Body' total: type: integer format: int32 analysis.v1.GetAllGIDsReply_Body: type: object properties: gid: type: string initialFunc: type: string depth: type: integer format: int32 executionTime: type: string isFinished: type: boolean analysis.v1.GetAllGIDsReq: type: object properties: page: type: integer format: int32 limit: type: integer format: int32 includeMetrics: type: boolean analysis.v1.GetAnalysisPathReply: type: object properties: dbpath: type: string exists: type: boolean description: GetAnalysisPathReply 获取分析路径响应 analysis.v1.GetChildFunctionsReply: type: object properties: functions: type: array items: $ref: '#/components/schemas/analysis.v1.FunctionNode' description: GetChildFunctionsReply 获取函数的子函数的响应 analysis.v1.GetChildFunctionsReq: type: object properties: parentId: type: string description: GetChildFunctionsReq 获取函数的子函数的请求 analysis.v1.GetFunctionCallStatsReply: type: object properties: stats: type: array items: $ref: '#/components/schemas/analysis.v1.FunctionCallStats' description: 获取函数调用统计响应 analysis.v1.GetFunctionCallStatsReq: type: object properties: functionName: type: string description: dbPath参数已移除,从session中获取 description: 获取函数调用统计请求 analysis.v1.GetFunctionInfoInGoroutineReply: type: object properties: functionInfo: $ref: '#/components/schemas/analysis.v1.GetFunctionInfoInGoroutineReply_FunctionInfo' description: GetFunctionInfoInGoroutineReply 获取函数在指定Goroutine中的信息响应 analysis.v1.GetFunctionInfoInGoroutineReply_FunctionInfo: type: object properties: id: type: string name: type: string depth: type: integer format: int32 parentIds: type: array items: $ref: '#/components/schemas/analysis.v1.ParentInfo' analysis.v1.GetFunctionInfoInGoroutineReq: type: object properties: gid: type: string description: dbpath参数已移除,从session中获取 functionId: type: string currentDepth: type: integer format: int32 description: GetFunctionInfoInGoroutineReq 获取函数在指定Goroutine中的信息请求 analysis.v1.GetGidsByFunctionNameReply: type: object properties: body: type: array items: $ref: '#/components/schemas/analysis.v1.GetGidsByFunctionNameReply_Body' total: type: integer format: int32 analysis.v1.GetGidsByFunctionNameReply_Body: type: object properties: gid: type: string initialFunc: type: string depth: type: integer format: int32 executionTime: type: string isFinished: type: boolean functionId: type: string analysis.v1.GetGidsByFunctionNameReq: type: object properties: functionName: type: string includeMetrics: type: boolean description: path参数已移除,从session中获取 analysis.v1.GetGoroutineStatsReply: type: object properties: active: type: integer format: int32 avgTime: type: string maxDepth: type: integer format: int32 description: GetGoroutineStatsReply 获取Goroutine统计信息的响应 analysis.v1.GetGoroutineStatsReq: type: object properties: {} description: GetGoroutineStatsReq 获取Goroutine统计信息的请求 analysis.v1.GetHotFunctionsReply: type: object properties: functions: type: array items: $ref: '#/components/schemas/analysis.v1.GetHotFunctionsReply_HotFunction' description: GetHotFunctionsReply 获取热点函数的响应 analysis.v1.GetHotFunctionsReply_HotFunction: type: object properties: name: type: string package: type: string callCount: type: integer format: int32 totalTime: type: string avgTime: type: string analysis.v1.GetHotFunctionsReq: type: object properties: sortBy: type: string description: GetHotFunctionsReq 获取热点函数的请求 analysis.v1.GetModuleNamesReply: type: object properties: moduleNames: type: array items: type: string description: GetModuleNamesReply 获取模块名称响应 analysis.v1.GetModuleNamesReq: type: object properties: maxSamples: type: integer description: dbpath参数已移除,从session中获取 format: int32 description: GetModuleNamesReq 获取模块名称请求 analysis.v1.GetParamsByIDReply: type: object properties: params: type: array items: $ref: '#/components/schemas/analysis.v1.TraceParams' analysis.v1.GetParamsByIDReq: type: object properties: id: type: integer format: int32 analysis.v1.GetParentFunctionsReply: type: object properties: functions: type: array items: $ref: '#/components/schemas/analysis.v1.FunctionNode' analysis.v1.GetParentFunctionsReq: type: object properties: functionName: type: string description: dbpath参数已移除,从session中获取 analysis.v1.GetTracesByParentFuncReply: type: object properties: traceData: type: array items: $ref: '#/components/schemas/analysis.v1.GetTracesByParentFuncReply_TraceData' description: GetTracesByParentFuncReply 根据父函数名称获取函数调用的响应 analysis.v1.GetTracesByParentFuncReply_TraceData: type: object properties: id: type: integer format: int32 name: type: string gid: type: integer format: int32 indent: type: integer format: int32 params: type: array items: $ref: '#/components/schemas/analysis.v1.TraceParams' paramCount: type: integer format: int32 timeCost: type: string parentId: type: string seq: type: string analysis.v1.GetTracesByParentFuncReq: type: object properties: parentId: type: string description: GetTracesByParentFuncReq 根据父函数ID获取函数调用的请求 analysis.v1.InstrumentProjectReply: type: object properties: success: type: boolean message: type: string description: 插桩响应 analysis.v1.InstrumentProjectReq: type: object properties: path: type: string description: 插桩请求 analysis.v1.ParentInfo: type: object properties: parentId: type: string name: type: string depth: type: integer format: int32 description: ParentInfo 父函数信息 analysis.v1.SearchFunctionsReply: type: object properties: functions: type: array items: $ref: '#/components/schemas/analysis.v1.SearchFunctionsReply_FunctionInfo' total: type: integer format: int32 description: 函数搜索结果 analysis.v1.SearchFunctionsReply_FunctionInfo: type: object properties: name: type: string package: type: string analysis.v1.SearchFunctionsReq: type: object properties: query: type: string description: dbpath参数已移除,从session中获取 limit: type: integer format: int32 description: 搜索函数请求 analysis.v1.TraceParams: type: object properties: pos: type: integer format: int32 param: type: string analysis.v1.VerifyProjectPathReply: type: object properties: verified: type: boolean analysis.v1.VerifyProjectPathReq: type: object properties: path: type: string filemanager.v1.DeleteFileReply: type: object properties: success: type: boolean description: 是否成功 description: 删除文件响应 filemanager.v1.DownloadFileReply: type: object properties: fileContent: type: string description: 文件内容(Base64编码) fileName: type: string description: 文件名 contentType: type: string description: 内容类型 description: 下载文件响应 filemanager.v1.FileInfo: type: object properties: id: type: string description: 文件ID fileName: type: string description: 文件名 fileType: type: integer description: 文件类型 format: enum fileSize: type: string description: 文件大小(字节) contentType: type: string description: 内容类型 uploadTime: type: string description: 上传时间(ISO 8601格式) description: type: string description: 文件描述 filePath: type: string description: 文件路径 description: 文件信息 filemanager.v1.GetFileInfoReply: type: object properties: fileInfo: allOf: - $ref: '#/components/schemas/filemanager.v1.FileInfo' description: 文件信息 description: 获取文件信息响应 filemanager.v1.ListFilesReply: type: object properties: files: type: array items: $ref: '#/components/schemas/filemanager.v1.FileInfo' description: 文件信息列表 total: type: string description: 总数 description: 获取文件列表响应 staticanalysis.v1.AnalyzeDbFileRequest: type: object properties: dbPath: type: string description: 分析数据库文件请求 staticanalysis.v1.AnalyzeDbFileResponse: type: object properties: totalFunctions: type: integer format: int32 totalCalls: type: integer format: int32 totalPackages: type: integer format: int32 description: 分析数据库文件响应 staticanalysis.v1.AnalyzeProjectPathRequest: type: object properties: path: type: string algo: type: string ignoreMethod: type: string description: 分析项目路径请求 staticanalysis.v1.AnalyzeProjectPathResponse: type: object properties: success: type: boolean message: type: string taskId: type: string description: 分析项目路径响应 staticanalysis.v1.CallPath: type: object properties: functionKeys: type: array items: type: string pathLength: type: integer format: int32 confidence: type: number format: float description: 调用路径 staticanalysis.v1.CallSite: type: object properties: file: type: string line: type: integer format: int32 description: 调用点信息 staticanalysis.v1.DbFileInfo: type: object properties: path: type: string name: type: string size: type: string createTime: type: string description: 静态分析数据库文件信息 staticanalysis.v1.DetailedHotFunction: type: object properties: key: type: string name: type: string package: type: string signature: type: string doc: type: string position: $ref: '#/components/schemas/staticanalysis.v1.NodePosition' callerCount: type: integer format: int32 calleeCount: type: integer format: int32 importanceScore: type: number format: float topCallers: type: array items: type: string topCallees: type: array items: type: string description: 详细热点函数信息 staticanalysis.v1.FunctionDetail: type: object properties: key: type: string name: type: string package: type: string fullName: type: string signature: type: string doc: type: string position: $ref: '#/components/schemas/staticanalysis.v1.NodePosition' metrics: $ref: '#/components/schemas/staticanalysis.v1.NodeMetrics' callSites: type: array items: $ref: '#/components/schemas/staticanalysis.v1.CallSite' description: 函数详细信息 staticanalysis.v1.FunctionInfo: type: object properties: key: type: string name: type: string package: type: string callCount: type: integer format: int32 description: 函数信息 staticanalysis.v1.GetAnalysisTaskStatusResponse: type: object properties: status: type: integer format: int32 message: type: string progress: type: number format: float description: 获取分析任务状态响应 staticanalysis.v1.GetCallGraphRequest: type: object properties: rootFunction: type: string maxDepth: type: integer format: int32 includeExternal: type: boolean description: 获取调用图请求 staticanalysis.v1.GetCallGraphResponse: type: object properties: nodes: type: array items: $ref: '#/components/schemas/staticanalysis.v1.GraphNode' edges: type: array items: $ref: '#/components/schemas/staticanalysis.v1.GraphEdge' totalNodes: type: integer format: int32 totalEdges: type: integer format: int32 rootNode: type: string description: 调用图响应 staticanalysis.v1.GetFunctionCallPathsRequest: type: object properties: fromFunction: type: string toFunction: type: string maxPaths: type: integer format: int32 maxDepth: type: integer format: int32 description: 获取函数调用路径请求 staticanalysis.v1.GetFunctionCallPathsResponse: type: object properties: paths: type: array items: $ref: '#/components/schemas/staticanalysis.v1.CallPath' hasMore: type: boolean description: 函数调用路径响应 staticanalysis.v1.GetFunctionDetailsResponse: type: object properties: function: $ref: '#/components/schemas/staticanalysis.v1.FunctionDetail' callers: type: array items: $ref: '#/components/schemas/staticanalysis.v1.FunctionDetail' callees: type: array items: $ref: '#/components/schemas/staticanalysis.v1.FunctionDetail' description: 函数详细信息响应 staticanalysis.v1.GetGlobalStatisticsResponse: type: object properties: totalFunctions: type: integer format: int32 totalPackages: type: integer format: int32 totalEdges: type: integer format: int32 avgCallDepth: type: number format: float maxCallDepth: type: integer format: int32 hotFunctions: type: array items: $ref: '#/components/schemas/staticanalysis.v1.HotFunction' packageStats: type: array items: $ref: '#/components/schemas/staticanalysis.v1.PackageStatistic' description: 全局统计信息响应 staticanalysis.v1.GetHotFunctionsResponse: type: object properties: functions: type: array items: $ref: '#/components/schemas/staticanalysis.v1.DetailedHotFunction' description: 热点函数响应 staticanalysis.v1.GetInitFunctionsResponse: type: object properties: initFunctions: type: array items: $ref: '#/components/schemas/staticanalysis.v1.InitFunction' totalCount: type: integer format: int32 description: 获取Init函数列表响应 staticanalysis.v1.GetPackageDependenciesResponse: type: object properties: packages: type: array items: $ref: '#/components/schemas/staticanalysis.v1.PackageNode' dependencies: type: array items: $ref: '#/components/schemas/staticanalysis.v1.PackageDependency' description: 包依赖关系响应 staticanalysis.v1.GetStaticDbFilesResponse: type: object properties: files: type: array items: $ref: '#/components/schemas/staticanalysis.v1.DbFileInfo' description: 获取静态分析数据库文件列表响应 staticanalysis.v1.GraphEdge: type: object properties: id: type: string source: type: string target: type: string callType: type: string callCount: type: integer format: int32 callSites: type: array items: $ref: '#/components/schemas/staticanalysis.v1.CallSite' description: 图边 staticanalysis.v1.GraphNode: type: object properties: id: type: string label: type: string package: type: string fullName: type: string signature: type: string doc: type: string position: $ref: '#/components/schemas/staticanalysis.v1.NodePosition' metrics: $ref: '#/components/schemas/staticanalysis.v1.NodeMetrics' type: type: integer format: enum description: 图节点 staticanalysis.v1.HotFunction: type: object properties: key: type: string name: type: string package: type: string callerCount: type: integer format: int32 calleeCount: type: integer format: int32 importanceScore: type: number format: float description: 热点函数信息 staticanalysis.v1.InitFunction: type: object properties: key: type: string name: type: string package: type: string position: $ref: '#/components/schemas/staticanalysis.v1.NodePosition' signature: type: string doc: type: string fullName: type: string description: Init函数信息 staticanalysis.v1.NodeMetrics: type: object properties: callerCount: type: integer format: int32 calleeCount: type: integer format: int32 depthLevel: type: integer format: int32 centrality: type: number format: float description: 节点度量信息 staticanalysis.v1.NodePosition: type: object properties: filename: type: string startLine: type: integer format: int32 endLine: type: integer format: int32 description: 节点位置信息 staticanalysis.v1.PackageDependency: type: object properties: sourcePackage: type: string targetPackage: type: string callCount: type: integer format: int32 dependencyStrength: type: number format: float callFunctions: type: array items: type: string description: 包依赖关系 staticanalysis.v1.PackageNode: type: object properties: name: type: string functionCount: type: integer format: int32 internalCallCount: type: integer format: int32 externalCallCount: type: integer format: int32 complexity: type: number format: float subPackages: type: array items: type: string description: 包节点 staticanalysis.v1.PackageStatistic: type: object properties: packageName: type: string functionCount: type: integer format: int32 internalCalls: type: integer format: int32 externalCalls: type: integer format: int32 complexityScore: type: number format: float description: 包统计信息 staticanalysis.v1.SearchFunctionsRequest: type: object properties: query: type: string description: 模糊搜索函数请求 staticanalysis.v1.SearchFunctionsResponse: type: object properties: functions: type: array items: $ref: '#/components/schemas/staticanalysis.v1.FunctionInfo' description: 模糊搜索函数响应 tags: - name: Analysis description: The greeting service definition. - name: FileManager description: 文件管理服务定义 - name: StaticAnalysis description: 静态分析服务定义