Wiki source code of Create Scheduler Event
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | 定时报告/对子客户安排报告 | ||
2 | |||
3 | |||
4 | |||
5 | |||
6 | |||
7 | 模板定义了报告**中的内容,**而调度程序则确定报告的**交付时间**和**对象**。 | ||
8 | |||
9 | 在本指南中,我们将逐步介绍在 ThingsEye 中使用报告的基本步骤,并为两个不同的客户创建一个配置了自动交付的报告模板。 | ||
10 | |||
11 | |||
12 | = **1. Create the report template** = | ||
13 | |||
14 | **默认你已知晓如何创建报告模板,如果不清楚请查阅这个WIKI:[[Create report>>doc:Main.Report Guide.WebHome]]** | ||
15 | |||
16 | |||
17 | ---- | ||
18 | |||
19 | = **2. Scheduling the report for customers** = | ||
20 | |||
21 | **正确调度的要点** | ||
22 | |||
23 | 为确保正确生成报告并包含准确的数据,您必须指定: | ||
24 | |||
25 | * **报告收件人** – 将接收生成报告的用户(例如,经理或客户)。 | ||
26 | * **用户帐户** – 将用于生成报告的帐户。这定义了应用于报表的数据范围和权限。 | ||
27 | |||
28 | 例: | ||
29 | |||
30 | * 如果报告应仅包括**客户 A** 拥有的设备,则必须在计划报告时将**用户**字段设置为属于客户 A 的用户的电子邮件地址。同样,要为**客户 B** 收件人安排报告,请在**用户**字段中使用客户 B 用户的电子邮件地址。 | ||
31 | |||
32 | **这可确保报告仅显示该特定用户可访问的设备和数据。** | ||
33 | |||
34 | ---- | ||
35 | |||
36 | == **2.1 Scheduling a report for CustomerA users** == | ||
37 | |||
38 | 首先,我们将为所有客户 A 用户设置自动发送报告。 该报告将代表该客户的管理员 Alec 生成。 | ||
39 | |||
40 | * 转到“**报告**”页面上的“**计划**”选项卡。 | ||
41 | * 点击右上角的“**+ 计划报告**”以创建新的计划程序事件。 | ||
42 | |||
43 | [[image:1757991254381-634.png||height="721" width="1107"]] | ||
44 | |||
45 | ---- | ||
46 | |||
47 | * 在**计划**对话框中,提供以下详细信息: | ||
48 | * 为您的日程安排事件指定一个清晰的**标题**,例如:(% style="background-color:inherit; color:inherit; font-size:inherit" %)Report for CustomerA | ||
49 | * **事件类型** - 始终设置为**“创建报表**”。 | ||
50 | * **报告模板** – 选择之前创建的每日设备警报报告模板。 | ||
51 | * **用户** – 指定将代表其生成报告的用户帐户:**Alec@thingseye.io** (Alec— 客户 A 管理员)。 | ||
52 | |||
53 | [[image:1757991512124-527.png||height="723" width="1110"]] | ||
54 | |||
55 | ---- | ||
56 | |||
57 | * 设置**收件人**: | ||
58 | ** 在“**收件人**”字段中,单击**新建**以创建新的收件人组。 | ||
59 | *** 输入通知接收方组的**名称**。 | ||
60 | *** 选择**客户用户**筛选器。 | ||
61 | *** 将**客户**设置为**客户 A**。 | ||
62 | *** 单击“**添加**”。 | ||
63 | |||
64 | [[image:1757991797040-630.png||height="723" width="1111"]] | ||
65 | |||
66 | ---- | ||
67 | |||
68 | * **通知模板**和发送方式: | ||
69 | ** 选择现有通知模板(定义报告的传递方式)并对其进行编辑。 | ||
70 | ** 将**电子邮件**添加为**与 Web** 一起的传递方式。单击“**下一步**”。 | ||
71 | ** 添加将附加 **PDF 报告**的**电子邮件通知**的**主题和正文**文本。单击“**保存**”。 | ||
72 | |||
73 | [[image:1757991868588-546.png||height="722" width="1112"]] | ||
74 | |||
75 | [[image:1757992829865-745.png||height="722" width="1112"]] | ||
76 | |||
77 | [[image:1757992985183-979.png]] | ||
78 | |||
79 | ---- | ||
80 | |||
81 | = **3. Set up the schedule** = | ||
82 | |||
83 | * ((( | ||
84 | Go to the **Schedule** tab. | ||
85 | ))) | ||
86 | * **Start time** – set the date and time of the first run. | ||
87 | * **Time zone** – choose the applicable time zone. | ||
88 | * Enable **Repeat**: | ||
89 | ** **Interval** – select **Daily**. | ||
90 | ** **End date** – set an end date or leave blank for ongoing delivery. | ||
91 | * Finally, click “**Create**” to save and apply the scheduler event. | ||
92 | |||
93 | Now, every day at the scheduled time, all Customer A users will automatically receive a report with the latest information about their device alarms. | ||
94 | |||
95 | [[image:1757994096517-904.png||height="720" width="1118"]] | ||
96 | |||
97 | |||
98 | ---- | ||
99 | |||
100 | = **3. Scheduled events result** = | ||
101 | |||
102 | Each user from customerA receives their own individual report containing only the entities they have access to. | ||
103 | |||
104 | The system automatically sends the reports daily at the scheduled time, without any manual intervention. | ||
105 | |||
106 | At the time specified in the scheduled events, all users of Customer A will receive notifications along with the generated report on their device alarms. | ||
107 | |||
108 | Notifications will be delivered through two channels: | ||
109 | |||
110 | **~1. Web UI notification** | ||
111 | |||
112 | * A notification about the generated report will appear in the ThingsEye Web UI. | ||
113 | * Tenant Users can open the report directly within the ThingsEye interface. | ||
114 | |||
115 | (% class="box" %) | ||
116 | ((( | ||
117 | **Important:** | ||
118 | |||
119 | * Only Tenant Users can view generated reports directly in the ThingsEye Web UI. | ||
120 | * Customer users do not have access to reports in the Web UI — they can only receive them through **Email** or **Slack**. | ||
121 | If your recipients are customer users, make sure at least one of these delivery channels is selected. | ||
122 | ))) | ||
123 | |||
124 | [[image:1757994928716-266.png||height="373" width="1098"]] | ||
125 | |||
126 | ---- | ||
127 | |||
128 | **2. Email notification** | ||
129 | |||
130 | * An email will be sent to the user with the subject and message you configured in the notification template. | ||
131 | * The email will have the report attached as a PDF file, which can be opened and viewed in the browser or downloaded. | ||
132 | |||
133 | [[image:1757995049919-870.png||height="670" width="1095"]] |