GetMetricsGroup
    • PDF

    GetMetricsGroup

    • PDF

    Article Summary

    개요

    감시 항목 그룹(템플릿) id로 감시 항목 그룹에 대한 상세정보를 조회합니다.

    요청

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/metrics/query/{prodKey}/{id}
    Method: GET
    

    요청 헤더

    공통설정에 명시된 요청헤더가 필요합니다.

    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    요청 파라미터

    파라미터명필수 여부타입제약사항설명
    prodKeyYString상품의 cw_key
    idYString감시 항목 그룹(템플릿)의 id

    예시

    요청 예시

    아래는 상품의 cw_key가 "xxxxxxxxxxxxxxxxxx" 인 상품에 속하는 감시 항목 그룹(템플릿) 중 감시 항목 그룹 Id가 "metricGroupId001"인 감시 항목 그룹을 조회하는 예시입니다.

    GET /cw_fea/real/cw/api/rule/group/metrics/query/xxxxxxxxxxxxxxxxxx/metricGroupId001
    Host: cw.apigw.ntruss.com
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    응답 예시

    {
      "createTime": 1589769312574,
      "domainCode": "PUB",
      "groupDesc": "서버 사용량에 대한 Metric Group(template) 입니다.",
      "groupName": "서버 사용량",
      "id": "metricGroupId001",
      "idDimension": "instanceNo",
      "metrics": [
        {
          "calculation": "AVG",
          "condition": "GT",
          "dimensions": [
            {
              "dim": "type",
              "val": "svr"
            }
          ],
          "duration": 1,
          "eventLevel": "INFO",
          "metric": "avg_write_cnt",
          "metricGroupItemId": "metricGroupItemId001",
          "options": {
            "Min1": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ],
            "Min5": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ],
            "Min30": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ],
            "Hour2": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ],
            "Day1": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ]
          },
          "threshold": 0.7
        },
        {
          "calculation": "AVG",
          "condition": "GT",
          "dimensions": [
            {
              "dim": "type",
              "val": "svr"
            }
          ],
          "duration": 1,
          "eventLevel": "INFO",
          "metric": "avg_cpu_used_rto",
          "metricGroupItemId": "metricGroupItemId002",
          "options": {
            "Min1": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ],
            "Min5": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ],
            "Min30": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ],
            "Hour2": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ],
            "Day1": [
              "COUNT",
              "SUM",
              "MAX",
              "MIN",
              "AVG"
            ]
          },
          "threshold": 2
        }
      ],
      "prodKey": "xxxxxxxxxxxxxxxxxx",
      "prodType": "system",
      "regionCode": "KR",
      "temporaryGroup": false,
      "updateTime": 1589770306595
    }
    
    

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

    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.