GetMetricsGroup
    • PDF

    GetMetricsGroup

    • PDF

    記事の要約

    概要

    監視項目グループ(テンプレート)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.