openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPI_STAT_READ_STAT_OF_ONE_TYPE:
    post:
      tags:
      - SPI_STAT_COLLECTOR
      operationId: /rfc/SPI_STAT_READ_STAT_OF_ONE_TYPE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IP_STAT_TYPE:
                  type: integer
                  format: int32
                CT_STAT_MODULE_PARMS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      DESTINATION:
                        type: string
                        maxLength: 32
                        description: Destination for a Step
                      LOCAL_SERVER:
                        type: string
                        maxLength: 40
                        description: 'SPI: Server Name'
                      DSR_CNAME:
                        type: string
                        maxLength: 32
                        description: 'DSR Statistics: Name of a Non-R/3 Component'
                      DSR_CTYP:
                        type: string
                        maxLength: 10
                        description: 'DSR Statistics: Type of Non-R/3 Component'
                      STATTYPE:
                        type: integer
                        format: int32
                        description: Type of Statistics to be Used
                      READSTARTDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      READSTARTTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      READENDDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      READENDTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      READ_DONE:
                        type: integer
                        format: int32
                        description: 'Global SPI: Boolean Value'
                      TRANSIDS:
                        type: array
                        items:
                          type: object
                          properties:
                            TRANSID:
                              type: string
                              maxLength: 32
                              description: 'SAP Workload: Workload: Transaction ID'
                ET_ALL_STATS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      DESTINATION:
                        type: string
                        maxLength: 32
                        description: Destination for a Step
                      STATTYPE:
                        type: integer
                        format: int32
                        description: Type of Statistics to be Used
                      STATGUID:
                        type: string
                        maxLength: 32
                        description: 'SAP Workload: Workload: Transaction ID'
                      STATCNT:
                        type: integer
                        format: int32
                        description: Natural number
                      STARTTIME1:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Time in raw-statisticrecord in Seconds'
                      STARTTIME2:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Time in raw-statisticrecord in Microseconds'
                      ENDTIME1:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Time in raw-statisticrecord in Seconds'
                      ENDTIME2:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Time in raw-statisticrecord in Microseconds'
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      ACCOUNT:
                        type: string
                        maxLength: 32
                        description: 'DSR Statistics: User Name'
                      RESPTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: Response time in micro seconds'
                      CPUTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: CPU Time in Microseconds (Float Value from C)'
                      READSEQTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: DB Times in Microseconds (Float Value from C)'
                      READDIRTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      DELTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      UPDTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      INSTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      COMMITTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      READDIRCNT:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      READSEQCNT:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      INSCNT:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      UPDCNT:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      DELCNT:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      DBPROCTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      DBPROCCNT:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      RFCTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      ROLLED_OUT:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: Wait time in status "Rolled out"'
                      GENERATETI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      REPLOADTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      CUALOADTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      DYNPLOADTI:
                        type: integer
                        format: int64
                        description: 'SAP Workload: Workload: integer without a leading sign'
                      DSRUSER:
                        type: string
                        maxLength: 32
                        description: 'DSR Statistics: User Name'
                      CPUTIME:
                        type: integer
                        format: int32
                        description: 'DSR Statistics: Time in Milliseconds'
                      RESPTIME:
                        type: integer
                        format: int32
                        description: 'DSR Statistics: Time in Milliseconds'
                      WAITTIME:
                        type: integer
                        format: int32
                        description: 'DSR Statistics: Time in Milliseconds'
                ET_NEW_COL_PARS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      DESTINATION:
                        type: string
                        maxLength: 32
                        description: Destination for a Step
                      LOCAL_SERVER:
                        type: string
                        maxLength: 40
                        description: 'SPI: Server Name'
                      DSR_CNAME:
                        type: string
                        maxLength: 32
                        description: 'DSR Statistics: Name of a Non-R/3 Component'
                      DSR_CTYP:
                        type: string
                        maxLength: 10
                        description: 'DSR Statistics: Type of Non-R/3 Component'
                      STATTYPE:
                        type: integer
                        format: int32
                        description: Type of Statistics to be Used
                      READENDDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      READENDTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      TRANSID:
                        type: string
                        maxLength: 32
                        description: 'SAP Workload: Workload: Transaction ID'
                      TIMETOLIVE:
                        type: integer
                        format: int64
                        description: 'PMI: Lifetime for Collector Parameters (Reading TIDs)'
                ET_READ_RESULTS:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPONENT:
                        type: string
                        maxLength: 32
                        description: 'DSR Statistics: Name of a Non-R/3 Component'
                      SERVERNAME:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      RECS_FOUND:
                        type: integer
                        format: int32
                        description: 'SAP Workload: Statistic collector: number of records read'
                      ERROR_TEXT:
                        type: string
                        maxLength: 128
                        description: 'SAP Workload: Statistic collector: Error message'
              required:
              - IP_STAT_TYPE
              - CT_STAT_MODULE_PARMS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CT_STAT_MODULE_PARMS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        DESTINATION:
                          type: string
                          maxLength: 32
                          description: Destination for a Step
                        LOCAL_SERVER:
                          type: string
                          maxLength: 40
                          description: 'SPI: Server Name'
                        DSR_CNAME:
                          type: string
                          maxLength: 32
                          description: 'DSR Statistics: Name of a Non-R/3 Component'
                        DSR_CTYP:
                          type: string
                          maxLength: 10
                          description: 'DSR Statistics: Type of Non-R/3 Component'
                        STATTYPE:
                          type: integer
                          format: int32
                          description: Type of Statistics to be Used
                        READSTARTDATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        READSTARTTIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        READENDDATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        READENDTIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        READ_DONE:
                          type: integer
                          format: int32
                          description: 'Global SPI: Boolean Value'
                        TRANSIDS:
                          type: array
                          items:
                            type: object
                            properties:
                              TRANSID:
                                type: string
                                maxLength: 32
                                description: 'SAP Workload: Workload: Transaction ID'
                  ET_ALL_STATS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        DESTINATION:
                          type: string
                          maxLength: 32
                          description: Destination for a Step
                        STATTYPE:
                          type: integer
                          format: int32
                          description: Type of Statistics to be Used
                        STATGUID:
                          type: string
                          maxLength: 32
                          description: 'SAP Workload: Workload: Transaction ID'
                        STATCNT:
                          type: integer
                          format: int32
                          description: Natural number
                        STARTTIME1:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Time in raw-statisticrecord in Seconds'
                        STARTTIME2:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Time in raw-statisticrecord in Microseconds'
                        ENDTIME1:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Time in raw-statisticrecord in Seconds'
                        ENDTIME2:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Time in raw-statisticrecord in Microseconds'
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        ACCOUNT:
                          type: string
                          maxLength: 32
                          description: 'DSR Statistics: User Name'
                        RESPTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: Response time in micro seconds'
                        CPUTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: CPU Time in Microseconds (Float Value from C)'
                        READSEQTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: DB Times in Microseconds (Float Value from C)'
                        READDIRTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        DELTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        UPDTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        INSTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        COMMITTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        READDIRCNT:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        READSEQCNT:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        INSCNT:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        UPDCNT:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        DELCNT:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        DBPROCTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        DBPROCCNT:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        RFCTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        ROLLED_OUT:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: Wait time in status "Rolled out"'
                        GENERATETI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        REPLOADTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        CUALOADTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        DYNPLOADTI:
                          type: integer
                          format: int64
                          description: 'SAP Workload: Workload: integer without a leading sign'
                        DSRUSER:
                          type: string
                          maxLength: 32
                          description: 'DSR Statistics: User Name'
                        CPUTIME:
                          type: integer
                          format: int32
                          description: 'DSR Statistics: Time in Milliseconds'
                        RESPTIME:
                          type: integer
                          format: int32
                          description: 'DSR Statistics: Time in Milliseconds'
                        WAITTIME:
                          type: integer
                          format: int32
                          description: 'DSR Statistics: Time in Milliseconds'
                  ET_NEW_COL_PARS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        DESTINATION:
                          type: string
                          maxLength: 32
                          description: Destination for a Step
                        LOCAL_SERVER:
                          type: string
                          maxLength: 40
                          description: 'SPI: Server Name'
                        DSR_CNAME:
                          type: string
                          maxLength: 32
                          description: 'DSR Statistics: Name of a Non-R/3 Component'
                        DSR_CTYP:
                          type: string
                          maxLength: 10
                          description: 'DSR Statistics: Type of Non-R/3 Component'
                        STATTYPE:
                          type: integer
                          format: int32
                          description: Type of Statistics to be Used
                        READENDDATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        READENDTIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        TRANSID:
                          type: string
                          maxLength: 32
                          description: 'SAP Workload: Workload: Transaction ID'
                        TIMETOLIVE:
                          type: integer
                          format: int64
                          description: 'PMI: Lifetime for Collector Parameters (Reading TIDs)'
                  ET_READ_RESULTS:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPONENT:
                          type: string
                          maxLength: 32
                          description: 'DSR Statistics: Name of a Non-R/3 Component'
                        SERVERNAME:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        RECS_FOUND:
                          type: integer
                          format: int32
                          description: 'SAP Workload: Statistic collector: number of records read'
                        ERROR_TEXT:
                          type: string
                          maxLength: 128
                          description: 'SAP Workload: Statistic collector: Error message'
                required:
                - CT_STAT_MODULE_PARMS
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
