SearchMetricList
    • PDF

    SearchMetricList

    • PDF

    Article Summary

    概要

    監視対象グループで照会できる項目(metric)リストを照会します。

    リクエスト

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw​/api​/rule​/group​/metric​/search
    Method: POST 
    

    リクエストヘッダ

    共通設定に明示されたリクエストヘッダが必要です。

    Content-Type: application/json
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    リクエストボディ

    MetricListRequest

    リクエスト例

    以下は、cw_keyが「xxxxxxxxxxxxxxxxxx」の商品で、照会条件が次のようなMetricを照会する例です。

    • dimValues:Dimension名が「type」で、その値が「cpu」

    • query:「used」という文字列が含まれているMetric

    • dimensionsSelectedList:Dimension 「cpu_idx」の値が「0」か、または「1」である場合

    POST /cw_fea/real/cw/api/rule/group/metric/search
    Host: cw.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    
    Payload:
    {
        "dimValues": [
            {
                "name": "type",
                "value": "cpu"
            }
        ],
        "query": "used",
        "dimensionsSelectedList": [
          {
            "name": "cpu_idx",
            "values": [
              "0",
              "1"
            ]
          }
        ],
        "prodKey": "xxxxxxxxxxxxxxxxxx"
    }
    
    

    レスポンス例

    {
      "metrics": [
        {
          "desc": "user ratio",
          "dimensions": [
            {
              "dim": "type",
              "val": "cpu"
            },
            {
              "dim": "cpu_idx",
              "val": "0"
            }
          ],
          "idDimension": "instanceNo",
          "metric": "used_rto",
          "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"
            ]
          },
          "prodKey": "xxxxxxxxxxxxxxxxxx",
          "unit": "%"
        },
        {
          "desc": "user ratio",
          "dimensions": [
            {
              "dim": "type",
              "val": "cpu"
            },
            {
              "dim": "cpu_idx",
              "val": "1"
            }
          ],
          "idDimension": "instanceNo",
          "metric": "used_rto",
          "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"
            ]
          },
          "prodKey": "xxxxxxxxxxxxxxxxxx",
          "unit": "%"
        }
      ],
      "prodKey": "xxxxxxxxxxxxxxxxxx"
    }
    

    この記事は役に立ちましたか?

    What's Next
    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.