{
  "repo": "tidbcloud/plg",
  "binary": "lark-bot",
  "binary_path": "jobs/lark_bot.py",
  "dependencies": {
    "Runtime LarkBotWorker.run": {
      "description": "Fetches cohort data from the PLG data API and posts interactive cards to Feishu.",
      "infrastructure": {
        "http_data_api": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Read user cohort datasets",
              "trigger": "DataAPIRequester.get_data()",
              "implementation": "jobs/lark_bot.py"
            }
          ]
        },
        "feishu_webhook": {
          "conditions": [
            "SECRET configured"
          ],
          "operations": [
            {
              "operation": "POST interactive card",
              "trigger": "send_lark_msg",
              "implementation": "jobs/lark_bot.py"
            }
          ]
        }
      },
      "services": []
    }
  }
}
