{
  "repo": "tidbcloud/metrics-integration",
  "binary": "metrics-integration",
  "binary_path": "global/cmd/metrics-integration/main.go",
  "dependencies": {
    "HTTP GET /healthz": {
      "infrastructure": {},
      "services": []
    },
    "Runtime GlobalIntegrationGateway.ConsoleAPI": {
      "infrastructure": {},
      "services": []
    },
    "Runtime GlobalIntegrationGateway.OpenAPI": {
      "infrastructure": {},
      "services": []
    },
    "Runtime GlobalIntegrationGRPC.IntegrationService": {
      "infrastructure": {},
      "services": [
        {
          "name": "auth0",
          "target_interface": "auth and RBAC middleware",
          "operation_type": "auth_middleware",
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Extract auth params and authorize request",
              "trigger": "Protect global integration APIs",
              "implementation": "auth.ExtractorAuthParam, auth.Auth, auth.RBAC, auth.MetricsIntegrationUserPasser"
            }
          ]
        },
        {
          "name": "audit-log",
          "target_interface": "AuditLog SDK",
          "operation_type": "sdk_client",
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Audit log initialization and emission",
              "trigger": "Serve global integration operations",
              "implementation": "auditlog.InitAuditLogSDK / InitMockAuditLogSDK"
            }
          ]
        }
      ]
    },
    "Runtime GlobalIntegrationGRPC.OpenAPIIntegrationService": {
      "infrastructure": {},
      "services": []
    },
    "Runtime GlobalIntegrationGRPC.Health": {
      "infrastructure": {},
      "services": []
    },
    "Runtime EventBusConsumer.RegisterHandlersAndConsumers": {
      "infrastructure": {},
      "services": []
    }
  },
  "notes": [
    "The binary serves two gRPC services over one internal server and one Gin-based grpc-gateway.",
    "Global HTTP traffic is guarded by auth extraction, auth, and RBAC middleware."
  ]
}
