{
  "repo": "tidbcloud/cloud-finops-system",
  "binary": "resource-pool-recycler",
  "binary_path": "actor/recycler/resource_pool_recycler/auto_cleanup.py",
  "dependencies": {
    "Runtime ResourcePoolRecyclerWorker.run": {
      "infrastructure": {
        "grpc": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "LIST / DELETE RESOURCE POOLS",
              "trigger": "Inspect resource pools and delete ones outside retention policy",
              "conditions": [
                "The cleanup worker runs"
              ],
              "implementation": "grpc-requests Client calls in _list_resource_pools() and _grpc_request()"
            }
          ]
        },
        "http": {
          "conditions": [
            "When posting Feishu failure summaries"
          ],
          "operations": [
            {
              "operation": "POST",
              "trigger": "Send webhook notifications",
              "conditions": [
                "send_feishu_message() is invoked"
              ],
              "implementation": "requests.post(FEISHU_WEBHOOK_URL, ...)"
            }
          ]
        }
      },
      "services": []
    }
  }
}
