openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAPTUNE_BUFFER_QUALITIES:
    post:
      tags:
      - STUB
      operationId: /rfc/SAPTUNE_BUFFER_QUALITIES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BUFFER_STATISTIC:
                  type: object
                  properties:
                    ALLOC_SIZE:
                      type: integer
                      format: int32
                      description: Size of allocated address space
                    AVAIL_SIZE:
                      type: integer
                      format: int32
                      description: Storage space available
                    FRAME_SIZE:
                      type: integer
                      format: int32
                      description: Length of the buffer frames
                    MAX_OBJCTS:
                      type: integer
                      format: int32
                      description: Maximum no. of objects
                    HASH_WIDTH:
                      type: integer
                      format: int32
                      description: Width of hashing values used
                    CUT_VALUE:
                      type: integer
                      format: int32
                      description: Cut value
                    ACT_OBJCTS:
                      type: integer
                      format: int32
                      description: No. of active objects
                    CON_OBJCTS:
                      type: integer
                      format: int32
                      description: No. of known objects
                    USED_SPACE:
                      type: integer
                      format: int32
                      description: Storage space used by active objects
                    MAX_FRMES:
                      type: integer
                      format: int32
                      description: Max. no. of frames available
                    ALLOC_FRMS:
                      type: integer
                      format: int32
                      description: Number of frames used
                    REQUEST:
                      type: integer
                      format: int32
                      description: No. of object requests to the buffer
                    HIT:
                      type: integer
                      format: int32
                      description: No. of successful request
                    OBJ_N_FND:
                      type: integer
                      format: int32
                      description: No. of failed requests
                    INSERT:
                      type: integer
                      format: int32
                      description: Number of buffer inserts
                    UPDATE:
                      type: integer
                      format: int32
                      description: No. of object changes
                    REQ_DELETE:
                      type: integer
                      format: int32
                      description: No. of delete requests for an object from the buffer
                    DELETE:
                      type: integer
                      format: int32
                      description: No. of invalidated objects
                    FREE_OBJCT:
                      type: integer
                      format: int32
                      description: No. of objects released from the buffer
                    DB_ACCESS:
                      type: integer
                      format: int32
                      description: No. of database accesses
                    DB_ACC_SVD:
                      type: integer
                      format: int32
                      description: No. of database accesses saved
                    REORG:
                      type: integer
                      format: int32
                      description: No. of buffer compact./reorg.
                    SWAP:
                      type: integer
                      format: int32
                      description: No. of objects swapped
                    SWAP_FRAME:
                      type: integer
                      format: int32
                      description: No. of frames swapped
                    SEARCH:
                      type: integer
                      format: int32
                      description: No. of search operations
                    SEARCH_INS:
                      type: integer
                      format: int32
                      description: No. of search operations during roll-in
                    SUM_SIZE:
                      type: integer
                      format: int32
                      description: Sum of the sizes of the rolled-in objects
                    SUM_SIZE2:
                      type: integer
                      format: int32
                      description: Sum of sizes of rolled-in objects (power of 2)
                    MAX_SIZE:
                      type: integer
                      format: int32
                      description: Maximum objet size
                    MIN_SIZE:
                      type: integer
                      format: int32
                      description: Minimum object size
                    REFRESH:
                      type: integer
                      format: int32
                      description: Counter for the number of buffer refreshes
                    SIZE_UNIT:
                      type: integer
                      format: int32
                      description: 'Unit used if # kB'
                    RESERVE:
                      type: integer
                      format: int32
                      description: Natural number
                    ALLOC:
                      type: string
                      maxLength: 1
                      description: 'Storage class  enumValues: L=Local,S=Shared'
                      enum:
                      - L
                      - S
                    SMODE:
                      type: string
                      maxLength: 1
                      description: 'Search procedure  enumValues: B=Binary search,H=Hash procedure,L=Linear search,T=Search tree,-=Access via index, no search'
                      enum:
                      - B
                      - H
                      - L
                      - T
                      - '-'
                    UP_TIME:
                      type: string
                      maxLength: 14
                      description: Start time for statistics
                    LAST_REFR:
                      type: string
                      maxLength: 14
                      description: Time of last buffer refresh
                    NAME:
                      type: string
                      maxLength: 5
                      description: 'Area name  enumValues: SNTAB=Short Nametab,TTAB=Table description,TABLP=Partial table buffer,CCST=SAP cursor cache, statements,PXA=ABAP/4 programs,PRES=Presentation (Dynpro, CUA),CUA=CUA buffer,IRBD=Initial record layout,FTAB=Field catalog,CCID=SAP Cursor Cache, IDs,RP=Roll and paging area,CALE=Calendar buffer,TABL=Generic table buffer'
                      enum:
                      - SNTAB
                      - TTAB
                      - TABLP
                      - CCST
                      - PXA
                      - PRES
                      - CUA
                      - IRBD
                      - FTAB
                      - CCID
                      - RP
                      - CALE
                      - TABL
                BUFFER_STATISTIC_64:
                  type: object
                  properties:
                    ALLOC_SIZE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    AVAIL_SIZE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    FRAME_SIZE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    MAX_OBJCTS:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    HASH_WIDTH:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    CUT_VALUE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    ACT_OBJCTS:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    CON_OBJCTS:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    USED_SPACE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    MAX_FRMES:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    ALLOC_FRMS:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    REQUEST:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    HIT:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    OBJ_N_FND:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    INSERT:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    UPDATE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    REQ_DELETE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    DELETE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    FREE_OBJCT:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    DB_ACCESS:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    DB_ACC_SVD:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    REORG:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    SWAP:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    SWAP_FRAME:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    SEARCH:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    SEARCH_INS:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    SUM_SIZE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    SUM_SIZE2:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    MAX_SIZE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    MIN_SIZE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    REFRESH:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    SIZE_UNIT:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    RESERVE:
                      type: integer
                      format: int64
                      description: 64 Bit Integer with Prefix
                    ALLOC:
                      type: string
                      maxLength: 1
                      description: 'Storage class  enumValues: L=Local,S=Shared'
                      enum:
                      - L
                      - S
                    SMODE:
                      type: string
                      maxLength: 1
                      description: 'Search procedure  enumValues: B=Binary search,H=Hash procedure,L=Linear search,T=Search tree,-=Access via index, no search'
                      enum:
                      - B
                      - H
                      - L
                      - T
                      - '-'
                    UP_TIME:
                      type: string
                      maxLength: 14
                      description: Start time for statistics
                    LAST_REFR:
                      type: string
                      maxLength: 14
                      description: Time of last buffer refresh
                    NAME:
                      type: string
                      maxLength: 5
                      description: 'Area name  enumValues: SNTAB=Short Nametab,TTAB=Table description,TABLP=Partial table buffer,CCST=SAP cursor cache, statements,PXA=ABAP/4 programs,PRES=Presentation (Dynpro, CUA),CUA=CUA buffer,IRBD=Initial record layout,FTAB=Field catalog,CCID=SAP Cursor Cache, IDs,RP=Roll and paging area,CALE=Calendar buffer,TABL=Generic table buffer'
                      enum:
                      - SNTAB
                      - TTAB
                      - TABLP
                      - CCST
                      - PXA
                      - PRES
                      - CUA
                      - IRBD
                      - FTAB
                      - CCID
                      - RP
                      - CALE
                      - TABL
              required:
              - BUFFER_STATISTIC
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  QUALITIES:
                    type: object
                    properties:
                      HITRATIO:
                        type: integer
                        format: int64
                        description: Hit rate SAP buffer
                      DB_QUALITY:
                        type: integer
                        format: int64
                        description: Quality of the SAP buffer (DB interface)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
