PingPlotter Cloud Manual
Variables
PingPlotter Cloud has many different variables you can use in the templates for the Send an Email, Send to Slack, Send to Teams, and Make an HTTP Request alert actions, and in Email Templates. To edit an email on an action, click Customize Template.
Each variable is filled in with details about the alert when the action runs. Some variables can also attach data and images to an email.
There are two sets of variables:
- Variable List - for Per target actions, which describe one target.
- Combined Action Variables - for Combined actions and groups, which describe several targets at once.
Variable List
{{AgentName}} - Name of Cloud Agent
{{AgentUniqueId}} - UniqueID of Cloud Agent
{{SessionId}} - Unique ID of the Target Session
{{CustomFields.CustomFieldName}} - Returns the value of the Custom Field for the Agent (replace CustomFieldName with the name of your Custom Field), e.g. {{CustomFields.Manager}}
{{QualityDefinitionId}} - Unique ID of the Quality Definition
{{QualityDefinition}} - Name of Quality Definition used to determine the quality of the Target
{{LatestQuality}} - Last calculated Quality Score for the Target (good, fair, or poor)
{{QualityScore}} - Numerical value of the Quality Score for the Target (0 -100)
{{Host.IPAddress}} - Host IP Address
{{Host.HostName}} - hostname in DNS
{{Host.AliasName}} - Custom hostname alias
{{Host.PreferredName}} - First non empty value for: alias, DNS hostname, IP Address
{{Host.FullDisplayName}} - Preferred name followed by IP Address in parenthesis
{{AlertName}} - Name of Alert that fired
{{ConditionFailedCount}} - The number of times an alert condition has failed
{{DestinationHost.HostID}} - Destination's Host Identification Number
{{DestinationHost.IPAddress}} - Destination's Host IP Address
{{DestinationHost.HostName}} - Destination's hostname in DNS
{{DestinationHost.AliasName}} - Destination's custom hostname alias
{{DestinationHost.PreferredName}} - Destination's first non-empty value for: alias, DNS hostname, IP Address
{{DestinationHost.FullDisplayName}} - Destination's preferred name followed by IP Address in parenthesis
{{ConfigName}} - Name of configuration (display + engine parameters)
Time Formatting Information
The {{Now}} variable, along with time labels on attached graphs and images, is formatted according to the specified time zone and format. Note: this applies exclusively to the "Send Email" action.
{{TimeFormat}} - Displays the value set in the Time Format field, e.g. 2024.12.05
{{TimeZone}} - Displays the value set in the Time Zone field, e.g. America/Boise (GMT-07:00)
{{Now}} - Displays a complete date-time using the configured time zone and time format variables, e.g. MM/DD/YYYY hh:mm:ss AM/PM
{{Now.Second}} - Display current time second
{{Now.Minute}} - Display current time minute
{{Now.Hour}} - Display current time hour
{{Now.Day}} - Number date for current day
{{Now.Month}} - Number date for current month
{{Now.DayOfWeek}} - Display current day of the week
{{UtcNow}} - Coordinated Universal Time, 00/00/0000 hr:min:sec AM/PM
{{UtcNow.Second}} - Coordinated Universal Time, display current second
{{UtcNow.Minute}} - Coordinated Universal Time, display current minute
{{UtcNow.Day}} - Coordinated Universal Time, number date for current day
{{UtcNow.Hour}} - Coordinated Universal Time, display current hour
{{UtcNow.DayOfWeek}} - Coordinated Universal Time, current day of the week
{{UtcNow.Month}} - Coordinated Universal Time, number date for current month
{{HistoryData}} - Display historical data in a chart; Hop, IP Address, and Hostname. Below, rows of sample values are displayed
Attachments
Customize attachments by editing the parameters within the quotations. You can also customize how line items show up by wrapping them in HTML header tags.
Note: Attachment variables can only be used in email alerts.
{{#attach_data '{of_last: "60 seconds"}' }} - Export data in PP2 format for the specified time period, limited to the specified number of samples
{{#attach_timegraph '{of_last: "60 seconds", width: 1400, height: 400}' }} - Timeline image for specified time period drawn to specified width and height
{{#attach_tracegraph '{of_last: "60 seconds", width: 1400, height: 400}' }} - Trace Grid and Latency Graph image for specified time period drawn to specified width and height
{{#attach_image '{of_last: "60 seconds", width: 1400, height: 400}' }} - Screenshot image of for specified time period drawn to specified width and height (includes Timeline, Trace Grid, Latency Graph)
Combined Action Variables
Combined actions describe a group of targets, so they have their own set of variables. The default Combined email template already uses most of these, including a table of every triggered target.
Per target variables like {{AlertName}}, {{AgentName}}, {{Host.PreferredName}}, {{CustomFields.CustomFieldName}}, and {{Now}} still work. They describe the target that caused the action to run (or the first triggered target). Quality Score variables are empty, and attachment variables aren't supported for Combined actions.
{{GroupName}} - Name of the group
{{ConditionName}} - Name of the tier that ran, e.g. Tier 2
{{#IsGroup}} ... {{/IsGroup}} - Only shows the text in between if the action is part of a group with tiers. Use {{^IsGroup}} ... {{/IsGroup}} for text that only shows when it isn't.
{{TransitionType}} - "Triggered" or "Recovered"
{{ThresholdCount}} - Number of targets needed to run the action, e.g. the 5 in "When 5 or more targets have been triggered"
{{ActiveTargetCount}} - Number of targets that are currently triggered
{{DurationFormatted}} - The action's delay, e.g. "5 minute(s)". Empty if the action has no delay, so wrap it in {{#DurationFormatted}} ... {{/DurationFormatted}} to only show text when there is one.
{{AlertConditionType}} - The condition used by the alert, e.g. Quality Score Threshold
Listing the triggered targets
Use {{#each FailingMembers}} ... {{/each}} to repeat part of the template once for each triggered target. Inside it, these variables describe that target:
{{TargetName}} - Name of the target
{{TargetIp}} - IP address of the target
{{AgentName}} - Name of the target's Agent
{{AlertName}} - Name of the alert that triggered for this target (useful for linked groups)
{{AlertConditionType}} - The condition used by that alert
{{AddedAt}} - When the target started counting toward the group
{{SessionId}} - Unique ID of the target. Use it to link to the target, e.g. https://pingplotter.cloud/targets/{{SessionId}}
{{Host.PreferredName}}, {{CustomFields.CustomFieldName}} - These work the same way as in the Variable List above
Large groups only list some of the triggered targets. Use these to let the reader know:
{{#IsTruncated}} ... {{/IsTruncated}} - Only shows the text in between if some targets weren't listed
{{FailingMemberCount}} - Number of targets listed
{{TotalFailingCount}} - Total number of triggered targets
Example
{{GroupName}}: {{ActiveTargetCount}} targets triggered{{#DurationFormatted}} for at least {{DurationFormatted}}{{/DurationFormatted}}.