openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SCSM_GET_TREE_FOR_MONITOR:
    post:
      tags:
      - SCSM_WEBADMIN
      operationId: /rfc/SCSM_GET_TREE_FOR_MONITOR
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MONITOR_NAME:
                  type: object
                  properties:
                    MONI_NAME:
                      type: string
                      maxLength: 60
                      description: Name of a monitor in the CCMS monitoring infrastructure
                    MS_NAME:
                      type: string
                      maxLength: 60
                      description: 'Alerts: Name of a monitor set'
                GET_DATA_FOR_SYSIDS:
                  type: array
                  items:
                    type: object
                    properties:
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                TREE_WITH_NAMES:
                  type: array
                  items:
                    type: object
                    properties:
                      MTSYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      MTETYPE:
                        type: string
                        maxLength: 3
                        description: 'Alert: monitoring type class (perf., single msg.,...)'
                      MTESUBTYPE:
                        type: integer
                        format: int32
                        description: 'Alert: monitoring tree element: subtype'
                      MTDISPLAYNM:
                        type: string
                        maxLength: 256
                        description: 'Alert: monitoring type full name'
                      MTLONGNAME:
                        type: string
                        maxLength: 256
                        description: 'Alert: monitoring type full name'
                      MTECLASS:
                        type: string
                        maxLength: 40
                        description: 'CCMS Monitoring Architecture: Name of MTE class'
                      ALTREENUM:
                        type: integer
                        format: int32
                        description: 'Alert: MT Tree info: Number of tree'
                      ALIDXINTRE:
                        type: integer
                        format: int32
                        description: 'Alert: Tree Info: Index of MT in Tree'
                      ALLEVINTRE:
                        type: integer
                        format: int32
                        description: 'Alert: Tree Info: Level of MTE in Tree'
                      ALPARINTRE:
                        type: integer
                        format: int32
                        description: 'Alert: Tree Info: Index of Parent of MT in Tree'
                      TIDSTRING:
                        type: string
                        maxLength: 84
                        description: 'Monitoring: TID as a Char String (84)'
                      RC:
                        type: integer
                        format: int32
                        description: 'Alert: Return Code'
              required:
              - MONITOR_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  GET_DATA_FOR_SYSIDS:
                    type: array
                    items:
                      type: object
                      properties:
                        SYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                  TREE_WITH_NAMES:
                    type: array
                    items:
                      type: object
                      properties:
                        MTSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        MTETYPE:
                          type: string
                          maxLength: 3
                          description: 'Alert: monitoring type class (perf., single msg.,...)'
                        MTESUBTYPE:
                          type: integer
                          format: int32
                          description: 'Alert: monitoring tree element: subtype'
                        MTDISPLAYNM:
                          type: string
                          maxLength: 256
                          description: 'Alert: monitoring type full name'
                        MTLONGNAME:
                          type: string
                          maxLength: 256
                          description: 'Alert: monitoring type full name'
                        MTECLASS:
                          type: string
                          maxLength: 40
                          description: 'CCMS Monitoring Architecture: Name of MTE class'
                        ALTREENUM:
                          type: integer
                          format: int32
                          description: 'Alert: MT Tree info: Number of tree'
                        ALIDXINTRE:
                          type: integer
                          format: int32
                          description: 'Alert: Tree Info: Index of MT in Tree'
                        ALLEVINTRE:
                          type: integer
                          format: int32
                          description: 'Alert: Tree Info: Level of MTE in Tree'
                        ALPARINTRE:
                          type: integer
                          format: int32
                          description: 'Alert: Tree Info: Index of Parent of MT in Tree'
                        TIDSTRING:
                          type: string
                          maxLength: 84
                          description: 'Monitoring: TID as a Char String (84)'
                        RC:
                          type: integer
                          format: int32
                          description: 'Alert: Return Code'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
