Resource Management
RMMonitorRest class
Interface address:/api/rest_j/v1/linkisManager/rm/allUserResource
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
All user resources
Request Parameters:
Parameter name | Parameter description | Request type | Required | Data type | schema |
---|---|---|---|---|---|
creator | creator | query | false | string | |
engineType | engineType | query | false | string | |
page | page | query | false | integer(int32) | |
size | size | query | false | integer(int32) | |
username | username | query | false | string |
Response Status:
Status code | Description | schema |
---|---|---|
200 | OK | Message |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
Response parameters:
parameter name | parameter description | type | schema |
---|---|---|---|
data | Dataset | object | |
message | Description | string | |
method | request url | string | |
status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"method": null,
"status": 0,
"message": "OK",
"data": {
"total": 34,
"resources": [{
"id": ,
"username": "",
"creator": "",
"engineTypeWithVersion": "",
"resourceType": "",
"maxResource": {
"memory": ,
"cores": ,
"instance":
},
"minResource": {
"memory": ,
"cores": "instance": 0
},
"usedResource": {
"memory": ,
"cores": ,
"instance":
},
"lockedResource": {
"memory": 0,
"cores": 0,
"instance": 0
},
"expectedResource": null,
"leftResource": {
"memory": ,
"cores": ,
"instance":
},
"createTime": ,
"updateTime": ,
"loadResourceStatus": "",
"queueResourceStatus":
}]
}
}
Interface address: /api/rest_j/v1/linkisManager/rm/applicationlist
Request method: POST
Request data type: application/json
Response data type: */*
Interface description:
Get the list of application engines in resource management
Request example:
{
userCreator: ""
}
Request Parameters:
Parameter name | Parameter description | Request type | Required | Data type | schema |
---|---|---|---|---|---|
userCreator | userCreator | query | true | String |
Response Status:
Status code | Description | schema |
---|---|---|
200 | OK | Message |
201 | Created | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
Response parameters:
parameter name | parameter description | type | schema |
---|---|---|---|
data | Dataset | object | |
message | Description | string | |
method | request url | string | |
status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"method": ,
"status": ,
"message": "",
"data": {
"applications": [{
"creator": "",
"applicationList": {
"usedResource": {
"memory": ,
"cores": ,
"instance":
},
"maxResource": {
"memory": ,
"cores": ,
"instance":
},
"lockedResource": {
"memory": ,
"cores": ,
"instance":
},
"minResource": {
"memory": ,
"cores": ,
"instance":
},
"engineInstances": [{
"resource": {
"resourceType": "",
"maxResource": {
"memory": ,
"cores": ,
"instance":
},
"minResource": {
"memory": ,
"cores": ,
"instance":
},
"usedResource": {
"memory": ,
"cores": ,
"instance":
},
"lockedResource": {
"memory": ,
"cores": ,
"instance":
},
"expectedResource": null,
"leftResource": {
"memory": ,
"cores": ,
"instance":
}
},
"engineType": "",
"owner": "",
"instance": "",
"creator": "",
"startTime": "",
"status": "",
"label": ""
}]
}
}]
}
}
Interface address: /api/rest_j/v1/linkisManager/rm/engineType
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface Description:
Engine Type
Request Parameters:
No
Response Status:
Status code | Description | schema |
---|---|---|
200 | OK | Message |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
Response parameters:
parameter name | parameter description | type | schema |
---|---|---|---|
data | Dataset | object | |
message | Description | string | |
method | request url | string | |
status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Interface address: /api/rest_j/v1/linkisManager/rm/engines
Request method: POST
Request data type: application/json
Response data type: */*
Interface Description:
Engine Manager
Request Parameters:
Parameter name | Parameter description | Request type | Required | Data type | schema |
---|---|---|---|---|---|
param | param | body | false | object |
Response Status:
Status code | Description | schema |
---|---|---|
200 | OK | Message |
201 | Created | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
Response parameters:
parameter name | parameter description | type | schema |
---|---|---|---|
data | Dataset | object | |
message | Description | string | |
method | request url | string | |
status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Interface address: /api/rest_j/v1/linkisManager/rm/queueresources
Request method: POST
Request data type: application/json
Response data type: */*
Interface description:
Queue Manager
Request Parameters:
Parameter name | Parameter description | Request type | Required | Data type | schema |
---|---|---|---|---|---|
param | param | body | true | object |
Response Status:
Status code | Description | schema |
---|---|---|
200 | OK | Message |
201 | Created | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
Response parameters:
parameter name | parameter description | type | schema |
---|---|---|---|
data | Dataset | object | |
message | Description | string | |
method | request url | string | |
status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Interface address: /api/rest_j/v1/linkisManager/rm/queues
Request method: POST
Request data type: application/json
Response data type: */*
Interface description:
Queue
Request Parameters:
Parameter name | Parameter description | Request type | Required | Data type | schema |
---|---|---|---|---|---|
param | param | body | false | object |
Response Status:
Status code | Description | schema |
---|---|---|
200 | OK | Message |
201 | Created | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
Response parameters:
parameter name | parameter description | type | schema |
---|---|---|---|
data | Dataset | object | |
message | Description | string | |
method | request url | string | |
status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Interface address:/api/rest_j/v1/linkisManager/rm/resetResource
Request method: DELETE
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Reset resources
Request Parameters:
Parameter name | Parameter description | Request type | Required | Data type | schema |
---|---|---|---|---|---|
resourceId | resourceId | query | false | integer(int32) |
Response Status:
Status code | Description | schema |
---|---|---|
200 | OK | Message |
204 | No Content | |
401 | Unauthorized | |
403 | Forbidden |
Response parameters:
parameter name | parameter description | type | schema |
---|---|---|---|
data | Dataset | object | |
message | Description | string | |
method | request url | string | |
status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Interface address: /api/rest_j/v1/linkisManager/rm/userresources
Request method: POST
Request data type: application/json
Response data type: */*
Interface description:
Query resource list and detailed resource data such as usage percentage
Request Parameters:
Parameter name | Parameter description | Request type | Required | Data type | schema |
---|---|---|---|---|---|
param | param | body | false | object |
Response Status:
Status code | Description | schema |
---|---|---|
200 | OK | Message |
201 | Created | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
Response parameters:
parameter name | parameter description | type | schema |
---|---|---|---|
data | Dataset | object | |
message | Description | string | |
method | request url | string | |
status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"method": null,
"status": 0,
"message": "OK",
"data": {
"userResources": [{
"userCreator": "",
"engineTypes": [{
"engineType": "",
"percent": ""
}],
"percent": ""
}]
}
}