관리 REST API를 사용하여 모니터링 활성화

IBM® App Connect Enterprise 관리 REST API를 사용하여 REST API 또는 통합 서비스를 통해 개발된 애플리케이션, 메시지 흐름 및 통합 솔루션에 대한 모니터링을 활성화할 수 있습니다.

시작하기 전에

다음 주제를 읽으십시오.

태스크 정보

이 주제에서 예는 다음 자원을 기반으로 합니다.
  • 애플리케이션: MonitoringApp
  • 애플리케이션과 함께 패키징된 메시지 플로우: MonitoringAppFlow1MonitoringAppFlow2
  • 애플리케이션과 연관된 라이브러리: Monitoring Lib
  • 라이브러리의 메시지 플로우: MonitoringLibFlow
이 예제에 표시된 대로 통합 탐색기 분할창에서 발췌한 내용은 다음과 같습니다.
다이어그램은 애플리케이션을 포함하는 배치 토폴로지, 애플리케이션과 함께 패키지된 2개의 메시지 플로우, 애플리케이션과 연관된 라이브러리 및 라이브러리에 있는 메시지 플로우를 표시합니다.

애플리케이션에 대한 모니터링 활성화

태스크 정보

애플리케이션 및 애플리케이션에 패키징되어 있는 메시지 플로우에 대한 모니터링을 활성화하거나 단일 메시지 플로우에 대한 모니터링을 활성화할 수 있습니다.

프로시저

  • 애플리케이션 및 해당 메시지 플로우에 대한 모니터링을 활성화하려면 다음을 실행하십시오.
    1. 독립 통합 서버의 경우:
      POST http://hostname:port/apiv2/applications/applicationName/start-monitoring

      예를 들어 애플리케이션 MonitoringApp에 대한 모니터링을 활성화하려면 다음 curl 명령을 사용하십시오.

      curl -X POST http://hostname:port/apiv2/applications/MonitoringApp/start-monitoring
      
    2. 통합 노드에서 관리되는 통합 서버의 경우:
      POST http://hostname:port/apiv2/servers/integrationServerName/applications/applicationName/start-monitoring

      예를 들어 통합 서버 ACESERV1에서 애플리케이션 MonitoringApp에 대한 모니터링을 활성화하려면 다음 curl 명령을 사용하십시오.

      curl -X POST http://hostname:port/apiv2/servers/ACESERV1/applications/MonitoringApp/start-monitoring

      명령에 성공하면 HTTP 상태 코드 200이 리턴됩니다.

  • 단일 메시지 플로우에 대한 모니터링을 활성화하려면 다음을 실행하십시오.
    1. 독립 통합 서버의 경우:
      POST http://hostname:port/apiv2/applications/applicationName/messageflows/messageflowName/start-monitoring

      예를 들어 메시지 플로우 MonitoringAppFlow1에 대한 모니터링을 활성화하려면 다음 curl 명령을 사용하십시오.

      curl -X POST http://hostname:port/apiv2/applications/MonitoringApp/messageflows/MonitoringAppFlow1/start-monitoring

      메시지 플로우가 라이브러리에 있는 경우:

      POST http://hostname:port/apiv2/applications/applicationName/libraries/libraryName/messageflows/messageflowName/start-monitoring

      예를 들어 메시지 플로우 MonitoringLibFlow에 대한 모니터링을 활성화하려면 다음 curl 명령을 사용하십시오.

      curl -X POST http://hostname:port/apiv2/applications/MonitoringApp/libraries/MonitoringLib/messageflows/MonitoringLibFlow/start-monitoring
    2. 통합 노드에서 관리되는 통합 서버의 경우:
      POST http://hostname:port/apiv2/servers/integrationServerName/applications/applicationName/messageflows/messageflowName/start-monitoring

      예를 들어 통합 서버 ACESERV1에서 개발된 메시지 플로우 MonitoringAppFlow1에 대한 모니터링을 활성화하려면 다음 curl 명령을 사용하십시오.

      curl -X POST http://hostname:port/apiv2/servers/ACESERV1/applications/MonitoringApp/messageflows/MonitoringAppFlow1/start-monitoring

      메시지 플로우가 라이브러리에 있는 경우:

      POST http://hostname:port/apiv2/servers/integrationServerName/applications/applicationName/libraries/libraryName/messageflows/messageflowName/start-monitoring

      예를 들어 통합 서버 ACESERV1에서 개발된 메시지 플로우 MonitoringLibFlow에 대한 모니터링을 활성화하려면 다음 curl 명령을 사용하십시오.

      curl -X POST http://hostname:port/apiv2/servers/ACESERV1/applications/MonitoringApp/libraries/MonitoringLib/messageflows/MonitoringLibFlow/start-monitoring

      명령에 성공하면 HTTP 상태 코드 200이 리턴됩니다.

다음 수행할 사항

mqsireportflowmonitoring 명령을 사용하여 애플리케이션 및 메시지 플로우의 모니터링 상태를 확인할 수 있습니다.

REST API 통합 솔루션에 대한 모니터링 활성화

태스크 정보

REST API를 사용하여 개발된 통합 솔루션(통합 솔루션에 패키징되어 있는 메시지 포함)에 대한 모니터링을 활성화하거나 통합 솔루션과 같은 단일 메시지 플로우에 대한 모니터링을 활성화할 수 있습니다.

프로시저

  • REST API 통합 솔루션 및 해당 메시지 플로우에 대한 모니터링을 활성화하려면 다음을 실행하십시오.
    1. 독립 통합 서버의 경우:
      POST http://hostname:port/apiv2/rest-apis/rest-apiName/start-monitoring
    2. 통합 노드에서 관리되는 통합 서버의 경우:
      POST http://hostname:port/apiv2/servers/integrationServerName/rest-apis/rest-apiName/start-monitoring

      명령에 성공하면 HTTP 상태 코드 200이 리턴됩니다.

  • 단일 메시지 플로우에 대한 모니터링을 활성화하려면 다음을 실행하십시오.
    1. 독립 통합 서버의 경우:
      POST http://hostname:port/apiv2/rest-apis/rest-apiName/messageflows/messageflowName/start-monitoring

      메시지 플로우가 라이브러리에 있는 경우:

      POST http://hostname:port/apiv2/rest-apis/rest-apiName/libraries/libraryName/messageflows/messageflowName/start-monitoring
    2. 통합 노드에서 관리되는 통합 서버의 경우:
      POST http://hostname:port/apiv2/servers/integrationServerName/rest-apis/rest-apiName/messageflows/messageflowName/start-monitoring

      메시지 플로우가 라이브러리에 있는 경우:

      POST http://hostname:port/apiv2/servers/integrationServerName/rest-apis/rest-apiName/libraries/libraryName/messageflows/messageflowName/start-monitoring

      명령에 성공하면 HTTP 상태 코드 200이 리턴됩니다.

다음 수행할 사항

mqsireportflowmonitoring 명령을 사용하여 애플리케이션 및 메시지 플로우의 모니터링 상태를 확인할 수 있습니다.

통합 서비스 통합 솔루션에 대한 모니터링 활성화

태스크 정보

통합 서비스를 사용하여 개발된 통합 솔루션(통합 솔루션에 패키징되어 있는 메시지 포함)에 대한 모니터링을 활성화하거나 통합 솔루션과 같은 단일 메시지 플로우에 대한 모니터링을 활성화할 수 있습니다.

프로시저

  • 통합 서비스 통합 솔루션 및 해당 메시지 플로우에 대한 모니터링을 활성화하려면 다음을 실행하십시오.
    1. 독립 통합 서버의 경우:
      POST http://hostname:port/apiv2/services/integrationServiceName/start-monitoring
      
    2. 통합 노드에서 관리되는 통합 서버의 경우:
      POST http://hostname:port/apiv2/servers/integrationServerName/services/integrationServiceName/start-monitoring

      명령에 성공하면 HTTP 상태 코드 200이 리턴됩니다.

  • 단일 메시지 플로우에 대한 모니터링을 활성화하려면 다음을 실행하십시오.
    1. 독립 통합 서버의 경우:
      POST http://hostname:port/apiv2/services/intergrationServiceName/messageflows/messageflowName/start-monitoring

      메시지 플로우가 라이브러리에 있는 경우:

      POST http://hostname:port/apiv2/services/intergrationServiceName/libraries/libraryName/messageflows/messageflowName/start-monitoring
    2. 통합 노드에서 관리되는 통합 서버의 경우:
      POST http://hostname:port/apiv2/servers/integrationServerName/services/intergationServiceName/messageflows/messageflowName/start-monitoring

      메시지 플로우가 라이브러리에 있는 경우:

      POST http://hostname:port/apiv2/servers/integrationServerName/services/intergationServiceName/libraries/libraryName/messageflows/messageflowName/start-monitoring

      명령에 성공하면 HTTP 상태 코드 200이 리턴됩니다.

다음 수행할 사항

mqsireportflowmonitoring 명령을 사용하여 통합 솔루션 및 메시지 플로우의 모니터링 상태를 확인할 수 있습니다.

모든 통합 솔루션에 대한 모니터링 활성화

태스크 정보

관리 REST API의 단일 명령을 사용하여 애플리케이션에서 개발된 모든 통합 솔루션 및 메시지 플로우(REST API 또는 통합 서비스를 사용하여 개발되거나 라이브러리에 있는 모든 통합 솔루션 및 메시지 플로우 포함)에 대한 모니터링을 활성화할 수 있습니다.

프로시저

모든 통합 솔루션 및 해당 메시지 플로우에 대한 모니터링을 활성화하려면 다음을 실행하십시오.
  1. 독립 통합 서버의 경우:
    POST http://hostname:port/apiv2/monitoring/flow-monitoring/start-monitoring
  2. 통합 노드에서 관리되는 통합 서버의 경우:
    POST http://hostname:port/apiv2 servers/integrationServerName/monitoring/flow-monitoring/start-monitoring

    명령에 성공하면 HTTP 상태 코드 200이 리턴됩니다.

다음 수행할 사항

mqsireportflowmonitoring 명령을 사용하여 통합 솔루션 및 메시지 플로우의 모니터링 상태를 확인할 수 있습니다.