class MAGES::Analytics::MAGESAnalyticsEntry¶
Overview¶
A class that represents a single analytics entry. More…
class MAGESAnalyticsEntry
{
public:
// enums
enum ErrorType;
// structs
struct Specification;
// properties
Dictionary ActionOccurence;
// methods
MAGESAnalyticsEntry(string actionName, float actionScore);
void InitializeScore(float score);
void ProcessError(
Specification spec,
Action onError = null,
bool reoccuring = true,
bool filtering = true
);
void Trigger(AnalyticsTypes.BaseType entryData, bool reoccuring);
};
Detailed Documentation¶
A class that represents a single analytics entry.
Properties¶
DictionaryActionOccurence
Gets the dictionary that holds the number of times an action has been performed.
Methods¶
MAGESAnalyticsEntry(string actionName, float actionScore)
Initializes a new instance of the MAGESAnalyticsEntry class.
Parameters:
actionName |
The name of the action to associate this analytics entry with. |
actionScore |
The score of the action that is associated with this analytics entry. |
void InitializeScore(float score)
Initializes the score of the action.
Parameters:
score |
The initial score of the action. |
void ProcessError(
Specification spec,
Action onError = null,
bool reoccuring = true,
bool filtering = true
)
Attaches an error to the action.
Parameters:
spec |
The specification of the error. |
onError |
The action to perform when the error occurs. |
reoccuring |
Whether the error can reoccur multiple times in the same action. |
filtering |
Whether or not the error will filter data from the data container. |
void Trigger(AnalyticsTypes.BaseType entryData, bool reoccuring)
Triggers the error.
Parameters:
entryData |
The data associated with the error entry. |
reoccuring |
Whether the error can reoccur multiple times in the same action. |