Wiki source code of Create Scheduler Report

Last modified by Hera Guo on 2025/09/16 13:56

Hide last authors
Hera Guo 9.1 1 Table of contents:
Hera Guo 3.1 2
Hera Guo 10.1 3 {{toc/}}
Hera Guo 3.1 4
5
6
7
Hera Guo 9.1 8 The template defines **what** will be in the report, while the scheduler determines **when** and **to whom** it will be delivered.
Hera Guo 3.1 9
Hera Guo 9.1 10 In this guide, we'll walk through the basic steps of using Reporting in ThingsEye , and create a report template with automated delivery configured for two different customers.
Hera Guo 3.1 11
Hera Guo 5.1 12 = **1. Create the report template** =
Hera Guo 3.1 13
Hera Guo 10.1 14 By default, you are assumed to know how to create a report template. If not, please consult this wiki:**:[[Create report>>doc:Main.Report Guide.WebHome]]**
Hera Guo 3.1 15
16
Hera Guo 5.1 17 ----
Hera Guo 3.1 18
Hera Guo 5.1 19 = **2. Scheduling the report for customers** =
Hera Guo 3.1 20
Hera Guo 10.1 21 **Key points for correct scheduling**
Hera Guo 5.1 22
Hera Guo 10.1 23 To ensure the report is generated correctly and contains accurate data, you must specify:
Hera Guo 5.1 24
Hera Guo 10.1 25 * **Report recipients** – the users who will receive the generated report (e.g., managers or clients).
26 * **User account** – the account under which the report will be generated. This defines the data scope and permissions applied to the report.
Hera Guo 5.1 27
Hera Guo 10.1 28 **Example:**
Hera Guo 5.1 29
Hera Guo 10.1 30 * If the report should include only devices owned by **Customer A**, you must set the **User** field to the email address of a user belonging to Customer A when scheduling the report.
31 * Likewise, to schedule a report for **Customer B** recipients, use the email address of a Customer B user in the **User** field.
Hera Guo 5.1 32
Hera Guo 10.1 33 This ensures the report will only display devices and data accessible to that specific user.
Hera Guo 5.1 34
Hera Guo 3.1 35 ----
36
Hera Guo 7.1 37 == **2.1 Scheduling a report for CustomerA users** ==
Hera Guo 3.1 38
Hera Guo 10.1 39 First, we'll set up automated delivery of the report for all CustomerA users. The report will be generated on behalf of Alec , the administrator for this customer.
Hera Guo 5.1 40
Hera Guo 10.1 41 * Go to the “**Scheduling**” tab on the “**Reporting**” page.
42 * Сlick the “**+ Scheduled Report**” in the top-right corner to create a new scheduler event.
Hera Guo 5.1 43
Hera Guo 6.1 44 [[image:1757991254381-634.png||height="721" width="1107"]]
Hera Guo 5.1 45
46 ----
47
Hera Guo 10.1 48 * In the **scheduling** dialog, provide the following details:
49 ** Give your schedule event a clear title, for example: Report for Customer A
50 ** **Event type** – always set to **Create report**.
51 ** **Report template** – select the previously created Daily Devices Alarm Report template.
52 ** **User** – specify the user account on whose behalf the report will be generated: **Alec@thingseye.io** (Alec — CustomerA administrator).
Hera Guo 5.1 53
Hera Guo 6.1 54 [[image:1757991512124-527.png||height="723" width="1110"]]
Hera Guo 5.1 55
56 ----
57
Hera Guo 10.1 58 * Set the **recipients**:
59 ** In the “**Recipients**” field, click **Create new** to create a new recipient group.
60 *** Enter a **name** for the notification recipient group.
61 *** Select **Customer users** filter.
62 *** Set **Customer** to **Customer A**.
63 *** Click “**Add**”.
Hera Guo 5.1 64
Hera Guo 6.1 65 [[image:1757991797040-630.png||height="723" width="1111"]]
Hera Guo 5.1 66
67 ----
68
Hera Guo 10.1 69 * **Notification template** & delivery methods:
70 ** Select an existing notification template (defines how the report will be delivered) and edit it.
71 ** Add **Email** as a delivery method alongside **Web**. Click “**Next**”.
72 ** Add the **subject and body text** for the **email notification** to which the **PDF report** will be attached. Click “**Save**”.
Hera Guo 5.1 73
Hera Guo 6.1 74 [[image:1757991868588-546.png||height="722" width="1112"]]
75
76 [[image:1757992829865-745.png||height="722" width="1112"]]
77
78 [[image:1757992985183-979.png]]
Hera Guo 7.1 79
80 ----
81
Hera Guo 11.1 82 == **2.2 Set up the schedule** ==
Hera Guo 7.1 83
84 * (((
85 Go to the **Schedule** tab.
86 )))
87 * **Start time** – set the date and time of the first run.
88 * **Time zone** – choose the applicable time zone.
89 * Enable **Repeat**:
90 ** **Interval** – select **Daily**.
91 ** **End date** – set an end date or leave blank for ongoing delivery.
92 * Finally, click “**Create**” to save and apply the scheduler event.
93
94 Now, every day at the scheduled time, all Customer A users will automatically receive a report with the latest information about their device alarms.
95
Hera Guo 8.1 96 [[image:1757994096517-904.png||height="720" width="1118"]]
97
98
99 ----
100
Hera Guo 12.1 101 == **2.3 Result** ==
Hera Guo 8.1 102
103 Each user from customerA receives their own individual report containing only the entities they have access to.
104
105 The system automatically sends the reports daily at the scheduled time, without any manual intervention.
106
107 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.
108
109 Notifications will be delivered through two channels:
110
111 **~1. Web UI notification**
112
113 * A notification about the generated report will appear in the ThingsEye Web UI.
114 * Tenant Users can open the report directly within the ThingsEye interface.
115
116 (% class="box" %)
117 (((
118 **Important:**
119
120 * Only Tenant Users can view generated reports directly in the ThingsEye Web UI.
121 * Customer users do not have access to reports in the Web UI — they can only receive them through **Email** or **Slack**.
122 If your recipients are customer users, make sure at least one of these delivery channels is selected.
123 )))
124
Hera Guo 9.1 125 [[image:1757994928716-266.png||height="373" width="1098"]]
Hera Guo 8.1 126
127 ----
128
129 **2. Email notification**
130
131 * An email will be sent to the user with the subject and message you configured in the notification template.
132 * The email will have the report attached as a PDF file, which can be opened and viewed in the browser or downloaded.
133
134 [[image:1757995049919-870.png||height="670" width="1095"]]