Public Member Functions | |
void | checkUploadMetrics () |
Perform anonymous metrics upload if needed. This method checks how much time has elapsed since the last time metrics were uploaded. If enough time has elapsed, metrics data is extracted from the user's dataremote repository and sent to the metrics server. The metrics repository is then emptied and a new metrics gathering session begins. This function may return without performing any task if the user has disabled metrics gathering. | |
void | metricsInc (in AString aCategory, in AString aUniqueID, in AString aExtraString) |
Increments a metrics key. | |
void | metricsAdd (in AString aCategory, in AString aUniqueID, in AString aExtraString, in long long aIntValue) |
Adds to a metrics key. |
Definition at line 44 of file sbIMetrics.idl.
void sbIMetrics::metricsInc | ( | in AString | aCategory, | |
in AString | aUniqueID, | |||
in AString | aExtraString | |||
) |
Increments a metrics key.
The key for the metric to be incremented is:
aCategory + "." + aUniqueID + ( (aExtraString) ? "." + aExtraString : "" );
aCategory | The category string | |
aUniqueID | The unique ID string | |
aExtraString | The (optional) extra string, usually null |
void sbIMetrics::metricsAdd | ( | in AString | aCategory, | |
in AString | aUniqueID, | |||
in AString | aExtraString, | |||
in long long | aIntValue | |||
) |
Adds to a metrics key.
The key for the metric to be incremented is:
aCategory + "." + aUniqueID + ( (aExtraString) ? "." + aExtraString : "" );
aCategory | The category string | |
aUniqueID | The unique ID string | |
aExtraString | The (optional) extra string, usually null | |
aIntValue | The integer value to add |