123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- {
- "apiVersion": "1.0",
- "apis": [
- {
- "description": "getElementByRoomId",
- "operations": [
- {
- "method": "POST",
- "summary": "获取机房下元素.",
- "notes": "获取机房下元素",
- "nickname": "getElementByRoomId",
- "produces": [
- "*/*"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "roomId",
- "name": "roomId",
- "paramType": "path",
- "type": "string",
- "required": true
- },
- {
- "allowMultiple": false,
- "description": "_openCLIENT 默认值是RIIL",
- "name": "_openCLIENT",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "机房元素数据"
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "机房元素数据"
- }
- ],
- "path": "/room/getElement/{roomId}"
- },
- {
- "description": "getAllRoom",
- "operations": [
- {
- "method": "POST",
- "summary": "获取所有机房.",
- "notes": "获取所有机房",
- "nickname": "getAllRoom",
- "produces": [
- "*/*"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "description": "_openCLIENT 默认值是RIIL",
- "name": "_openCLIENT",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "机房列表数据"
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "机房列表数据"
- }
- ],
- "path": "/room/getRoom"
- }
- ],
- "basePath": "/adapter",
- "consumes": [
- "application/json"
- ],
- "models": {
- "获取登录信息": {
- "description": "",
- "id": "获取登录信息",
- "properties": {
- "_openCLIENT": {
- "description": "_openCLIENT 默认值是RIIL",
- "required": true,
- "type": "string"
- }
- }
- },
- "机房元素数据": {
- "description": "",
- "id": "机房元素数据",
- "properties": {
- "elementPojoList": {
- "description": "ElementVO 对象集合",
- "items": {
- "type": "RoomElementVO"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "RoomElementVO": {
- "description": "",
- "id": "RoomElementVO",
- "properties": {
- "value": {
- "required": false,
- "type": "string"
- },
- "time": {
- "required": false,
- "format": "date-time",
- "type": "string"
- },
- "roomId": {
- "required": false,
- "type": "string"
- },
- "isCross": {
- "required": false,
- "format": "byte",
- "type": "string"
- },
- "elementName": {
- "required": false,
- "type": "string"
- },
- "metricId": {
- "required": false,
- "type": "string"
- },
- "metricName": {
- "required": false,
- "type": "string"
- },
- "unit": {
- "required": false,
- "type": "string"
- },
- "metricDefinitionId": {
- "required": false,
- "type": "string"
- },
- "elementDefinitionName": {
- "required": false,
- "type": "string"
- },
- "elementDisplayName": {
- "required": false,
- "type": "string"
- },
- "metricDefinitionName": {
- "required": false,
- "type": "string"
- },
- "dataType": {
- "required": false,
- "type": "string"
- },
- "elementDefinitionId": {
- "required": false,
- "type": "string"
- }
- }
- },
- "RoomVO": {
- "description": "",
- "id": "RoomVO",
- "properties": {
- "id": {
- "required": false,
- "type": "string"
- },
- "displayName": {
- "required": false,
- "type": "string"
- },
- "level": {
- "required": false,
- "type": "string"
- },
- "rackCount": {
- "required": false,
- "format": "int32",
- "type": "integer"
- },
- "resCount": {
- "required": false,
- "format": "int32",
- "type": "integer"
- },
- "capacity": {
- "required": false,
- "format": "int32",
- "type": "integer"
- },
- "usedCapacity": {
- "required": false,
- "format": "int32",
- "type": "integer"
- },
- "usedCapacityRate": {
- "required": false,
- "format": "double",
- "type": "number"
- },
- "area": {
- "required": false,
- "format": "double",
- "type": "number"
- }
- }
- },
- "机房列表数据": {
- "description": "",
- "id": "机房列表数据",
- "properties": {
- "roomVOList": {
- "description": "RoomVO 对象集合",
- "items": {
- "type": "RoomVO"
- },
- "required": false,
- "type": "array"
- }
- }
- }
- },
- "produces": [
- "*/*"
- ],
- "resourcePath": "/room",
- "swaggerVersion": "1.2"
- }
|