Page focused on allowing users to interact with Managed Alerts that pertain to them, broken down by when action should be taken.
User needs WRITE permissions on the %Ens_Alerts resource to make changes to Managed Alerts.
Displayed name of this page.
User needs READ permissions on the %Ens_Alerts resource to view this page.
Get the (localized) name of the page.
Get the (localized) title string for the page.
Actually update the alert on the server.
Get the HTML content for the right hand tab. Note that we check for WRITE permissions on the %Ens_Alerts resource in
Fetch the Managed Alert data that is exposed via JSON.
Ensure that we check edits to Managed Alerts.
Helper function to add a class to an element.
Adjust the size of the page to fit the tables in correctly.
Helper function used as an alphabetical array sort function. Note that if the objects in the array include information about the NextActionTime, the sort will take that into account for equivalent strings, and will sort in ascending ID order if not.
Build an index based on NextAction so that we have our time-based buckets.
Helper method to build secondary indices for sorting on other fields defined in the runtime
zenPage._secondaryobject. The sorting happends within the buckets that already exist for the main page, and occurs on demand as a user may not want to sort on any of these fields and there is no need to do the work unless it is explicitly requested.
Helper method to make sure that the user doesn't unknowingly lose edits to an alert.
Helper method to create a "bucket" for indexing purposes.
Get the localised strings for the buckets we expose.
Get the HTML for the table.
Initialize the metadata for rendering the table.
Helper function to determine whether timestamp lies in the past.
This client event, if present, is fired when the page is first loaded or whenever it is resized.
If this is called at load time, then load will be true.
Reload the JSON data from the server and redraw the page.
Helper function to remove a class from an element.
Re-render the table and inner menus for the page.
Render the menu and table for the page.
Handle a row being clicked on by the user.
Control the update of the detail pane on the right hand side.
Handle user selection of a bucket.
Handle user click on a menu.
User clicked a link for Trace. Display the Visual Trace page.
Set up timer to refresh the contents of the page. Currently hard-coded to 20 seconds.
Stop the timer that triggers automatic refreshes of the data on the page.
Helper function used as an array sort function for timestamps. Note that if the timestamps match, the values will be sorted in ascending ID order.
Helper function to determine whether timestamp occurred on or before date.
Callback to expand and contract all the previous actions in the alert detail pane.
Function to expand and contract the display of a specific action in the alert detail pane.
Helper method to modify the sort options for the table.
Get the data from the form and submit to the server.