openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAPWL_GET_STATDIR_FRAME:
    post:
      tags:
      - SAPWL_GLOB_STAT
      operationId: /rfc/SAPWL_GET_STATDIR_FRAME
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SELECT_FROM_SYSTEMS:
                  type: array
                  items:
                    type: object
                    properties:
                      SELECT_SYS:
                        type: string
                        maxLength: 32
                        description: 'SAP Workload: SystemID(GUID) in Distributed System Landscape'
                WAIT_SECONDS:
                  type: integer
                  format: int32
                  description: Waiting time (secs)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ALLDIRECTORIES:
                    type: array
                    items:
                      type: object
                      properties:
                        SYSTEMID:
                          type: string
                          maxLength: 32
                          description: 'SAP Workload: SystemID(GUID) in Distributed System Landscape'
                        TMZONE:
                          type: string
                          maxLength: 6
                          description: Time Zone
                        ALLDIR:
                          type: array
                          items:
                            type: object
                            properties:
                              LONGINST:
                                type: string
                                maxLength: 32
                                description: 'SAP Workload: Long Name of SAP Instance'
                              STARTDATE:
                                type: string
                                format: date
                                description: 'SAP Workload: Start date of meas. period'
                              PERIODTYPE:
                                type: string
                                maxLength: 1
                                description: 'SAP Workload: Period type'
                              HOSTID:
                                type: string
                                maxLength: 8
                                description: Verkürzter Hostnamen
                              FIRSTRECTI:
                                type: string
                                maxLength: 6
                                description: 'SAP Workload: Workload: Time, first statistics record'
                              FIRSTRECDY:
                                type: string
                                format: date
                                description: 'SAP Workload: Workload: Date, first statistics record'
                              LASTRECTI:
                                type: string
                                maxLength: 6
                                description: 'SAP Workload: Workload: Time, last statistics record'
                              LASTRECDY:
                                type: string
                                format: date
                                description: 'SAP Workload: Workload: Date, last statistics record'
                  RETURN_ERRORS:
                    type: array
                    items:
                      type: object
                      properties:
                        SYSTEMID:
                          type: string
                          maxLength: 32
                          description: 'SAP Workload: SystemID(GUID) in Distributed System Landscape'
                        SERVERNAME:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        EOFREACHED:
                          type: string
                          maxLength: 1
                          description: 'SAP Workload: Workload: flag ('' '' or ''X'')'
                        ERROR_TEXT:
                          type: string
                          maxLength: 128
                          description: 'SAP Workload: Statistic collector: Error message'
                        RECS_READ:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Statistic collector: number of records read'
                        RC:
                          type: integer
                          format: int32
                          description: 'Alert: Return Code'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
