Develop > Service Health > Service Health Rules API > Work with tooltip entries

Work with tooltip entries

The following section describes how to work with tooltip entries to display information calculated by the Rules API.

  1. Go to:

    Administration > Service Health > Business Rules

    Alternatively, click Business Rules.

    In the Rule Repository page, add any required tooltip entries for the new rule. The following table lists common tooltip entries and their corresponding value sources and formatting methods:

    Tooltip Parameter

    Value Source

    Formatting Method

    Business Rule

    NODE.DIM.RULE.ID_CUST

    ruleIDtoString

    CI name

    NODE.PROPS.BamNodeNameKey

    toLowerCase

    Last Status Change

    NODE.DIM.RESULT.LastStatusChange

    returnDateAsString

    Status

    NODE.DIM.RESULT.Status

    getStatusString

    Value

    NODE.DIM.RESULT.Value

    returnNumOfDigitAfterPoint

    For details, see Business Rules.

  2. If you have used the kpi.setTooltip method, you must set a corresponding tooltip entry in the Rule Repository as described above. In the Value Source field, type the name of the tooltip entry exactly as used in the code, and leave the Formatting Method field empty.

    For example, if your code contains the method invocation kpi.setTooltip("total_sales", value), type NODE.DIM.RESULT.total_sales in the Value Source field.