기간별 로그량 조회
    • PDF

    기간별 로그량 조회

    • PDF

    기사 요약

    설명

    Cloud Log Analytics에 수집된 로그 수를 다양한 방법으로 조회합니다.

    기간별 로그량 조회

    Cloud Log Analytics에 수집된 로그 개수를 특정 interval 기준으로 조회합니다.

    요청 URL

    GET https://cloudloganalytics.apigw.fin-ntruss.com/api/{regionCode}-v1/logs/count/interval
    

    요청 헤더

    헤더명설명
    x-ncp-apigw-timestamp1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타내며
    API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주

    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-apigw-api-keyAPIGW에서 발급받은 키 값
    x-ncp-apigw-api-key:{API Gateway API Key}
    x-ncp-iam-access-key네이버 클라우드 플랫폼 포털에서 발급받은 Access Key ID 값
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Access Key ID 값과 Secret Key로 암호화한 서명
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    Content-TypeRequest body content type을 application/json으로 지정
    Content-Type: application/json

    요청 파라미터

    파라미터타입필수 여부설명
    startTimeStringN검색 시작 시점
    ex) 1593848345548(timestamp)
    endTimeStringN검색 종료 시점
    ex) 1593848345548(timestamp)
    intervalStringN간격
    default:1d
    ex) 1d(1일), 1h(1시간), 1m(1분)

    요청 예시

    GET https://cloudloganalytics.apigw.fin-ntruss.com/api/{regionCode}-v1/logs/count/interval?endTime=1593848345548&interval=1d&startTime=1593848345548
    HOST: cloudloganalytics.apigw.fin-ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: FJSBB4K3XnaGAvVe0Hzj3/2hfNWvgLHR1rQHW2Et2Rs=
    x-ncp-apigw-timestamp: 1593848345548
    x-ncp-iam-access-key: 11IKBWgQegM4DwiJL4mo
    
    curl -X GET "https://cloudloganalytics.apigw.fin-ntruss.com/api/{regionCode}-v1/logs/count/interval?endTime=1593848345548&interval=1d&startTime=1593848345548" 
    -H "accept: application/json" 
    -H "x-ncp-iam-access-key: 11IKBWgQegM4DwiJL4mo" 
    -H "x-ncp-apigw-timestamp: 1594031083481" 
    -H "x-ncp-apigw-signature-v2: bNwDbkLNYmkMoklTrUBYYWak4JS2Zt6w7zn8KXyhV7w=" 
    

    응답 예시

    {
      "code": 0,
      "message": "요청이 정상적으로 처리되었습니다",
      "result": {
        "chartData": [
          [
            "06-29",
            0
          ],
          [
            "06-30",
            0
          ],
          [
            "07-01",
            0
          ],
          [
            "07-02",
            13709
          ],
          [
            "07-03",
            17292
          ],
          [
            "07-04",
            17149
          ],
          [
            "07-05",
            17204
          ],
          [
            "07-06",
            7496
          ]
        ]
      }
    }
    

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.