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

1 Action log

Description

These parameters and the possible property values for the respective dashboard widget field objects allow to configure the Action log widget in dashboard.create and dashboard.update methods.

Parameters

The following parameters are supported for the Action log widget.

Parameter type name value
Refresh interval 0 rf_rate 0 - No refresh;
10 - 10 seconds;
30 - 30 seconds;
60 - (default) 1 minute;
120 - 2 minutes;
600 - 10 minutes;
900 - 15 minutes.
Recipients 11 userids User ID.

Note: To configure multiple users, create a dashboard widget field object for each user.
Actions 12 actionids Action ID.

Note: To configure multiple actions, create a dashboard widget field object for each action.
Media types 13 mediatypeids Media type ID.

Note: To configure multiple media types, create a dashboard widget field object for each media type.
Status 0 statuses 0 - In progress;
1 - Sent/Executed;
2 - Failed.

Note: To configure multiple values, create a dashboard widget field object for each value.
Search string 1 message Any string value.
Sort entries by 0 sort_triggers 3 - Time (ascending);
4 - (default) Time (descending);
5 - Type (ascending);
6 - Type (descending);
7 - Status (ascending);
8 - Status (descending);
11 - Recipient (ascending);
12 - Recipient (descending).
Show lines 0 show_lines Valid values range from 1-100.

Default: 25.

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

Action logウィジェットの設定

時間でソート(昇順)したアクション操作の詳細の10のエントリを表示するアクションログウィジェットを設定します。 さらに、ユーザー"1"に電子メールを送信しようとしたが失敗したアクション操作のみの詳細を表示します。

リクエスト:

{
           "jsonrpc": "2.0",
           "method": "dashboard.create",
           "params": {
               "name": "My dashboard",
               "display_period": 30,
               "auto_start": 1,
               "pages": [
                   {
                       "widgets": [
                           {
                               "type": "actionlog",
                               "name": "Action log",
                               "x": 0,
                               "y": 0,
                               "width": 36,
                               "height": 5,
                               "view_mode": 0,
                               "fields": [
                                   {
                                       "type": 0,
                                       "name": "show_lines",
                                       "value": 10
                                   },
                                   {
                                       "type": 0,
                                       "name": "sort_triggers",
                                       "value": 3
                                   },
                                   {
                                       "type": 11,
                                       "name": "userids.0",
                                       "value": 1
                                   },
                                   {
                                       "type": 13,
                                       "name": "mediatypeids.0",
                                       "value": 1
                                   },
                                   {
                                       "type": 0,
                                       "name": "statuses.0",
                                       "value": 2
                                   }
                               ]
                           }
                       ]
                   }
               ],
               "userGroups": [
                   {
                       "usrgrpid": 7,
                       "permission": 2
                   }
               ],
               "users": [
                   {
                       "userid": 1,
                       "permission": 3
                   }
               ]
           },
           "id": 1
       }

レスポンス:

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

参照