You can edit the XML representation of a monitor model
in the XML editor directly if you prefer, rather than using the form
editor.
About this task
To edit in the XML editor rather than in the form editor,
complete the following steps:
Procedure
- Click the tab at the bottom of the editor that displays
the name of your file (my_filename.mm).
- Edit the XML representation of the monitor model. When
you try to return to the form editor, some of the XML text is validated.
If the validation detects that the XML document is not well formed,
you cannot return to the form editor until the error is fixed. Semantic
and syntactic validation errors are displayed in the Problems view
and marked in the XML file.
Results
When you go from the form editor to the XML editor, the XML
representation of the in-memory model is computed and displayed, even
if there are unsaved changes. You can move back and forth between
the XML editor and the form editor, provided the XML remains well
formed.
Important: If you edit the XML directly, be sure
that you maintain the correct order of elements and that like elements
are grouped together. The following list shows the required ordering
of elements within monitoring contexts:
<monitoringContext>
<description>
<trigger>
<inboundEvent>
<outboundEvent>
<metric>
<counter>
<stopwatch>
<monitoringContext>