openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SCSM_GET_ALERTS_FOR_NODES:
    post:
      tags:
      - SCSM_WEBADMIN
      operationId: /rfc/SCSM_GET_ALERTS_FOR_NODES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                END_TIMESTAMP_UTC:
                  type: integer
                  format: int64
                GET_ALERT_HISTORY:
                  type: string
                  default: ' '
                  maxLength: 1
                START_TIMESTAMP_UTC:
                  type: integer
                  format: int64
                ALERTDATA_RETURN_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      MTLONGNAME:
                        type: string
                        maxLength: 256
                        description: 'Alert: monitoring type full name'
                      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'
                      RC:
                        type: integer
                        format: int32
                        description: 'Alert: Return Code'
                      VALUE:
                        type: integer
                        format: int32
                        description: 'Alert: alert value (1 = green, 2 = yellow, ....)'
                      SEVERITY:
                        type: integer
                        format: int32
                        description: 'Alert: severity (alerts, monitoring type custom..)'
                      STATUS:
                        type: integer
                        format: int32
                        description: 'Alert: general status (alert, Customizing, ...)'
                      OBJECTNAME:
                        type: string
                        maxLength: 40
                        description: 'Alert: Name of Monitoring Object'
                      FIELDNAME:
                        type: string
                        maxLength: 40
                        description: 'ALert: Name of Monitoring Field'
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      USERID:
                        type: string
                        maxLength: 12
                        description: User Name
                      ALERTTMSTP:
                        type: integer
                        format: int64
                        description: 'Alert: UTC Time Stamp in Format <YYYYMMDDhhmmss>'
                      GONETMSTP:
                        type: integer
                        format: int64
                        description: 'Alert: UTC Time Stamp in Format <YYYYMMDDhhmmss>'
                      REPORTEDBY:
                        type: string
                        maxLength: 16
                        description: 'Alert: User (16 Char)'
                      STATCHGTMSTP:
                        type: integer
                        format: int64
                        description: 'Alert: UTC Time Stamp in Format <YYYYMMDDhhmmss>'
                      STATCHGBY:
                        type: string
                        maxLength: 16
                        description: 'Alert: Last Alert Status changed By'
                      MSGCLASS:
                        type: string
                        maxLength: 16
                        description: 'XMI logging: company name of external management tool'
                      MSGID:
                        type: string
                        maxLength: 30
                        description: Message ID for an XMI log entry
                      MSGARG1:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE1:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG2:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE2:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG3:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE3:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG4:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE4:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGTEXT:
                        type: string
                        maxLength: 128
                        description: Actual text of message
                      MSG:
                        type: string
                        maxLength: 255
                        description: The expanded (translated) message for ext. tools
                      MSCGLID:
                        type: string
                        maxLength: 50
                        description: 'Alert: Message container: global external line ID'
                LONGNAME_TID_INPUT_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      MTLONGNAME:
                        type: string
                        maxLength: 256
                        description: 'Alert: monitoring type full name'
                      TIDSTRING:
                        type: string
                        maxLength: 84
                        description: 'Monitoring: TID as a Char String (84)'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ALERTDATA_RETURN_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        MTLONGNAME:
                          type: string
                          maxLength: 256
                          description: 'Alert: monitoring type full name'
                        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'
                        RC:
                          type: integer
                          format: int32
                          description: 'Alert: Return Code'
                        VALUE:
                          type: integer
                          format: int32
                          description: 'Alert: alert value (1 = green, 2 = yellow, ....)'
                        SEVERITY:
                          type: integer
                          format: int32
                          description: 'Alert: severity (alerts, monitoring type custom..)'
                        STATUS:
                          type: integer
                          format: int32
                          description: 'Alert: general status (alert, Customizing, ...)'
                        OBJECTNAME:
                          type: string
                          maxLength: 40
                          description: 'Alert: Name of Monitoring Object'
                        FIELDNAME:
                          type: string
                          maxLength: 40
                          description: 'ALert: Name of Monitoring Field'
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        USERID:
                          type: string
                          maxLength: 12
                          description: User Name
                        ALERTTMSTP:
                          type: integer
                          format: int64
                          description: 'Alert: UTC Time Stamp in Format <YYYYMMDDhhmmss>'
                        GONETMSTP:
                          type: integer
                          format: int64
                          description: 'Alert: UTC Time Stamp in Format <YYYYMMDDhhmmss>'
                        REPORTEDBY:
                          type: string
                          maxLength: 16
                          description: 'Alert: User (16 Char)'
                        STATCHGTMSTP:
                          type: integer
                          format: int64
                          description: 'Alert: UTC Time Stamp in Format <YYYYMMDDhhmmss>'
                        STATCHGBY:
                          type: string
                          maxLength: 16
                          description: 'Alert: Last Alert Status changed By'
                        MSGCLASS:
                          type: string
                          maxLength: 16
                          description: 'XMI logging: company name of external management tool'
                        MSGID:
                          type: string
                          maxLength: 30
                          description: Message ID for an XMI log entry
                        MSGARG1:
                          type: string
                          maxLength: 128
                          description: Argument string for an XMI log
                        ARGTYPE1:
                          type: string
                          maxLength: 1
                          description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                          enum:
                          - C
                          - U
                          - T
                          - D
                        MSGARG2:
                          type: string
                          maxLength: 128
                          description: Argument string for an XMI log
                        ARGTYPE2:
                          type: string
                          maxLength: 1
                          description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                          enum:
                          - C
                          - U
                          - T
                          - D
                        MSGARG3:
                          type: string
                          maxLength: 128
                          description: Argument string for an XMI log
                        ARGTYPE3:
                          type: string
                          maxLength: 1
                          description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                          enum:
                          - C
                          - U
                          - T
                          - D
                        MSGARG4:
                          type: string
                          maxLength: 128
                          description: Argument string for an XMI log
                        ARGTYPE4:
                          type: string
                          maxLength: 1
                          description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                          enum:
                          - C
                          - U
                          - T
                          - D
                        MSGTEXT:
                          type: string
                          maxLength: 128
                          description: Actual text of message
                        MSG:
                          type: string
                          maxLength: 255
                          description: The expanded (translated) message for ext. tools
                        MSCGLID:
                          type: string
                          maxLength: 50
                          description: 'Alert: Message container: global external line ID'
                  LONGNAME_TID_INPUT_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        MTLONGNAME:
                          type: string
                          maxLength: 256
                          description: 'Alert: monitoring type full name'
                        TIDSTRING:
                          type: string
                          maxLength: 84
                          description: 'Monitoring: TID as a Char String (84)'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
