---
schema_version: "1"
id: b09d9361ec39d57281d4212384dd7a2e51b86b51c7f9c19843f896bcb11ef1da
title: 低速クエリ
collection: tableau
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/tableau/current/ja-jp/server-linux/rmt-incidents-slow-query.md
canonical_url: https://help.tableau.com/current/server-linux/ja-jp/rmt-incidents-slow-query.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 78c1e5141782edce6af2bc7f8e92d217356b24beb50e8719240d7287b2748209
description: Understand and configure slow query incidents in the Resource Monitoring Tool.
---
[メイン コンテンツに進む](#main-content)

# 低速クエリ インシデント

_低速クエリ_ インシデントは、データのクエリに時間がかかりすぎて完了できない場合にトリガーされます。既定では、データ クエリの実行に 30 秒以上かかる場合に低速クエリ インシデントで警告がトリガーされます。

しきい値は、RMT　サーバー Web インターフェースを使用して構成するか、構成ファイル `config.json` を更新することによって構成できます。

低速クエリ インシデントのしきい値を設定するには、\[**管理**\] メニューの \[**構成**\] を選択し、\[**インシデント**\] タブに移動します。

<table style="width: 100%;" class="simple-table">
                            <colgroup><col>
                            <col>
                            <col>
                            </colgroup><thead>
                                <tr>
                                    <th>キー</th>
                                    <th>必須か?</th>
                                    <th>説明</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><b>重大度</b>
                                    </td>
                                    <td>必須</td>
                                    <td>
                                        <p><a href="https://help.tableau.com/current/server-linux/ja-jp/rmt-incidents-index-incidents.htm#incident-severity-levels">「インシデントの重要度レベル」</a>を参照してください。</p>
                                    </td>
                                </tr>
                                <tr>
                                    <td><b>期間</b>
                                    </td>
                                    <td>必須</td>
                                    <td>クエリが低速であるとみなされるまでの最短時間。値は秒単位で指定します。</td>
                                </tr>
                            </tbody>
                        </table>

低速クエリ インシデントを定義する `config.json` スニペットの例:

```
{  
 "monitoring":  {  
    "incidents":  {  
      "triggers":  [  
        {  
          "counter":  "DataQueryDuration",  
          "severity":  "critical",  
          "threshold":  45000  
        }  
      ]  
    }  
  }  
}
```

この低速クエリ インシデントは、データ クエリの実行に 45 秒以上かかる場合に起動します。

インシデントは環境ごとに構成できます。たとえば、データ クエリの実行に 30 秒以上かかる場合に識別子が “staging-environment” となり警告をトリガーする環境では、構成が次のようになります。

```
{  
  "environments":  {  
    "staging-environment":  {  
     "monitoring":  {  
       "incidents":  {  
          "triggers":  [  
            {  
              "counter":  "DataQueryDuration",  
              "severity":  "warning",  
              "threshold":  30000  
            }  
          ]  
        }  
      }  
    }  
  }  
}
```

   
| キー | データ型 | 必須か? | 説明 |
| --- | --- | --- | --- |
| `counter` | 文字列 | 必須 | 低速クエリ インシデントでは、`DataQueryDuration` 識別子を使用します。 |
| `severity` | 文字列 | オプション | [「インシデントの重要度レベル」](https://help.tableau.com/current/server-linux/ja-jp/rmt-incidents-index-incidents.htm#incident-severity-levels)を参照してください。既定値: `Warning` |
| `threshold` | 数値 | 必須 | クエリが低速であるとみなされるまでの最短時間。値はミリ秒単位で指定します。 |

## 実行可能なユーザー

**"Server/Environment Management (サーバー/環境管理)"** の役割を持つ Resource Monitoring Tool 管理者や Resource Monitoring Tool ユーザー。