openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAPWL_ACCNT_GET_SYSTEM_USAGE:
    post:
      tags:
      - STUW
      operationId: /rfc/SAPWL_ACCNT_GET_SYSTEM_USAGE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  maxLength: 3
                  description: Client (no specification or '*' = all clients)
                CUMULATION_MODE:
                  type: string
                  default: U
                  maxLength: 1
                  description: Accumulation mode
                INSTANCE:
                  type: string
                  maxLength: 39
                  description: Period type
                INSTID:
                  type: string
                  maxLength: 8
                  description: Period type
                PERIODTYPE:
                  type: string
                  maxLength: 1
                  description: Period type
                STARTDATE:
                  type: string
                  format: date
                  description: Period start date
                STATISTIC:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: 'SAP Workload: Client'
                      USER_ACCNT:
                        type: string
                        maxLength: 12
                        description: 'SAP Workload: User name or account'
                      STEPS:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Total no. dialog steps across all task types'
                      DSTEPS:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Dialog steps, task type dialog'
                      USTEPS:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Dialog steps, task type update'
                      BSTEPS:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Dialog steps, task type background processing'
                      RESP_TIME:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Total response time (ms)'
                      QUEUE_TIME:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Total waiting time in dispatcher queue (ms)'
                      CPU_TIME:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Total CPU time (ms)'
                      A_DB_TIME:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Net application database access time (ms)'
                      S_DB_TIME:
                        type: integer
                        format: int64
                        description: 'SAP Workload: System database access time (ms)'
                      A_DATA_VOL:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Net application data volumes (KB)'
                      S_DATA_VOL:
                        type: integer
                        format: int64
                        description: 'SAP Workload: System data volumes (KB)'
                USER_ACCOUNT_RELATION:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      BNAME:
                        type: string
                        maxLength: 12
                        description: User Name in User Master Record
                      ACCNT:
                        type: string
                        maxLength: 12
                        description: Account ID
              required:
              - PERIODTYPE
              - STARTDATE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  STATISTIC:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: 'SAP Workload: Client'
                        USER_ACCNT:
                          type: string
                          maxLength: 12
                          description: 'SAP Workload: User name or account'
                        STEPS:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Total no. dialog steps across all task types'
                        DSTEPS:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Dialog steps, task type dialog'
                        USTEPS:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Dialog steps, task type update'
                        BSTEPS:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Dialog steps, task type background processing'
                        RESP_TIME:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Total response time (ms)'
                        QUEUE_TIME:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Total waiting time in dispatcher queue (ms)'
                        CPU_TIME:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Total CPU time (ms)'
                        A_DB_TIME:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Net application database access time (ms)'
                        S_DB_TIME:
                          type: integer
                          format: int64
                          description: 'SAP Workload: System database access time (ms)'
                        A_DATA_VOL:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Net application data volumes (KB)'
                        S_DATA_VOL:
                          type: integer
                          format: int64
                          description: 'SAP Workload: System data volumes (KB)'
                  USER_ACCOUNT_RELATION:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        BNAME:
                          type: string
                          maxLength: 12
                          description: User Name in User Master Record
                        ACCNT:
                          type: string
                          maxLength: 12
                          description: Account ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
