openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_MON_GET_SQLPROF_TRACES:
    post:
      tags:
      - SFMSS_MONSYSCAT
      summary: Get a list of all linked servers to a SQL Server
      operationId: /rfc/MSS_MON_GET_SQLPROF_TRACES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTIVE_ONLY:
                  type: integer
                  format: int32
                  default: 0
                  description: 0 - all, 1 - active only
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema name
                TRACES:
                  type: array
                  items:
                    type: object
                    properties:
                      TRACEID:
                        type: integer
                        format: int32
                        description: 'PROF : Trace ID from SQL Server (not unique)'
                      OPTIONS:
                        type: integer
                        format: int32
                        description: Trace options
                      FNAME:
                        type: string
                        maxLength: 320
                        description: 'PROF : Fully specified name of the tracefile'
                      MAX_SIZE:
                        type: integer
                        format: int32
                        description: 'PROF : Maximum size of the Tracefile [MB]'
                      STOP_TIME:
                        type: string
                        maxLength: 26
                        description: 'PROF :  Time when the trace was closed'
                      STATUS:
                        type: integer
                        format: int32
                        description: Trace status
                      EVENTS:
                        type: string
                        maxLength: 1024
                        description: Concatenated list of events for a trace
                      FILTERS:
                        type: string
                        maxLength: 1024
                        description: Concatenated list of trace filters
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ROW_COUNT:
                    type: integer
                    format: int32
                    description: 0 - all, 1 - active only
                  TRACES:
                    type: array
                    items:
                      type: object
                      properties:
                        TRACEID:
                          type: integer
                          format: int32
                          description: 'PROF : Trace ID from SQL Server (not unique)'
                        OPTIONS:
                          type: integer
                          format: int32
                          description: Trace options
                        FNAME:
                          type: string
                          maxLength: 320
                          description: 'PROF : Fully specified name of the tracefile'
                        MAX_SIZE:
                          type: integer
                          format: int32
                          description: 'PROF : Maximum size of the Tracefile [MB]'
                        STOP_TIME:
                          type: string
                          maxLength: 26
                          description: 'PROF :  Time when the trace was closed'
                        STATUS:
                          type: integer
                          format: int32
                          description: Trace status
                        EVENTS:
                          type: string
                          maxLength: 1024
                          description: Concatenated list of events for a trace
                        FILTERS:
                          type: string
                          maxLength: 1024
                          description: Concatenated list of trace filters
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
