openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SALE_PULL_EVENTS:
    post:
      tags:
      - SALE
      operationId: /rfc/SALE_PULL_EVENTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MAXCOUNT:
                  type: integer
                  format: int32
                EVENT:
                  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'
                      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'
                      EVTSYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      EVTMSNAME:
                        type: string
                        maxLength: 40
                        description: 'Alert: Name of Monitoring Segment'
                      EVTUID:
                        type: string
                        maxLength: 10
                        description: 'Alert: Unique Identifier to be used in AID (char10)'
                      EVTINDEX:
                        type: string
                        maxLength: 10
                        description: 'Alert: internal handle'
                      EVTDATE:
                        type: string
                        format: date
                        description: 'Alert: date'
                      EVTTIME:
                        type: string
                        maxLength: 6
                        description: 'Alert: Time value in timeformat'
                      EVTDUMMY:
                        type: string
                        maxLength: 2
                        description: 'Alert: Dummy field. Purpose: Alignment of date/time 16 byte'
                      MTECLASS:
                        type: string
                        maxLength: 40
                        description: 'CCMS Monitoring Architecture: Name of MTE class'
                      EVENTTYPE:
                        type: integer
                        format: int32
                        description: 'Alert: Event: Event Type'
                      NEWVALUE:
                        type: integer
                        format: int32
                        description: 'Alert: alert value (1 = green, 2 = yellow, ....)'
                      SEVERITY:
                        type: integer
                        format: int32
                        description: 'Alert: severity (alerts, monitoring type custom..)'
              required:
              - MAXCOUNT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EVTCOUNT:
                    type: integer
                    format: int32
                  EVENT:
                    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'
                        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'
                        EVTSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        EVTMSNAME:
                          type: string
                          maxLength: 40
                          description: 'Alert: Name of Monitoring Segment'
                        EVTUID:
                          type: string
                          maxLength: 10
                          description: 'Alert: Unique Identifier to be used in AID (char10)'
                        EVTINDEX:
                          type: string
                          maxLength: 10
                          description: 'Alert: internal handle'
                        EVTDATE:
                          type: string
                          format: date
                          description: 'Alert: date'
                        EVTTIME:
                          type: string
                          maxLength: 6
                          description: 'Alert: Time value in timeformat'
                        EVTDUMMY:
                          type: string
                          maxLength: 2
                          description: 'Alert: Dummy field. Purpose: Alignment of date/time 16 byte'
                        MTECLASS:
                          type: string
                          maxLength: 40
                          description: 'CCMS Monitoring Architecture: Name of MTE class'
                        EVENTTYPE:
                          type: integer
                          format: int32
                          description: 'Alert: Event: Event Type'
                        NEWVALUE:
                          type: integer
                          format: int32
                          description: 'Alert: alert value (1 = green, 2 = yellow, ....)'
                        SEVERITY:
                          type: integer
                          format: int32
                          description: 'Alert: severity (alerts, monitoring type custom..)'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
