openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_TRACE:
    post:
      tags:
      - SFMSS_ANALYZE
      summary: 'PROF : Read the complete Trace'
      operationId: /rfc/MSS_GET_TRACE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logischer Name einer Datenbankverbindung
                PERMID:
                  type: integer
                  format: int32
                  description: Eindeutige Nummer des Traces
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schemaname
                TRACE:
                  type: array
                  items:
                    type: object
                    properties:
                      TRACE_ROW:
                        type: integer
                        format: int32
                        description: Ordinal number in the originally created trace
                      EVENT:
                        type: string
                        maxLength: 64
                        description: 'PROF : Profiler-Trace-Event'
                      TDATA:
                        type: string
                        maxLength: 128
                        description: 'PROF : (Cut off) long text for Trace-Event'
                      HOSTNAME:
                        type: string
                        maxLength: 128
                        description: 'PROF : Hostname of the SQL Client'
                      HOSTPID:
                        type: integer
                        format: int32
                        description: 'PROF : Process ID of the SQL Client Process'
                      APPNAME:
                        type: string
                        maxLength: 64
                        description: 'PROF : SQL Application name'
                      DURATION:
                        type: integer
                        format: int64
                        description: 'PROF :  Duration of the event  [ms]'
                      STARTT:
                        type: string
                        maxLength: 26
                        description: 'PROF : Start time of the event'
                      NRREADS:
                        type: integer
                        format: int64
                        description: 'PROF :  Number of logical reads'
                      NRWRITES:
                        type: integer
                        format: int64
                        description: 'PROF : Number of write operations'
                      CPU:
                        type: integer
                        format: int32
                        description: 'PROF : CPU-Time of the event'
                      ERROR:
                        type: integer
                        format: int32
                        description: 'PROF : Error code for the event'
                      OBJECT_NAME:
                        type: string
                        maxLength: 128
                        description: Object name
                      DBNAME:
                        type: string
                        maxLength: 128
                        description: Database name
                      DBUSERNAME:
                        type: string
                        maxLength: 128
                        description: Schema name
                TTEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      TABIX:
                        type: integer
                        format: int32
                        description: ''
                      PAGENO:
                        type: integer
                        format: int32
                        description: ''
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: Output line of sp_helptext
              required:
              - PERMID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TRACE:
                    type: array
                    items:
                      type: object
                      properties:
                        TRACE_ROW:
                          type: integer
                          format: int32
                          description: Ordinal number in the originally created trace
                        EVENT:
                          type: string
                          maxLength: 64
                          description: 'PROF : Profiler-Trace-Event'
                        TDATA:
                          type: string
                          maxLength: 128
                          description: 'PROF : (Cut off) long text for Trace-Event'
                        HOSTNAME:
                          type: string
                          maxLength: 128
                          description: 'PROF : Hostname of the SQL Client'
                        HOSTPID:
                          type: integer
                          format: int32
                          description: 'PROF : Process ID of the SQL Client Process'
                        APPNAME:
                          type: string
                          maxLength: 64
                          description: 'PROF : SQL Application name'
                        DURATION:
                          type: integer
                          format: int64
                          description: 'PROF :  Duration of the event  [ms]'
                        STARTT:
                          type: string
                          maxLength: 26
                          description: 'PROF : Start time of the event'
                        NRREADS:
                          type: integer
                          format: int64
                          description: 'PROF :  Number of logical reads'
                        NRWRITES:
                          type: integer
                          format: int64
                          description: 'PROF : Number of write operations'
                        CPU:
                          type: integer
                          format: int32
                          description: 'PROF : CPU-Time of the event'
                        ERROR:
                          type: integer
                          format: int32
                          description: 'PROF : Error code for the event'
                        OBJECT_NAME:
                          type: string
                          maxLength: 128
                          description: Object name
                        DBNAME:
                          type: string
                          maxLength: 128
                          description: Database name
                        DBUSERNAME:
                          type: string
                          maxLength: 128
                          description: Schema name
                  TTEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        TABIX:
                          type: integer
                          format: int32
                          description: ''
                        PAGENO:
                          type: integer
                          format: int32
                          description: ''
                        TEXTLINE:
                          type: string
                          maxLength: 255
                          description: Output line of sp_helptext
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
