API描述

单个App信息,v0.1.6开始加入。

API地址

/api/v1/agent/${agentId}/app/${appId}
其中:

  • ${agentId} - Agent ID
  • ${appId} - App ID

请求方法

GET

请求参数

返回结果示例


{
  "config": {
    "id": "H5xSwPOXlRkTgEQ6",
    "on": true,
    "tasks": [],
    "items": [
      {
        "on": true,
        "id": "oVq0Nx7bYB7lwbrN",
        "name": "postgres",
        "sourceCode": "postgre.sql",
        "sourceOptions": {
          "addr": "127.0.0.1:5432",
          "dataFormat": 1,
          "databaseName": "postgres",
          "password": "123456",
          "sql": "SELECT * FROM settings",
          "timeoutSeconds": 10,
          "username": "postgres"
        },
        "interval": "30s",
        "thresholds": [],
        "charts": [],
        "recoverSuccesses": 1
      }
    ],
    "name": "postgres",
    "isSharedWithGroup": true,
    "sharedAgentIds": [],
    "noticeSetting": {}
  }
}

评论 发表新评论

  取消

登录后才能发表评论

暂时还没有评论。

{{comment.nickname}}@{{comment.datetime}}
{{comment.body}}