모니터링 목록 조회

Prev Next

Classic/VPC 환경에서 이용 가능합니다.

전체 모니터링 서비스 목록을 조회합니다.

요청

요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

메서드 URI
GET /api/v1/scenarios

요청 헤더

Web service Monitoring System API에서 공통으로 사용하는 헤더에 대한 정보는 Web service Monitoring System 요청 헤더를 참조해 주십시오.

요청 예시

요청 예시는 다음과 같습니다.

curl --location --request GET 'https://wms.apigw.gov-ntruss.com/api/v1/scenarios' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \

응답

응답 형식을 설명합니다.

응답 바디

응답 바디에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
name String - 모니터링 서비스 이름
monitoringType String - 모니터링 유형
  • URL | SCENARIO
    • URL: 모니터링 시나리오 스텝에 URL 접속 스텝만 추가된 경우
    • SCENARIO: 모니터링 시나리오 스텝에 URL 접속 포함 2개 이상의 스텝이 추가된 경우
interval Integer - 모니터링 실행 주기 (분)
  • 1 | 5 | 10
requestTimeout Integer - 모니터링 요청 대기 시간 (밀리초)
  • 5000 | 10000 | 30000
runTimeout Integer - 모니터링 시나리오 실행 대기 시간 (밀리초)
  • 30000 | 40000 | 50000 | 60000
serviceType String - 모니터링 서비스 유형
  • PC | MOBILE
serviceYn Boolean - 모니터링 상태
  • true | false
    • true: 시작
    • false: 일시 정지
methodType String - 모니터링 요청 유형
  • GET | POST | DELETE | PUT
url String - 웹 서비스 URL 주소
  • 모니터링 대상
historyId String - 이력 관리 아이디
scenarioId Integer - 시나리오 아이디

응답 상태 코드

Web service Monitoring System API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Web service Monitoring System 응답 상태 코드를 참조해 주십시오.

응답 예시

응답 예시는 다음과 같습니다.

[
    {
        "name": "ncloud_test",
        "monitoringType": "SCENARIO",
        "interval": 1,
        "requestTimeout": 5000,
        "runTimeout": 30000,
        "serviceType": "PC",
        "serviceYn": true,
        "methodType": "GET",
        "url": "https://www.ncloud.com",
        "historyId": 1,
        "scenarioId": 7488
    },
    {
        "name": "example_test",
        "monitoringType": "URL",
        "interval": 1,
        "requestTimeout": 5000,
        "runTimeout": 30000,
        "serviceType": "PC",
        "serviceYn": true,
        "methodType": "GET",
        "url": "http://www.example.com",
        "historyId": 1,
        "scenarioId": 7479
    }
]