Sending Event and Dimensional Data
The recommended method for publishing monitor data into Optimize is to use the Web Service Data Collector's dimensionalData interface that is described in this section. The Web Service Data Collector contains web services for sending data as events and dimensions, where events capture metric data and dimensions capture metadata about the metric data. For more information, see Configuring KPIs.
The addEvent (event) and addEvents (events) methods pass data as event types and a list of details about the event types, presented as a series of key/value data pairs.
The following table provides an example of the metadata that the event passes.
Data | Value |
---|---|
Event type |
OrderProcess
|
Key/value pairs |
|
The addStronglyTypedEvent (event) and addStronglyTypedEvents (events) methods are included only for backward compatibility.
The addDimension (dimension) and addDimensions (dimensions) methods pass metadata for the event data as a dimension type, or name, and a list of details about the dimension type presented as a series of key/value data pairs.
The following table provides an example of the metadata that the event passes.
Data | Value |
---|---|
Dimension 1 | |
Name |
Customer
|
Key/value pairs |
|
Dimension 2 | |
Name |
Product
|
Key/value pairs |
|
The addStronglyTypedDimension (dimension) and addStronglyTypedDimensions (dimensions) methods pass metadata for the event data as a dimension type, or name, and a list of details about the dimension type presented as a series of key/value data pairs.
The following table provides an example of the metadata that the event passes.
Data | Value |
---|---|
Dimension 1 | |
Name |
Customer
|
Pairs |
|
Dimension 2 | |
Name |
Product
|
Pairs |
|
bam-wsdc.jar
file in
the
Optimize_directory/dataCollector/lib
directory.
addEvent (event) and addEvents (events)
The addEvent method sends a single event. The addEvents method sends multiple events. The addEvents method does not support Web service callbacks.
Input Parameters (all parameters are required unless specified as optional)
The following table describes the input parameters.
|
addEventWithCallback
The addEventWithCallback method sends a single event and supports Web service callbacks.
Input Parameters (all parameters are required unless specified as optional)
The following table describes the input parameters.
|
addStronglyTypedEvent (event) and addStronglyTypedEvents (events)
The addStronglyTypedEvent method sends a single strongly typed event. The addStronglyTypedEvents method sends multiple strongly typed events.
Input Parameters (all parameters are required unless specified as optional)
The following table describes the input parameters.
|
addDimension (dimension) and addDimensions (dimensions)
The addDimension method sends a single dimension. The addDimensions method sends multiple dimensions.
Input Parameters (all parameters are required unless specified as optional)
The following table describes the input parameters.
|
addStronglyTypedDimension (dimension) and addStronglyTypedDimensions (dimensions)
The addStronglyTypedDimension method sends a single strongly typed dimension. The addStronglyTypedDimensions method sends multiple strongly typed dimensions.
Input Parameters (all parameters are required unless specified as optional)
The following table describes the input parameters.
|