Visual model elements

The visual model definition in the monitor model can optionally associate a diagram representation with each monitoring context and KPI context. This diagram is displayed in the dashboards in the Diagram portlet. You can use the visual model to attach a Scalable Vector Graphics (SVG) diagram to the context and specify how the diagram is annotated based on the values of key performance indicators (KPIs) and metrics at run time.

Diagrams can be customized in the following ways:
  • By setting a text value somewhere in the diagram
  • By changing the fill or outline color associated with a set of SVG shapes
  • By showing or hiding a set of diagram elements
  • By associating a shape with a context ID, so that inter-diagram navigation can be used

Each type of customization can be conditionally applied based on the values of metrics, counters, or stopwatches in the context with which the visualization is associated. KPI values can also be referenced in these conditions. For visual model action conditions and the textValue expressions for SetTextType, use an XML Path Language (XPath) 2.0 expression as specified in Expression support.

In the expressions, references can be made to metrics, counters, and stopwatches in monitoring contexts, and to KPI values in KPI contexts.

The following expression returns the sum of two numeric metrics with a counter:
MyFirstMetric + MySecondMetric + MyCounter

The sections that follow describe each element in the visual model portion of the monitor model XML schema.