openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_MEMORY_INFO:
    post:
      tags:
      - TREX_RFC_TOOLS
      summary: get memory info of os (osstat)
      operationId: /rfc/TREX_RFC_GET_MEMORY_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                HOST:
                  type: string
                  format: byte
                OS_INFORMATION:
                  type: array
                  items:
                    type: object
                    properties:
                      HOST:
                        type: string
                        format: byte
                        description: ''
                      TOTAL_MEMORY:
                        type: integer
                        format: int64
                        description: KB
                      FREE_MEMORY:
                        type: integer
                        format: int64
                        description: KB
                      TOTAL_SWAP:
                        type: integer
                        format: int64
                        description: KB
                      FREE_SWAP:
                        type: integer
                        format: int64
                        description: KB
                      LOADAVG_1:
                        type: integer
                        format: int64
                        description: ''
                      LOADAVG_5:
                        type: integer
                        format: int64
                        description: ''
                      LOADAVG_15:
                        type: integer
                        format: int64
                        description: ''
                      SYSTEM_TIME:
                        type: integer
                        format: int64
                        description: mili sec
                      IDLE_TIME:
                        type: integer
                        format: int64
                        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  OS_INFORMATION:
                    type: array
                    items:
                      type: object
                      properties:
                        HOST:
                          type: string
                          format: byte
                          description: ''
                        TOTAL_MEMORY:
                          type: integer
                          format: int64
                          description: KB
                        FREE_MEMORY:
                          type: integer
                          format: int64
                          description: KB
                        TOTAL_SWAP:
                          type: integer
                          format: int64
                          description: KB
                        FREE_SWAP:
                          type: integer
                          format: int64
                          description: KB
                        LOADAVG_1:
                          type: integer
                          format: int64
                          description: ''
                        LOADAVG_5:
                          type: integer
                          format: int64
                          description: ''
                        LOADAVG_15:
                          type: integer
                          format: int64
                          description: ''
                        SYSTEM_TIME:
                          type: integer
                          format: int64
                          description: mili sec
                        IDLE_TIME:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
