龙虎赌博

This is a translation of the original English documentation page. Help us make it better.

25 System information

説明

これらのパラメーターと、各ダッシュボードウィジェットフィールドオブジェクトの有効なプロパティ値を使用することで、dashboard.createメソッドおよびdashboard.updateメソッドでシステム情报ウィジェットを设定できます。

ウィジェットのfieldsプロパティは、ダッシュボードの作成または更新時に検証されません。 これにより、ユーザーは组み込みウィジェットを変更したり、カスタムウィジェットを作成したりできますが、ウィジェットを误って作成または更新してしまうリスクも生じます。 システム情报ウィジェットを正常に作成または更新するには、以下の表に记载されているパラメーターの动作を参照してください。

Parameters

The following parameters are supported for the System Information widget.

Parameter type name value
Refresh interval 0 rf_rate 0 - No refresh;
10 - 10 seconds;
30 - 30 seconds;
60 - 1 minute;
120 - 2 minutes;
600 - 10 minutes;
900 - (default) 15 minutes.
Show 0 info_type 0 - (default) System stats;
1 - High availability nodes.

次の例は、System informationウィジェットのダッシュボードウィジェットフィールドオブジェクトの设定を説明することだけを目的としています。 ダッシュボードの设定の詳細については、dashboard.createを参照してください。

Configuring a System information widget

Configure a System information widget that displays system stats with a refresh interval of 10 minutes.

Request:

{
           "jsonrpc": "2.0",
           "method": "dashboard.create",
           "params": {
               "name": "My dashboard",
               "display_period": 30,
               "auto_start": 1,
               "pages": [
                   {
                       "widgets": [
                           {
                               "type": "systeminfo",
                               "name": "System information",
                               "x": 0,
                               "y": 0,
                               "width": 12,
                               "height": 5,
                               "view_mode": 0,
                               "fields": [
                                   {
                                       "type": 0,
                                       "name": "rf_rate",
                                       "value": 600
                                   }
                               ]
                           }
                       ]
                   }
               ],
               "userGroups": [
                   {
                       "usrgrpid": 7,
                       "permission": 2
                   }
               ],
               "users": [
                   {
                       "userid": 1,
                       "permission": 3
                   }
               ]
           },
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "dashboardids": [
                   "3"
               ]
           },
           "id": 1
       }

参照