{
  "repo": "tidbcloud/metering",
  "binary": "instancecheck",
  "binary_path": "cmd/instancecheck/main.go",
  "dependencies": {
    "CLI instancecheck": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "Always after MGMT_DSN and service config load succeed"
          ],
          "operations": [
            {
              "operation": "RECONCILE INSTANCE METERING",
              "trigger": "Compare instance metering against management records",
              "conditions": [
                "The process reaches Compare(...)"
              ],
              "implementation": "Compare in cmd/instancecheck/main.go"
            }
          ]
        },
        "http": {
          "conditions": [
            "Always when SendMessage executes"
          ],
          "operations": [
            {
              "operation": "POST FEISHU BOT MESSAGE",
              "trigger": "Send reconciliation result to the configured Feishu webhook",
              "conditions": [
                "The command finishes comparison work"
              ],
              "implementation": "httpclient.Do in send(...) within cmd/instancecheck/main.go"
            }
          ]
        }
      },
      "services": []
    }
  }
}
