--- title: "CreateOrUpdateMetricsGrpDto" slug: "common-apidatatype-cicreateorupdatemetricsgrpdto" tags: ["Classic"] updated: 2026-09-17T09:57:14Z published: 2026-09-17T09:57:14Z canonical: "api.ncloud-docs.com/common-apidatatype-cicreateorupdatemetricsgrpdto" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # CreateOrUpdateMetricsGrpDto Classic/VPC環境で利用できます。 監視項目グループを作成したり、変更したりします。 ## 構文 構文は次の通りです。 ``` private String prodKey; private String groupName; private String groupDesc; private Set metricsGroupItems; private boolean temporaryGroup; private String id; ``` ## フィールド フィールドの詳細は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `prodKey` | String | Required | 商品の cw_key | | `groupName` | String | Required | 監視項目グループの名前 - 1~100 | | `groupDesc` | String | Optional | 監視項目グループの説明 - 300以下 | | `metricsGroupItems` | Set<[MetricsGroupItem](/docs/ja/common-apidatatype-cimetricsgroupitem)> | Required | 監視項目の指定 - 1以上 | | `temporaryGroup` | Boolean | Required | 監視項目グループを作成するかどうか - `true` \| `false` - `true`の場合は監視項目グループを作成せずに Event Ruleを作成 | | `id` | String | Optional | 監視項目グループ ID |