How to create health check reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2023 10:40 AM
How to create health check reports for Operational health check report prior to country opening hours and for 2 shifts for global services.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2023 12:58 PM
Hi @Chaitali Vartak ,
Hope you are doing great.
You can create health check reports for Operational health check report prior to country opening hours and for 2 shifts for global services, try usin below steps:
Define the Health Check Report Requirements: Determine the specific metrics and information you want to include in the health check reports.
Utilize ServiceNow's reporting functionality to schedule the generation and delivery of the health check reports. This can be done by creating a scheduled report that runs at the desired frequency (e.g., daily or weekly) and captures the required data.
Customize Report Filters: Modify the report filters to align with your requirements for prior to country opening hours and 2 shifts. You can use specific time filters to restrict the report data to the desired timeframes.
Enhance Data Visualization: You can customize the report layout, add charts or graphs, and highlight key performance indicators to provide a clear understanding of the operational health.
reference code to create a scheduled report for health check:
// Create a new scheduled report record
var scheduledReport = new GlideRecord('sysauto_report');
scheduledReport.initialize();
scheduledReport.name = 'Operational Health Check';
scheduledReport.description = 'Scheduled report for operational health check';
scheduledReport.active = true;
scheduledReport.run_type = 'schedule';
scheduledReport.run_frequency = 'daily'; // Adjust the frequency as per your requirements
scheduledReport.save();
// Configure the report parameters
var reportParams = new GlideRecord('sysauto_report_params');
reportParams.initialize();
reportParams.report = scheduledReport.sys_id;
reportParams.name = 'Operational Health Check Parameters';
reportParams.table = 'incident'; // Adjust the table based on the data you need to include in the report
reportParams.filter = '<your filter conditions here>'; // Apply the desired filter conditions to capture the relevant data
reportParams.save();
Modify the script according to your requirement.
Regards,
Riya Verma