---
title: 計測設定と保存済みフィルターを管理する
description: ワークスペースの計測条件を更新し、履歴を確認して、再利用するフィルターを保存します。
canonical_url: https://orchestor.io/docs/cli/workflows/measurement-configuration
markdown_url: https://orchestor.io/docs/cli/workflows/measurement-configuration.md
contentType: how-to
---

# 計測設定と保存済みフィルターを管理する

計測設定を変更できる権限で認証し、対象ワークスペースを確認してから実行します。

## 現在の設定を確認する

```bash
orc workspaces measurement-configurations get --workspace WORKSPACE_ID --json
```

設定がまだない場合は `404` が返ります。別のワークスペースを誤って選んでいないか確認してから設定を作成します。

## 計測設定を更新する

```bash
printf '%s' '{"default_location":{"level":"country","code":"JP"},"default_language":"ja-JP","platform_selection":{"mode":"explicit","ids":["MODEL_ID"]}}' \
  | orc workspaces measurement-configurations update --workspace WORKSPACE_ID --stdin --json
orc workspaces measurement-configurations get --workspace WORKSPACE_ID --json
```

更新は新しい設定リビジョンを追加し、そのリビジョンを有効にします。失敗した更新は以前の有効な設定を変更しません。返却値を読み戻し、地域、言語、モデル ID が意図した値と一致することを確認します。

## 設定履歴を確認する

```bash
orc workspaces measurement-configurations revisions list --workspace WORKSPACE_ID --limit 20 --json
```

応答に次のカーソルがある場合は、`--cursor CURSOR` を付けて次のページを取得します。

## フィルターを保存して読み戻す

```bash
printf '%s' '{"name":"Japan model filter","filter":{"countries":["JP"],"models":["MODEL_ID"],"tags":["TAG_ID"]}}' \
  | orc saved-views create --workspace WORKSPACE_ID --stdin --json
orc saved-views list --workspace WORKSPACE_ID --json
```

保存済みビューは名前とフィルターを保持します。作成結果と一覧結果で、ネストしたフィルター項目が一致することを確認します。

[workspaces リファレンス](https://orchestor.io/docs/cli/workspaces.md) · [saved-views リファレンス](https://orchestor.io/docs/cli/saved-view.md) · [ワークフロー一覧](https://orchestor.io/docs/cli/workflows.md)

---

[Documentation index](https://orchestor.io/docs/llms.txt)
