{
  "repo": "tidbcloud/platform-script",
  "binary": "platform-script",
  "binary_path": ".",
  "kind": "worker",
  "dependencies": {
    "Runtime PlatformScriptWorker.Handler": {
      "description": "Reads alert rule files from GitHub and persists derived alert counts to metadb.",
      "infrastructure": {
        "github_api": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Fetch runbook rule files",
              "trigger": "GetGitHubFileContent",
              "implementation": "count-alert/github_api.go"
            }
          ]
        },
        "metadb": {
          "conditions": [
            "Alert counts computed"
          ],
          "operations": [
            {
              "operation": "Insert/update alert counts",
              "trigger": "AddAlert",
              "implementation": "count-alert/sql_driver.go"
            }
          ]
        }
      },
      "services": []
    }
  }
}
