{
  "repo": "tidbcloud/observability",
  "binary": "diagnosis-compute",
  "binary_path": "cmd/diagnosis-compute/main.go",
  "dependencies": {
    "HTTP GET /metrics": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/cmdline": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/profile": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/symbol": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /debug/pprof/trace": {
      "infrastructure": {},
      "services": []
    },
    "Runtime DiagnosisCompute.RunCluster": {
      "infrastructure": {
        "s3": {
          "conditions": ["Always"],
          "operations": ["GET objects", "LIST objects", "PUT objects"]
        },
        "sqlite": {
          "conditions": ["Always"],
          "operations": ["CREATE/READ/WRITE local SQLite databases"]
        },
        "local_filesystem": {
          "conditions": ["Always"],
          "operations": ["CREATE/MKDIR/READ/WRITE data files", "CLEANUP temp files"]
        }
      },
      "services": []
    },
    "Runtime DiagnosisCompute.LoadClusterInfo": {
      "infrastructure": {
        "s3": {
          "conditions": ["Always"],
          "operations": ["GET objects from diagnosis/tasks/processor-dedicated/"]
        }
      },
      "services": []
    },
    "Runtime DiagnosisCompute.LoadCheckpoint": {
      "infrastructure": {
        "s3": {
          "conditions": ["Always"],
          "operations": ["GET checkpoint objects"]
        }
      },
      "services": []
    },
    "Runtime DiagnosisCompute.SaveCheckpoint": {
      "infrastructure": {
        "s3": {
          "conditions": ["Always"],
          "operations": ["PUT checkpoint objects"]
        }
      },
      "services": []
    },
    "Runtime DiagnosisCompute.RunClusterMergeTask": {
      "infrastructure": {
        "s3": {
          "conditions": ["Always"],
          "operations": ["LIST objects", "GET objects"]
        },
        "sqlite": {
          "conditions": ["Always"],
          "operations": ["WRITE merged log data to SQLite"]
        },
        "local_filesystem": {
          "conditions": ["Always"],
          "operations": ["WRITE temp files", "READ merged files"]
        }
      },
      "services": []
    },
    "Runtime DiagnosisCompute.RunClusterAnalyzeTask": {
      "infrastructure": {
        "s3": {
          "conditions": ["Always"],
          "operations": ["GET object size", "PUT analyzed data"]
        },
        "sqlite": {
          "conditions": ["Always"],
          "operations": ["WRITE log-stats databases"]
        },
        "local_filesystem": {
          "conditions": ["Always"],
          "operations": ["MKDIR data directories", "WRITE database files"]
        }
      },
      "services": [
        {
          "name": "deltalake-ops-server-service",
          "target_interface": "POST /deltalake/log_stats",
          "operation_type": "http_post",
          "conditions": ["When vendor is aws/gcp/azure/alicloud and not in test mode"],
          "operations": ["Sync SQLite log stats to Delta Lake"]
        }
      ]
    }
  }
}
