Sample JSON Information Point Configuration

This is an example that you can copy and paste into the JSON text field in the PHP information point window. It produces two metrics, named VisaTotal and VisaAverage.

{
"probe": {
"phpDefinition": {
"classMatch": {
"type": "MATCHES_CLASS",
"classNameCondition": {
"type": "EQUALS",
"matchStrings": [
"CheckOutManager"
]
}
},
"methodMatch": {
"methodNameCondition": {
"type": "EQUALS",
"matchStrings": [
"processPayment"
]
},
"matchCondition": {
"type": "EQUALS",
"comparisonOp": {
"lhs": {
"type": "ENTITY",
"entityValue": {
"parameterIndex": 1,
"type": "PARAMETER"
},
"rhs": {
"type": "STRING",
"stringValue": "VISA"
}
}
}
}
}
}
},
"metricDefinitions": [
{
"name": "VisaTotal",
"rollup": "SUM",
"data": {
"entityValue": {
"type": "RETURN_VALUE"
},
"type": "ENTITY"
}
},
{
"name": "VisaAverage",
"rollup": "AVERAGE",
"data": {
"type": "ENTITY",
"entityValue": {
"type": "RETURN_VALUE"
}
}
}
]
}