||The system generates a unique record number for the
||Enter a unique name to describe what metrics will be
Select the table that you want to collect metrics
for. A metric can only apply to one table.
Note: The list shows only tables and
database views that are in the same scope as the
||Select the table column you want to monitor for
changes. Metrics only work on audited fields. Creating a
metric for non-audited field produces unreliable
||Select what values this metric will generate.
- Field value duration:
This type of metric measures the duration of time
from when the value of the specified field is set
until it’s changed. A Field value duration metric
can optionally specify a script. The script can
either return a duration value or set the answer
variable to false to stop processing the metric.
For example, the baseline incident metrics stop
calculating duration when an incident's Active
field is set to false. The script can also carry
out any other action such as closing the duration
of other metrics defined on the same record. See
the example script for more information.
- Script calculation: This
type of metric creates a metric instance using a
script. The script has access to the current row
in the table (for example an incident) and the
metric definition. The script can then perform any
calculation and insert data into the
metric_instance table. The calculation does not
have to result in a duration. It can calculate any
type of value and store it in the metric instance
||Select this checkbox to display the metric on a timeline.
||Select this checkbox to monitor changes for this
||[Optional] Specify what data the metric monitors and
||Enter the script you want the metric to run to either
calculate a duration or perform some calculation on the