read metric counter
The increment metric counter Public Template allows our users to “count” rows belonging to an individual that pass through a particular process, rule or branch of a rule. The read metric counter Public Template allows the resulting counts can be pulled out against two rolling date ranges 24hrs and 1 week.. The original driver for this was to allow our customers to create rules that could record and then control the number of emails sent to customers. The metrics being counted are be default stored against the users CXID.
Input data
Field | Description | Example |
---|---|---|
Alteriancxid | This template uses the CXID in the flow of the rule to understand the key to use to pull the count information out. |
|
Metric | This is the metric that was been chosen to be counted - you should use the same one here to pull out the correct counts. |
|
Time Stamp | Timestamp. This will automap to the timestamp field in a standard rule. |
|
Sequence Number | A identifying value created by certain steps in the rule to identify the flow of a row through the rule |
|
Configuration
Field | Description | Example |
---|---|---|
metricTableNamePrefix | This is the table in Alterian where the metric counters will be stored. The default is “MetricCounter”. In some cases you may want to count the same field multiple times over the same date range. For example you may want to count emailAddress being used for transactional emails separately to marketing emails. To enable this simply choose a separate but consistent metricTableNamePrefix value to write to and then select this value when reading the values back out. For example: transactional emails - transactionalemailcount marketing emails - marketingemailcount | MetricCounter |
Output Data
Field | Description | Example |
---|---|---|
DaysCount | Count of the number of times the metric was counted for the individual over the last rolling 24 hours. | 34 |
WeekCount | Count of the number of times the metric was counted for the individual over the last rolling 7 days. | 123 |