Metrics data mapping file

You define the metrics to map your data.

The metrics data mapping file must use the container elements <metric-data-mapping> and </metric-data-mapping>.

The next line in the mapping file must be as follows:

<datasource type="webservice">
   <service-url>CampaignServices</service-url>
</datasource>

The actual mappings must be contained by the elements <metric-data-map> and </metric-data-map>.

metric

Use the <metric> element to define the metric in a mapping. The <metric> element has no value but must contain the child element <data-map-column>. The <metric> element has the following attributes:

Attribute Description
id The internal name of the metric
dimension-id The number of the column into which the value from Campaign should be placed. Columns are numbered from left to right. The first column is column 0.

data-map-column

Use the <data-map-column> element to define the data source (either contact count or a response type) in a mapping. The <data-map-column> element must be contained by the <metric> element that defines the metric to which contact count or this response type is mapped. The <data-map-column> element has no value but has the following attributes:

Attribute Description
id

The data source to be mapped to the metric. For contact count, use contactcount. For a response type, use responsecount_<ResponseTypeName>.

type

This value should always be number.