openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_SERVICE_STATISTICS:
    post:
      tags:
      - TREX_RFC_ADMINISTRATION
      summary: get service statistics
      operationId: /rfc/TREX_RFC_SERVICE_STATISTICS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SERVICE_STATISTIC:
                  type: array
                  items:
                    type: object
                    properties:
                      LOCATION:
                        type: string
                        format: byte
                        description: ''
                      PROCESS_MEMORY:
                        type: integer
                        format: int64
                        description: process memory (in KB)
                      TOTAL_MEMORY:
                        type: integer
                        format: int64
                        description: total memory in (KB)
                      AVAILABLE_MEMORY:
                        type: integer
                        format: int64
                        description: ''
                      TOTAL_CPU:
                        type: integer
                        format: int64
                        description: process CPU for each service (in % )
                      PROCESS_CPU:
                        type: integer
                        format: int64
                        description: total CPU use for all processes (in % )
                      RESPONSE_TIME:
                        type: integer
                        format: int64
                        description: ''
                      REQUEST_SEC:
                        type: integer
                        format: int64
                        description: request per second
                      FINISHED_REQUEST1:
                        type: integer
                        format: int64
                        description: ''
                      FINISHED_REQUEST2:
                        type: integer
                        format: int64
                        description: ''
                      ACTIVE_REQUESTS:
                        type: integer
                        format: int64
                        description: ''
                      PENDING_REQUESTS:
                        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
                  SERVICE_STATISTIC:
                    type: array
                    items:
                      type: object
                      properties:
                        LOCATION:
                          type: string
                          format: byte
                          description: ''
                        PROCESS_MEMORY:
                          type: integer
                          format: int64
                          description: process memory (in KB)
                        TOTAL_MEMORY:
                          type: integer
                          format: int64
                          description: total memory in (KB)
                        AVAILABLE_MEMORY:
                          type: integer
                          format: int64
                          description: ''
                        TOTAL_CPU:
                          type: integer
                          format: int64
                          description: process CPU for each service (in % )
                        PROCESS_CPU:
                          type: integer
                          format: int64
                          description: total CPU use for all processes (in % )
                        RESPONSE_TIME:
                          type: integer
                          format: int64
                          description: ''
                        REQUEST_SEC:
                          type: integer
                          format: int64
                          description: request per second
                        FINISHED_REQUEST1:
                          type: integer
                          format: int64
                          description: ''
                        FINISHED_REQUEST2:
                          type: integer
                          format: int64
                          description: ''
                        ACTIVE_REQUESTS:
                          type: integer
                          format: int64
                          description: ''
                        PENDING_REQUESTS:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
