GetMetricsGroupList
    • PDF

    GetMetricsGroupList

    • PDF

    記事の要約

    概要

    この商品についてのすべての監視項目グループ(テンプレート)を照会します。

    リクエスト

    API URL

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

    リクエスト例

    以下は、商品のcw_keyが「xxxxxxxxxxxxxxxxxx」である商品に属するすべての監視項目グループ(テンプレート)を照会する例です。

    GET /cw_fea/real/cw/api/rule/group/metrics/query/xxxxxxxxxxxxxxxxxx
    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}
    

    レスポンス例

    {
        "metricsGroups": [
            {
                "createTime": 1589774843799,
                "domainCode": "PUB",
                "groupDesc": "サーバ使用量に対するMetric Group(template)です。",
                "groupName": "サーバ使用量002",
                "id": "monitorGrpId001",
                "metrics": [
                    {
                        "calculation": "AVG",
                        "condition": "GT",
                        "dimensions": [
                            {
                                "dim": "type",
                                "val": "svr"
                            }
                        ],
                        "duration": 1,
                        "eventLevel": "INFO",
                        "metric": "avg_write_cnt",
                        "metricGroupItemId": "metricGroupItemId001",
                        "threshold": 0.7
                    },
                    {
                        "calculation": "AVG",
                        "condition": "GT",
                        "dimensions": [
                            {
                                "dim": "type",
                                "val": "svr"
                            }
                        ],
                        "duration": 1,
                        "eventLevel": "INFO",
                        "metric": "avg_cpu_used_rto",
                        "metricGroupItemId": "metricGroupItemId002",
                        "threshold": 1
                    }
                ],
                "prodKey": "xxxxxxxxxxxxxxxxxx",
                "regionCode": "KR",
                "temporaryGroup": false,
                "updateTime": 1589774843799
            }
        ]
    }
    
    

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

    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.