UpdateMetricsGroup
    • PDF

    UpdateMetricsGroup

    • PDF

    Article Summary

    概要

    監視項目グループ(テンプレート)を修正します。

    リクエスト

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/metrics/update
    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}
    

    リクエストボディ

    CreateOrUpdateMetricsGrpDto

    リクエスト例

    以下は、監視項目グループ(テンプレート)を修正する例です。 監視項目グループ(テンプレート)idを含め、修正事項をリクエストボディに入れてリクエストします。

    POST /cw_fea/real/cw/api/rule/group/metrics/update
    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:
    {
      "groupDesc": "サーバ使用量に対するMetric Group(template)です。",
      "groupName": "サーバ使用量",
      "id" : "metricGroupId001",
      "metricsGroupItems": [
        {
          "calculation": "AVG",
          "condition": "GT",
          "dimensions": [
            {
              "dim": "type",
              "val": "svr"
            }
          ],
          "duration": 1,
          "eventLevel": "INFO",
          "metric": "avg_cpu_used_rto",
          "threshold": 1.5
        },
        {
          "calculation": "AVG",
          "condition": "GT",
          "dimensions": [
            {
              "dim": "type",
              "val": "svr"
            }
          ],
          "duration": 1,
          "eventLevel": "INFO",
          "metric": "avg_write_cnt",
          "threshold": 0.7
        },
      ],
      "prodKey": "xxxxxxxxxxxxxxxxxx"
    }
    
    
    

    レスポンス例

    エラーなく修正が完了した場合、response bodyなしでHTTP code 200が返されます。


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

    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.