openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SALX_4_FLOW_LOGIC_MON_GET_TREE:
    post:
      tags:
      - SALWP
      summary: Read Monitor Tree (for Flow Logic Use)
      operationId: /rfc/SALX_4_FLOW_LOGIC_MON_GET_TREE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MAX_LEVEL:
                  type: integer
                  format: int32
                  default: 0
                  description: 'Alert: Tree Info: Level of MTE in tree'
                MONITORNAME:
                  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'
                TREE_NODES:
                  type: array
                  items:
                    type: object
                    properties:
                      MTSYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      MTMCNAME:
                        type: string
                        maxLength: 40
                        description: 'Alert: Name of Monitoring Context'
                      MTNUMRANGE:
                        type: string
                        maxLength: 3
                        description: 'Alert: monitoring type number range (perm., temp, ...)'
                      MTUID:
                        type: string
                        maxLength: 10
                        description: 'ALert: Unique Identifier for  Monitoring Types (used in TID)'
                      MTCLASS:
                        type: string
                        maxLength: 3
                        description: 'Alert: monitoring type class (perf., single msg.,...)'
                      MTINDEX:
                        type: string
                        maxLength: 10
                        description: 'Alert: internal handle for TID'
                      EXTINDEX:
                        type: string
                        maxLength: 10
                        description: 'Alert: internal handle for TID'
                      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'
                      OBJECTNAME:
                        type: string
                        maxLength: 40
                        description: 'Alert: Name of Monitoring Object'
                      MTNAMESHRT:
                        type: string
                        maxLength: 40
                        description: 'Alert: Short Name of Monitoring Type'
                      CUSGRPNAME:
                        type: string
                        maxLength: 40
                        description: 'Alert: Customization: Name of Customization Group'
                      DELIVERSTA:
                        type: integer
                        format: int32
                        description: 'Alert: MT Val: Delivery Status'
                      HIGHALVAL:
                        type: integer
                        format: int32
                        description: 'Alert: alert value (1 = green, 2 = yellow, ....)'
                      HIGHALSEV:
                        type: integer
                        format: int32
                        description: 'Alert: severity (alerts, monitoring type custom..)'
                      ALSYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      MSEGNAME:
                        type: string
                        maxLength: 40
                        description: 'Alert: Name of Monitoring Segment'
                      ALUNIQNUM:
                        type: string
                        maxLength: 10
                        description: 'Alert: Unique Identifier to be used in AID (char10)'
                      ALINDEX:
                        type: string
                        maxLength: 10
                        description: 'Alert: internal handle'
                      ALERTDATE:
                        type: string
                        format: date
                        description: 'Alert: date'
                      ALERTTIME:
                        type: string
                        maxLength: 6
                        description: 'Alert: Time value in timeformat'
                      DUMMYALIGN:
                        type: string
                        maxLength: 2
                        description: 'Alert: Dummy field. Purpose: Alignment of date/time 16 byte'
                      LASTVALDAT:
                        type: string
                        format: date
                        description: 'Alert: date'
                      LASTVALTIM:
                        type: string
                        maxLength: 6
                        description: 'Alert: Time value in timeformat'
                      LASTVALDUM:
                        type: string
                        maxLength: 2
                        description: 'Alert: Dummy field. Purpose: Alignment of date/time 16 byte'
                      ACTUALVAL:
                        type: integer
                        format: int32
                        description: 'Alert: alert value (1 = green, 2 = yellow, ....)'
                      ACTUALSEV:
                        type: integer
                        format: int32
                        description: 'Alert: severity (alerts, monitoring type custom..)'
                      VALSYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      VMSEGNAME:
                        type: string
                        maxLength: 40
                        description: 'Alert: Name of Monitoring Segment'
                      VALUNIQNUM:
                        type: string
                        maxLength: 10
                        description: 'Alert: Unique Identifier to be used in AID (char10)'
                      VALINDEX:
                        type: string
                        maxLength: 10
                        description: 'Alert: internal handle'
                      VALERTDATE:
                        type: string
                        format: date
                        description: 'Alert: date'
                      VALERTTIME:
                        type: string
                        maxLength: 6
                        description: 'Alert: Time value in timeformat'
                      VALERTDUM:
                        type: string
                        maxLength: 2
                        description: 'Alert: Dummy field. Purpose: Alignment of date/time 16 byte'
                      COUNTOFACT:
                        type: integer
                        format: int32
                        description: 'Alert: MT Val: Count of active Alerts'
                      COUNTSUM:
                        type: integer
                        format: int32
                        description: 'Alert: MT Val: Sum of Alerts in MT'
                      VISUSERLEV:
                        type: integer
                        format: int32
                        description: 'Alert: MTE type dev cust: Visible on user level (op,exp,dev)'
                      TDSTATUS:
                        type: integer
                        format: int32
                        description: 'Alert: MT: Type Def Status'
              required:
              - MONITORNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TREE_NODES:
                    type: array
                    items:
                      type: object
                      properties:
                        MTSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        MTMCNAME:
                          type: string
                          maxLength: 40
                          description: 'Alert: Name of Monitoring Context'
                        MTNUMRANGE:
                          type: string
                          maxLength: 3
                          description: 'Alert: monitoring type number range (perm., temp, ...)'
                        MTUID:
                          type: string
                          maxLength: 10
                          description: 'ALert: Unique Identifier for  Monitoring Types (used in TID)'
                        MTCLASS:
                          type: string
                          maxLength: 3
                          description: 'Alert: monitoring type class (perf., single msg.,...)'
                        MTINDEX:
                          type: string
                          maxLength: 10
                          description: 'Alert: internal handle for TID'
                        EXTINDEX:
                          type: string
                          maxLength: 10
                          description: 'Alert: internal handle for TID'
                        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'
                        OBJECTNAME:
                          type: string
                          maxLength: 40
                          description: 'Alert: Name of Monitoring Object'
                        MTNAMESHRT:
                          type: string
                          maxLength: 40
                          description: 'Alert: Short Name of Monitoring Type'
                        CUSGRPNAME:
                          type: string
                          maxLength: 40
                          description: 'Alert: Customization: Name of Customization Group'
                        DELIVERSTA:
                          type: integer
                          format: int32
                          description: 'Alert: MT Val: Delivery Status'
                        HIGHALVAL:
                          type: integer
                          format: int32
                          description: 'Alert: alert value (1 = green, 2 = yellow, ....)'
                        HIGHALSEV:
                          type: integer
                          format: int32
                          description: 'Alert: severity (alerts, monitoring type custom..)'
                        ALSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        MSEGNAME:
                          type: string
                          maxLength: 40
                          description: 'Alert: Name of Monitoring Segment'
                        ALUNIQNUM:
                          type: string
                          maxLength: 10
                          description: 'Alert: Unique Identifier to be used in AID (char10)'
                        ALINDEX:
                          type: string
                          maxLength: 10
                          description: 'Alert: internal handle'
                        ALERTDATE:
                          type: string
                          format: date
                          description: 'Alert: date'
                        ALERTTIME:
                          type: string
                          maxLength: 6
                          description: 'Alert: Time value in timeformat'
                        DUMMYALIGN:
                          type: string
                          maxLength: 2
                          description: 'Alert: Dummy field. Purpose: Alignment of date/time 16 byte'
                        LASTVALDAT:
                          type: string
                          format: date
                          description: 'Alert: date'
                        LASTVALTIM:
                          type: string
                          maxLength: 6
                          description: 'Alert: Time value in timeformat'
                        LASTVALDUM:
                          type: string
                          maxLength: 2
                          description: 'Alert: Dummy field. Purpose: Alignment of date/time 16 byte'
                        ACTUALVAL:
                          type: integer
                          format: int32
                          description: 'Alert: alert value (1 = green, 2 = yellow, ....)'
                        ACTUALSEV:
                          type: integer
                          format: int32
                          description: 'Alert: severity (alerts, monitoring type custom..)'
                        VALSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        VMSEGNAME:
                          type: string
                          maxLength: 40
                          description: 'Alert: Name of Monitoring Segment'
                        VALUNIQNUM:
                          type: string
                          maxLength: 10
                          description: 'Alert: Unique Identifier to be used in AID (char10)'
                        VALINDEX:
                          type: string
                          maxLength: 10
                          description: 'Alert: internal handle'
                        VALERTDATE:
                          type: string
                          format: date
                          description: 'Alert: date'
                        VALERTTIME:
                          type: string
                          maxLength: 6
                          description: 'Alert: Time value in timeformat'
                        VALERTDUM:
                          type: string
                          maxLength: 2
                          description: 'Alert: Dummy field. Purpose: Alignment of date/time 16 byte'
                        COUNTOFACT:
                          type: integer
                          format: int32
                          description: 'Alert: MT Val: Count of active Alerts'
                        COUNTSUM:
                          type: integer
                          format: int32
                          description: 'Alert: MT Val: Sum of Alerts in MT'
                        VISUSERLEV:
                          type: integer
                          format: int32
                          description: 'Alert: MTE type dev cust: Visible on user level (op,exp,dev)'
                        TDSTATUS:
                          type: integer
                          format: int32
                          description: 'Alert: MT: Type Def Status'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
