{
  "repo": "tidbcloud/observability",
  "binary": "diagnosis-query",
  "binary_path": "cmd/diagnosis-query/main.go",
  "dependencies": {
    "HTTP GET /metrics": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /swagger/*any": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/cmdline": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/profile": {
      "infrastructure": {},
      "services": []
    },
    "HTTP POST /debug/pprof/symbol": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/symbol": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/trace": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/allocs": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/block": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/goroutine": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/heap": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/mutex": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/threadcreate": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /api/v1/slow_query/list": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "local_filesystem": {
          "conditions": [
            "When using DuckDB cache"
          ],
          "operations": [
            "READ/WRITE cache files"
          ]
        },
        "sqlite": {
          "conditions": [
            "When using local DuckDB"
          ],
          "operations": [
            "SELECT queries"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/slow_query/detail": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "local_filesystem": {
          "conditions": [
            "When using DuckDB cache"
          ],
          "operations": [
            "READ/WRITE cache files"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/slow_query/databases": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/slow_query/available_fields": {
      "infrastructure": {},
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/slow_query/stats": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "local_filesystem": {
          "conditions": [
            "When using DuckDB cache"
          ],
          "operations": [
            "READ/WRITE cache files"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/slow_query/stats/metric": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/slow_query/stats/databases": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/slow_query/stats/time_windows": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/topsql/config": {
      "infrastructure": {},
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/topsql/instances": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "When data_source=deltalake"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "victoria-metrics",
          "target_interface": "POST /api/v1/query",
          "operation_type": "http_post",
          "conditions": [
            "When data_source is not deltalake (legacy path)"
          ],
          "operations": [
            "Query TopSQL instances from VictoriaMetrics"
          ]
        },
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/topsql/summary": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "When data_source=deltalake"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "victoria-metrics",
          "target_interface": "POST /api/v1/query_range",
          "operation_type": "http_post",
          "conditions": [
            "When data_source is not deltalake (legacy path)"
          ],
          "operations": [
            "Query TopSQL summary from VictoriaMetrics"
          ]
        },
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/topru/config": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/topru/summary": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/topru/user_stats": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/keyvisual/config": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "sqlite": {
          "conditions": [
            "When using local cache"
          ],
          "operations": [
            "SELECT queries"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/keyvisual/heatmaps": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "sqlite": {
          "conditions": [
            "When using local cache"
          ],
          "operations": [
            "SELECT queries"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/SQLs/": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/SQLs/:name/fields": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/SQLs/:name/data": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/SQLs/:name/data/:id": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/statements/list": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "k8s": {
          "conditions": [
            "When querying cluster metadata"
          ],
          "operations": [
            "GET O11yCluster CRD"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/statements/plan/detail": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/statements/plans": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/statements/stmt_types": {
      "infrastructure": {},
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/statements/available_fields": {
      "infrastructure": {},
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/statements/time_ranges": {
      "infrastructure": {},
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/continuous_profiling/group_profiles": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/continuous_profiling/group_profile/detail": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/continuous_profiling/action_token": {
      "infrastructure": {},
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/continuous_profiling/download": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        },
        "local_filesystem": {
          "conditions": [
            "When creating zip archives"
          ],
          "operations": [
            "WRITE temp files"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "HTTP GET /api/v1/continuous_profiling/single_profile/view": {
      "infrastructure": {
        "s3": {
          "conditions": [
            "Always"
          ],
          "operations": [
            "GET objects"
          ]
        }
      },
      "services": [
        {
          "name": "o11y-auth-server",
          "target_interface": "POST /client/verify",
          "operation_type": "http_post",
          "conditions": [
            "When O11Y_JWT_AUTH_ENABLED=true for /api/v1 routes"
          ],
          "operations": [
            "Verify o11ytoken before dispatching the API handler"
          ]
        }
      ]
    },
    "Runtime DiagnosisQuery.ExternalSlowQueryProxy": {
      "infrastructure": {},
      "services": []
    },
    "Runtime DiagnosisQuery.O11yDiagnosisProxy": {
      "infrastructure": {},
      "services": []
    }
  }
}
