191 KiB
通用平台
公共分类
修改企业信息
基本信息
Path: /api/enterprise/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
name | string | 非必须 | |||
province | string | 非必须 | |||
city | string | 非必须 | |||
addr | string | 非必须 | |||
industry | string | 非必须 | |||
contact | string | 非必须 | |||
phone | string | 非必须 | |||
summary | string | 非必须 | |||
logo | string | 非必须 | |||
id | string | 必须 | 企业id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|
增加告警
基本信息
Path: /api/warning_statistics/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
server_id | number | 非必须 | 服务器id | ||
server_suid | string | 非必须 | 服务器suid | ||
device_id | number | 非必须 | 设备id | ||
device_suid | string | 非必须 | 设备suid | ||
node_id | number | 非必须 | 节点id | ||
node_suid | string | 非必须 | 节点suid | ||
picture_path | null | 非必须 | 告警图片 | ||
product_name | string | 非必须 | 产品名称 | ||
product_info | null | 非必须 | 产品信息 | ||
warning_name | string | 非必须 | 告警名称 | ||
warning_type | null | 非必须 | 告警类型 | ||
warning_code | string | 非必须 | 告警代码 | ||
warning_level | string | 非必须 | 告警级别 | ||
trigger_time | string | 非必须 | 触发时间 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ server_id | number | 非必须 | |||
├─ server_suid | string | 非必须 | |||
├─ device_id | number | 非必须 | |||
├─ device_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ picture_path | null | 非必须 | |||
├─ product_name | string | 非必须 | |||
├─ product_info | null | 非必须 | |||
├─ warning_name | string | 非必须 | |||
├─ warning_type | null | 非必须 | |||
├─ warning_code | string | 非必须 | |||
├─ warning_level | string | 非必须 | |||
├─ trigger_time | string | 非必须 | |||
├─ is_ignore | number | 非必须 | |||
├─ is_checked | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增企业关联模型
基本信息
Path: /api/enterprise_business_model/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
entity_id | number | 非必须 | 企业id | ||
name | string | 非必须 | 业务模型名称 | ||
basemodel_ids | string | 非必须 | 基础模型id, 多个使用逗号分割 | ||
comment | string | 非必须 | 简介 | ||
business_conf_param | string | 非必须 | 业务配置的参数,json字符串,eg: '{"a":1, "b":2}' | ||
link_node_ids | string | 非必须 | 关联节点id, 多个节点逗号分割 | ||
business_logic | string | 非必须 | 业务代码压缩包的md5 | ||
business_conf_file | string | 非必须 | 业务配置压缩包的文件md5 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ entity_id | number | 非必须 | |||
├─ entity_suid | string | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ base_models | string | 非必须 | |||
├─ business_logic | null | 非必须 | |||
├─ business_conf_file | null | 非必须 | |||
├─ business_conf_param | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增企业告警配置
基本信息
Path: /api/enterprise_alert/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
enterprise_suid | string | 非必须 | 企业suid | ||
node_id | number | 非必须 | 节点id | ||
node_suid | string | 非必须 | 节点suid | ||
is_sms | number | 非必须 | 是否sms(1是,0否) | ||
sms_to | string | 非必须 | |||
is_email | number | 非必须 | 同sms | ||
email_to | string | 非必须 | |||
freq | string | 非必须 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ enterprise_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ is_sms | number | 非必须 | |||
├─ sms_to | string | 非必须 | |||
├─ is_email | number | 非必须 | |||
├─ email_to | string | 非必须 | |||
├─ freq | string | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增企业节点
基本信息
Path: /api/enterprise_node/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
entity_suid | string | 非必须 | 企业suid | ||
name | string | 非必须 | |||
parent | null | 非必须 | 父节点id | ||
addr | string | 非必须 | |||
lola | string | 非必须 | |||
contact | string | 非必须 | |||
phone | string | 非必须 | |||
comment | string | 非必须 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ entity_suid | string | 非必须 | 企业suid | ||
├─ name | string | 非必须 | |||
├─ parent | null | 非必须 | 父节点 | ||
├─ addr | string | 非必须 | 地址 | ||
├─ lola | string | 非必须 | 经纬度 | ||
├─ contact | string | 非必须 | 联系人 | ||
├─ phone | string | 非必须 | 联系方式 | ||
├─ comment | string | 非必须 | 备注 | ||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增服务器日志
基本信息
Path: /api/server_log/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
server_id | number | 非必须 | 服务器id | ||
log_level | string | 非必须 | 日志等级 | ||
server_log | string | 非必须 | 日志内容 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ server_id | number | 非必须 | |||
├─ log_level | string | 非必须 | |||
├─ server_log | string | 非必须 | |||
├─ create_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增模型
基本信息
Path: /api/models/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
name | string | 非必须 | 模型名称 | ||
model_type | string | 非必须 | 模型类型,1001/经典算法,1002/深度学习 | ||
classification | number | 非必须 | 分类id | ||
comment | string | 非必须 | 备注 | ||
default_version | string | 非必须 | 默认版本 | ||
provider | string | 非必须 | 提供方 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ model_type | string | 非必须 | |||
├─ classification | number | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ default_version | string | 非必须 | |||
├─ provider | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
├─ classification_name | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增模型分类
基本信息
Path: /api/models_classification/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
name | string | 非必须 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | 分类名 | ||
├─ create_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增模型版本信息
基本信息
Path: /api/models_version/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
model_id | number | 必须 | 模型id | ||
version | string | 必须 | 版本 | ||
comment | string | 非必须 | 备注 | ||
model_file | string | 非必须 | 模型文件的md5 | ||
config_file | string | 非必须 | 模型配置文件的md5 | ||
config_str | string | 非必须 | 模型默认配置参数 | ||
is_default | number | 非必须 | 1/默认,0/非默认 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ model_id | number | 非必须 | |||
├─ version | string | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ model_file | string | 非必须 | |||
├─ config_file | string | 非必须 | |||
├─ config_str | string | 非必须 | |||
├─ is_default | number | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增算力配置
基本信息
Path: /api/compute_config/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
server_id | number | 非必须 | 服务器id | ||
server_suid | string | 非必须 | 服务器suid | ||
device_id | number | 非必须 | 设备id | ||
device_suid | string | 非必须 | 设备suid | ||
node_id | number | 非必须 | 节点id | ||
node_suid | string | 非必须 | 节点suid | ||
model_id | number | 非必须 | 模型id | ||
model_suid | string | 非必须 | 模型suid | ||
percentage | string | 非必须 | 百分比(如30%) |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ server_id | number | 非必须 | |||
├─ server_suid | string | 非必须 | |||
├─ device_id | number | 非必须 | |||
├─ device_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ model_id | number | 非必须 | |||
├─ model_suid | string | 非必须 | |||
├─ percentage | string | 非必须 | |||
├─ efficiency | number | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增设备
基本信息
Path: /api/devices/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
entity_id | number | 非必须 | 企业id | ||
entity_suid | string | 非必须 | 企业suid | ||
node_id | number | 非必须 | 节点id | ||
node_suid | string | 非必须 | 节点suid | ||
classification | string | 非必须 | 设备分类id | ||
name | string | 非必须 | 设备名 | ||
addr | string | 非必须 | 设备地址 | ||
device_model | string | 非必须 | 设备型号 | ||
param | string | 非必须 | 参数 | ||
comment | string | 非必须 | 备注 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ entity_id | number | 非必须 | |||
├─ entity_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ classification | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ addr | string | 非必须 | |||
├─ device_model | string | 非必须 | |||
├─ param | string | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
新增设备分类
基本信息
Path: /api/device_classfication/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
name | string | 非必须 | 设备分类名 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
服务器新增
基本信息
Path: /api/server/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
name | string | 必须 | 服务器名 | ||
banner | null | 非必须 | 图片 | ||
description | null | 非必须 | 描述 | ||
status | number | 非必须 | 1001在线,1002离线 | ||
type | number | 非必须 | 类型 | ||
server_ip | null | 非必须 | ip | ||
server_port | null | 非必须 | port | ||
server_username | null | 非必须 | 服务器登录名 | ||
server_password | null | 非必须 | 登录秘密 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ banner | null | 非必须 | |||
├─ description | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ type | number | 非必须 | |||
├─ server_ip | null | 非必须 | |||
├─ server_port | null | 非必须 | |||
├─ server_username | null | 非必须 | |||
├─ server_password | null | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
├─ state | string | 非必须 | |||
├─ cpu | number | 非必须 | |||
├─ mem | number | 非必须 | |||
├─ storage | number | 非必须 | |||
├─ gpu | number | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
服务器查询
基本信息
Path: /api/server/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 服务器id | |
status | 否 | 在线1001和离线1002 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ banner | null | 非必须 | |||
├─ description | null | 非必须 | |||
├─ status | number | 非必须 | |||
├─ type | number | 非必须 | |||
├─ server_ip | null | 非必须 | |||
├─ server_port | null | 非必须 | |||
├─ server_username | null | 非必须 | |||
├─ server_password | null | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
├─ state | string | 非必须 | 状态中文 | ||
├─ cpu | number | 非必须 | |||
├─ mem | number | 非必须 | |||
├─ storage | number | 非必须 | |||
├─ gpu | number | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
查询用户
基本信息
Path: /api/users/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 查询单个用户详情的id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 必须 | 用户id | ||
├─ username | string | 必须 | 用户名 | ||
├─ avatar | string | 必须 | 头像 | ||
├─ is_superuser | boolean | 必须 | 管理员 | ||
├─ date_joined | string | 必须 | 注册时间 | ||
├─ gender | number | 必须 | |||
├─ phone_number | null | 必须 | 电话号码 | ||
├─ status | number | 必须 | |||
├─ note | string,null | 必须 | 备注 | ||
├─ gender_ch | string | 必须 | 性别 | ||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
登录
基本信息
Path: /api/login/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 | ||
Body |
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
username | text | 是 | 用户名 | |
password | text | 是 | 密码 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
success | boolean | 非必须 | 是否成功 | ||
msg | string | 非必须 | |||
data | object | 非必须 | |||
├─ username | string | 非必须 | |||
├─ roles | string [] | 非必须 | item 类型: string | ||
├─ | 非必须 | ||||
├─ token | string | 非必须 | |||
├─ refresh | string | 非必须 |
节点模型设备新增
基本信息
Path: /api/enterprise_model_node_device/
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
node_id | number | 非必须 | 节点id | ||
busi_model_id | number | 非必须 | 企业模型id | ||
device_ids | string | 非必须 | 设备ids,例"1,2,3"(逗号分割) |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ busi_model_id | number | 非必须 | |||
├─ entity_suid | string | 非必须 | |||
├─ busi_model_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ device_id | number | 非必须 | |||
├─ device_suid | string | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
节点模型设备获取
基本信息
Path: /api/enterprise_model_node_device/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
node_id | 否 | 节点名称 | |
busi_model_id | 否 | 企业模型id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ busi_model_name | string | 非必须 | 企业模型名称 | ||
├─ busi_model_comment | string | 非必须 | 备注 | ||
├─ base_models | string | 非必须 | 关联基础模型 | ||
├─ devices | object [] | 非必须 | item 类型: object | ||
├─ device_id | number | 非必须 | 设备信息 | ||
├─ device_name | string | 非必须 | 设备名称 | ||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取企业信息
基本信息
Path: /api/enterprise/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 企业id查询详情 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ province | string | 非必须 | |||
├─ city | string | 非必须 | |||
├─ addr | string | 非必须 | |||
├─ industry | string | 非必须 | |||
├─ contact | string | 非必须 | |||
├─ phone | string | 非必须 | |||
├─ summary | string | 非必须 | |||
├─ logo | string | 非必须 | |||
├─ account | string | 非必须 | |||
├─ start_valid_date | string | 非必须 | |||
├─ end_valid_date | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取企业关联模型相关信息
基本信息
Path: /api/enterprise_business_model/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 单查 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ entity_id | number | 非必须 | |||
├─ entity_suid | string | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ business_logic | null | 非必须 | |||
├─ business_conf_file | null | 非必须 | |||
├─ business_conf_param | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
├─ basemodel_list | object [] | 非必须 | item 类型: object | ||
├─ id | number | 必须 | |||
├─ suid | string | 必须 | |||
├─ name | string | 必须 | |||
├─ link_node_list | object [] | 非必须 | item 类型: object | ||
├─ node_id | number | 必须 | |||
├─ node_name | string | 必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取企业告警配置
基本信息
Path: /api/enterprise_alert/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 告警配置id | |
enterprise_suid | 否 | 企业suid,查询该企业下所有节点配置 | |
node_id | 否 | 节点id,查询该节点配置 | |
node_suid | 否 | 节点suid |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ enterprise_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ is_sms | number | 非必须 | |||
├─ sms_to | string | 非必须 | |||
├─ is_email | number | 非必须 | |||
├─ email_to | string | 非必须 | |||
├─ freq | string | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取企业节点
基本信息
Path: /api/enterprise_node/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
children | 否 | children=true(返回children字段) | 获取节点及子节点 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ entity_suid | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ parent | null | 非必须 | |||
├─ addr | string | 非必须 | |||
├─ lola | string | 非必须 | |||
├─ contact | string | 非必须 | |||
├─ phone | string | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
├─ children | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ entity_suid | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ parent | number | 非必须 | |||
├─ addr | string | 非必须 | |||
├─ lola | string | 非必须 | |||
├─ contact | string | 非必须 | |||
├─ phone | string | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
├─ children | string [] | 非必须 | item 类型: string | ||
├─ | 非必须 | ||||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取告警
基本信息
Path: /api/warning_statistics/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 单查 | |
warning_level | 否 | 告警等级 | |
server_id | 否 | 服务器id | |
server_suid | 否 | 服务器suid | |
node_id | 否 | 节点id | |
node_suid | 否 | 节点suid | |
device_id | 否 | 设备id | |
device_suid | 否 | 设备suid | |
warning_type | 否 | 告警类型 | |
start_time | 否 | 触发开始时间(和end_time一起) | |
end_time | 否 | 触发结束时间 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ server_id | number | 非必须 | |||
├─ server_suid | string | 非必须 | |||
├─ device_id | number | 非必须 | |||
├─ device_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ picture_path | null | 非必须 | |||
├─ product_name | string | 非必须 | |||
├─ product_info | null | 非必须 | |||
├─ warning_name | string | 非必须 | |||
├─ warning_type | null | 非必须 | |||
├─ warning_code | string | 非必须 | |||
├─ warning_level | string | 非必须 | |||
├─ trigger_time | string | 非必须 | |||
├─ is_ignore | number | 非必须 | |||
├─ is_checked | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取服务器日志
基本信息
Path: /api/server_log/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
server_id | 是 | 需查询日志的服务器id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ server_id | number | 非必须 | 服务器id | ||
├─ log_level | string | 非必须 | 日志等级 | ||
├─ server_log | string | 非必须 | 日志内容 | ||
├─ create_time | string | 非必须 | 创建时间 | ||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取模型
基本信息
Path: /api/models/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 单查模型id | |
classification | 否 | 分类id,查询分类下模型 | |
model_type | 否 | 模型类型,1001/经典算法,1002/深度学习 | |
provider | 否 | 提供方 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ model_type | string | 非必须 | |||
├─ classification | number | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ default_version | string | 非必须 | |||
├─ provider | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
├─ classification_name | string | 非必须 | 模型分类名称 | ||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取模型分类名称
基本信息
Path: /api/models_classification/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 分类id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ create_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取模型版本信息
基本信息
Path: /api/models_version/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 单查 | |
model_id | 否 | 查询该模型所有版本信息 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ model_id | number | 非必须 | |||
├─ version | string | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ model_file | string | 非必须 | |||
├─ config_file | string | 非必须 | |||
├─ config_str | string | 非必须 | |||
├─ is_default | number | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取算力配置
基本信息
Path: /api/compute_config/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
server_id | 否 | 服务器id | |
server_suid | 否 | 服务器suid | |
node_id | 否 | 节点id | |
node_suid | 否 | 节点suid | |
device_id | 否 | 设备id | |
device_suid | 否 | 设备suid | |
model_id | 否 | 模型id | |
model_suid | 否 | 模型suid |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ server_id | number | 非必须 | |||
├─ server_suid | string | 非必须 | |||
├─ device_id | number | 非必须 | |||
├─ device_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ model_id | number | 非必须 | |||
├─ model_suid | string | 非必须 | |||
├─ percentage | string | 非必须 | |||
├─ efficiency | number | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取设备
基本信息
Path: /api/devices/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 单查 | |
suid | 否 | 设备suid,单查 | |
entity_id | 否 | 企业id | |
entity_suid | 否 | 企业suid | |
node_id | 否 | 节点id | |
node_suid | 否 | 节点suid | |
classification | 否 | 设备分类id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ entity_id | number | 非必须 | |||
├─ entity_suid | string | 非必须 | |||
├─ node_id | number | 非必须 | |||
├─ node_suid | string | 非必须 | |||
├─ classification | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ addr | string | 非必须 | |||
├─ device_model | string | 非必须 | |||
├─ param | string | 非必须 | |||
├─ comment | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |
获取设备分类
基本信息
Path: /api/device_classfication/
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 否 | 单查 | |
name | 否 | 分类名 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ next | null | 非必须 | |||
├─ previous | null | 非必须 | |||
├─ results | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ suid | string | 非必须 | |||
├─ status | number | 非必须 | |||
├─ create_time | string | 非必须 | |||
├─ update_time | string | 非必须 | |||
msg | null | 非必须 | |||
success | boolean | 非必须 | |||
status | number | 非必须 |