MicroStrategy ONE

CountSummary

The CountSummary interface is used to retrieve summary-level count information about a monitoring information request.

The CountSummary interface is the entry point to count-related information. It has both a total count and a unique count, and it represents a collection of CountInfo objects. CountInfo objects represent the count classified by the fields that were specified on the CountSettings interface on the MonitorSource before retrieving the results.

For an example of how to use CountSummary and CountInfo, refer to the first use case, Obtaining a Count of Jobs.

The following methods are exposed on the CountSummary interface:

  • getCount() Returns the total count of items returned from Intelligence Server  

  • getUniqueCount()

    Returns a unique count, for types of monitoring where a unique count makes sense. If it does not make sense, then it will return the same value as getCount.  

  • size()

    Returns the number of child CountInfo objects that this object contains. If no categories were specified in CountSettings, this will be 0.  

  • get()

    Returns the CountInfo object at the given 0-based index.