GetMetricsGroup
    • PDF

    GetMetricsGroup

    • PDF

    Article summary

    Summary

    This API queries the detailed information of a monitored item group using the ID of the monitored item group (template).

    Request

    API URL

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

    Request header

    The request headers specified in common settings are required.

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

    Request Parameters

    Parameter NameRequirement statusTypeRestrictionsDescription
    prodKeyYStringProduct's cw_key
    idYStringID of the monitored item group (template)

    Example

    Request example

    The code below shows an example of querying a monitored item group with the ID "metricGroupId001" that is in the monitored item group (template) of the product with cw_key "xxxxxxxxxxxxxxxxxx".

    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}
    

    Response example

    {
      "createTime": 1589769312574,
      "domainCode": "PUB",
      "groupDesc": "The metric group (template) related to the server usage.",
      "groupName": "Server usage",
      "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
    }
    
    

    Was this article helpful?

    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.