Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Latest commit

 

History

History
55 lines (50 loc) · 986 Bytes

App.md

File metadata and controls

55 lines (50 loc) · 986 Bytes

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": {}
  }
}