openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_TABHIST:
    post:
      tags:
      - SFMSS_SIZE
      summary: Get the table size history for a given table
      operationId: /rfc/MSS_GET_TABHIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                CURR_SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema for which to get the history
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema name
                TABNAME:
                  type: string
                  maxLength: 128
                  description: Table name
                TABSTATS_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      TABLENAME:
                        type: string
                        maxLength: 128
                        description: Table name
                      SAMPLEDATE:
                        type: string
                        format: date
                        description: Sample date for table history
                      SAMPLETIME:
                        type: string
                        maxLength: 6
                        description: Sample time for table size history
                      TOTALROWS:
                        type: integer
                        format: int64
                        description: Number of rows
                      DATASIZE:
                        type: integer
                        format: int64
                        description: Data size in KB
                      RESERVED:
                        type: integer
                        format: int64
                        description: Reserved size in KB
                      INDEXSIZE:
                        type: integer
                        format: int64
                        description: Index size in KB
                      ROWMODCTR:
                        type: integer
                        format: int32
                        description: Row modification counter
                      STATSSCHVER:
                        type: integer
                        format: int32
                        description: Statistics schema version
                      INDEXDEPTH:
                        type: integer
                        format: int32
                        description: Depth
                      NUMINDEXES:
                        type: integer
                        format: int32
                        description: Number of indexes of a table
                      NUMSTATS:
                        type: integer
                        format: int32
                        description: Number of statistics of a table
                      STATSDATE:
                        type: string
                        maxLength: 20
                        description: Last update statistics
                      TABLEOPTIONS:
                        type: string
                        maxLength: 10
                        description: Table options on locking and memory
                      LASTDURATION:
                        type: integer
                        format: int32
                        description: Execution duration of table size checks
              required:
              - TABNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TABSTATS_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        TABLENAME:
                          type: string
                          maxLength: 128
                          description: Table name
                        SAMPLEDATE:
                          type: string
                          format: date
                          description: Sample date for table history
                        SAMPLETIME:
                          type: string
                          maxLength: 6
                          description: Sample time for table size history
                        TOTALROWS:
                          type: integer
                          format: int64
                          description: Number of rows
                        DATASIZE:
                          type: integer
                          format: int64
                          description: Data size in KB
                        RESERVED:
                          type: integer
                          format: int64
                          description: Reserved size in KB
                        INDEXSIZE:
                          type: integer
                          format: int64
                          description: Index size in KB
                        ROWMODCTR:
                          type: integer
                          format: int32
                          description: Row modification counter
                        STATSSCHVER:
                          type: integer
                          format: int32
                          description: Statistics schema version
                        INDEXDEPTH:
                          type: integer
                          format: int32
                          description: Depth
                        NUMINDEXES:
                          type: integer
                          format: int32
                          description: Number of indexes of a table
                        NUMSTATS:
                          type: integer
                          format: int32
                          description: Number of statistics of a table
                        STATSDATE:
                          type: string
                          maxLength: 20
                          description: Last update statistics
                        TABLEOPTIONS:
                          type: string
                          maxLength: 10
                          description: Table options on locking and memory
                        LASTDURATION:
                          type: integer
                          format: int32
                          description: Execution duration of table size checks
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
