IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > Create monitor models > Defining monitor details models

Defining counters

Counters keep track of the number of occurrences of some situation or event. Counters can be incremented, decremented, or set to zero by triggers or by the arrival of inbound events.

To define a counter:


Procedure

  1. Click the Monitor Details Model tab of the editor, right-click the monitoring context (or any element of the monitoring context) in the model tree, and click New > Counter.

  2. In the Create New Counter window, type a name into the Name field and click OK. The name is limited to 256 characters. As you type the name, a default ID is created for you, although you can change it if you prefer. The ID is required and must be unique within the monitoring context. The ID must be an XML NCName (non-colonized name), which means that it must start with a letter or underscore and that it can contain only letters, digits, underscores, hyphens, and periods.

    The counter is added to the model tree under the monitoring context, and the form editor opens so that you can define the counter.

  3. In the form editor, specify the details of the counter as follows:

    1. Optional: Type a description in the Description field. The description is used only in the Monitor Model editor and is not displayed anywhere in Business Monitor. The character set is unrestricted.

    2. If you want the counter to be indexed in the database so that it can be used for sorting in Instances in the dashboards, select This counter can be used for sorting. In the XML document, this option corresponds to the isSortable attribute of the counter.

  4. To add triggers and actions to the table, click Add or double-click a row.

    1. Select an existing trigger or inbound event and click OK. The trigger or event is added to the table. You can select only triggers or inbound events that are defined in the same or a child monitoring context.

    2. Click the Resulting Action column and select one of these actions: Add one, Subtract one, or Reset to zero. This action will be performed when the inbound event arrives or the trigger fires.

    The triggers and resulting actions are added to the table. The items in the table are sorted based on the resulting actions.

Defining monitor details models