# シングルメトリックゲージチャート

シングルメトリックゲージチャートを作成し、単一のメトリックが全体に対する比率を表示します。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-18077e0fc0d6d7601352ae896b094f12be3627ce%2Fdash-1668006056.png?alt=media" alt="single-metric gauge chart"><figcaption></figcaption></figure>

## データの形状 <a href="#single-metricgaugechart-datashape" id="single-metricgaugechart-datashape"></a>

`<metric value>, <total>`

## NQL 構造 <a href="#single-metricgaugechart-nqlexamples" id="single-metricgaugechart-nqlexamples"></a>

{% hint style="info" %}
[Live Dashboards NQLの例](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards-nql-examples#livedashboardsnqlexamples-single-metricgaugechart) のドキュメントを参照して、シングルメトリックゲージウィジェットのクエリ例を確認してください。
{% endhint %}

```
<devices|users>
| include <event table>
| compute temp_bad_number = <device|user>.count()
| summarize 
   <metric> = temp_bad_number.sum(), 
   <total> = count()
```

## シングルメトリックゲージ用のビジュアライゼーションフィールドの設定 <a href="#linechart-linechartspecificsettings" id="linechart-linechartspecificsettings"></a>

{% hint style="info" %}
このウィジェットに特化していない残りの設定フィールドを入力する方法を学ぶには、[Live Dashboardsの管理](https://docs.nexthink.com/platform/ja/user-guide/managing-live-dashboards#filling-in-widget-visualization-fields) ドキュメントを参照してください。
{% endhint %}

[ウィジェット追加](https://docs.nexthink.com/platform/ja/user-guide/managing-live-dashboards#adding-widgets)/[ウィジェット編集](https://docs.nexthink.com/platform/ja/user-guide/managing-live-dashboards#managing-widgets) のポップアップで、**シングルメトリックゲージチャート**オプションを**チャートタイプ**ドロップダウンから選択した後:

1. シングルメトリックゲージの表示名を作成するために、\*\*ラベル（オプション）\*\*フィールドを使用してください。
   * テキストには特殊文字を含めることができます。 **ラベル**フィールドには50文字の制限があります。
2. 例えば、指標の解釈方法、計算方法、または指標の微妙な点について説明するために、\*\*ウィジェット説明（オプション）\*\*を入力してください。
   * ウィジェット説明は、ダッシュボード内のシングルメトリックゲージウィジェットの横にある情報アイコンにカーソルを合わせることで表示されます。
3. データに基づいてゲージの出力カラーを選択し、次のように定義します:
   * 悪い (赤)
   * 普通 (黄)
   * 良い (緑)
4. あるいは、定義された制限を超えた場合にゲージの色を変更するための**評価**しきい値を定めることで、問題を迅速に特定することができます。 以下から選択してください:
   * **1つのしきい値**: 設定されたしきい値を超えるか否かにより、シングルメトリックゲージチャートは緑または赤になります。

     <figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-6001d4d1a724c1d12e118998ebb9e168b1ebebf7%2Fdash-1679651164.png?alt=media" alt="One threshold rating" width="680"><figcaption></figcaption></figure>

     * システムはしきい値を >= 演算子で評価します。 上記の例は次のように評価されます:
       * **良い**: メトリックが < 35 の場合
       * **悪い**: メトリックが >= 35 の場合
     * **Invert**を選択して、良い条件と悪い条件を反転させます。 反転された場合、上記の例は次のように評価されます:
       * **悪い**: メトリックが < 35 の場合
       * **良い**: メトリックが >= 35 の場合
   * **2つのしきい値**: 設定されたしきい値を超えるか否かにより、シングルメトリックゲージチャートは緑、黄、または赤になります。

     <figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-627dd4949ec54355beb457405a42b71c7a47e6aa%2Fdash-1679651345.png?alt=media" alt="Two threshold rating" width="680"><figcaption></figcaption></figure>

     * システムはしきい値を >= 演算子で評価します。 上記の例は次のように評価されます:
       * **良い**: メトリックが < 35 の場合
       * **普通**: メトリックが >= 35 かつ メトリックが < 65 の場合
       * **悪い**: メトリックが >= 65 の場合
     * **Invert**を選択して、良い条件と悪い条件を反転させます。 反転された場合、上記の例は次のように評価されます:
       * **悪い**: メトリックが < 35 の場合
       * **普通**: メトリックが >= 35 かつ メトリックが < 65 の場合
       * **良い**: メトリックが >= 65 の場合

***

関連トピック

* [KPI](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/kpi)
* [折れ線グラフ](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/line-chart)
* [棒グラフ](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/bar-chart)
* [マルチメトリックゲージチャート](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/multi-metric-gauge-chart)
* [テーブル](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/table)
* [見出し](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/heading)
* [フィルターウィジェット](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/filter-widget)
* [タイムフレームピッカー](https://docs.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/timeframe-picker)
