Skip to main content
ServiceManagement
Availability8.6.0 or later

Charts and Graphs

Render results as charts

Tables

Formatted report tables

Calls to Action

Trigger actions from alerts

Template Context Data

Objects available to templates
Template Editor for Alerts and Reports The GermainUX Template Editor defines the content, formatting, charts, tables, links, and actions included in alerts and reports.

Open a Template

When editing a report template, use View to preview the generated report and verify the result.

Charts and Graphs

Report templates can render query results as charts. In these examples, context.at(0) refers to the first report result set. The .inline(800, 400) method embeds a chart at 800 × 400 pixels.

Area Chart

Edit a Template: Area Chart
Example data: Use DATE for the horizontal axis, VALUE for the vertical axis, and NAME to identify each series:

Bar Chart

Edit a Template: Bar Chart
Example data:

Histogram

Edit a Template: Histogram
The following expression renders SESSION_DURATION with a bucket size of 10 and uses BROWSER to identify the series:

Pie Chart

Edit a Template: Pie Chart

Ring Chart

Edit a Template: Ring Chart

Trend Chart

Edit a Template: Trend Chart
The following expression creates a daily trend using DATE, VALUE, and NAME. The trend chart automatically fills gaps in the timeline:
Use the ${links} shortcut variable to direct recipients to a GermainUX dashboard, drill-through view, or Analysis screen.

Dashboard with a Predefined Time Range

Drill-Through for a KPI and Time Range

Analysis Screen for a Specific Data Point

Build methods in the same order as the corresponding GermainUX navigation path:

Tables

GermainUX provides utility functions for generating formatted tables from report results.

Simple Result Table

Custom Table Styles

Custom Column Labels

Number Formatting

This example limits the fractional part to three digits and appends a percent sign:

Date and Time Formatting

Duration Formatting

Calls to Action

A call to action (CTA) allows an alert recipient to trigger a configured GermainUX action by clicking a link. Examples include:
  • Starting, stopping, or restarting an application, service, server, or database
  • Creating a ticket in an external system
  • Updating a database
  • Executing SQL, a script, an SSH command, or a local program
  • Generating a report
An alert can contain multiple customized action links.
Only provide action links to authorized recipients. GermainUX permissions and the target system’s security controls should determine whether an action can execute.

Service-Restart Example

This example executes the restartservice action and passes the service name through app and the hostname through server. The <#if> condition prevents GermainUX from generating the link when any required value is missing. It checks:
  • context.fact
  • context.fact.name
  • context.fact.system
  • context.fact.system.hostname

Template Context Data

Templates can reference the following root objects: The structure of context depends on alertType. Each alert type can expose different objects, but the structure remains consistent for alerts of the same type.

SLA Alert Context

For SLA alerts, context.fact can contain one of these fact types:
Note: Statistical SLA alerts do not provide a fact object.

Fact Definitions

See Data Model and Facts for the fields available to each fact type.

Get Help

Contact GermainUX Support

The GermainUX team helps you get up and running faster, empower your team, turn data into actionable insights, and optimize performance to deliver measurable business outcomes.

Can't find what you need?

Search all GermainUX docs with Ctrl + K, or use the feedback buttons at the bottom of this page to tell us what is missing.

The content of this document is proprietary to GERMAIN SOFTWARE.