{
  "repo": "tidbcloud/cloud-finops-system",
  "binary": "cluster-recycler",
  "binary_path": "actor/recycler/cluster_recycler/auto_cleanup.py",
  "dependencies": {
    "Runtime ClusterRecyclerWorker.run": {
      "infrastructure": {
        "grpc": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "LIST / DELETE CLUSTERS",
              "trigger": "Enumerate all cluster types and delete expired clusters through the management service",
              "conditions": [
                "The cleanup worker runs"
              ],
              "implementation": "grpc-requests Client calls against tidb-mgmt-service in auto_cleanup.py"
            }
          ]
        },
        "http": {
          "conditions": [
            "When reporting cleanup failures or summaries"
          ],
          "operations": [
            {
              "operation": "POST",
              "trigger": "Send Feishu summary messages",
              "conditions": [
                "Summary/report logic is reached"
              ],
              "implementation": "requests usage inside the recycler helpers"
            }
          ]
        }
      },
      "services": []
    }
  }
}
