JSONインフォメーションポイントの構成サンプル

以下の例は、PHPインフォメーションポイントウィンドウのJSONテキストフィールドにコピーして貼り付けられます。VisaTotalVisaAverage という名前の 2 つのメトリックが作成されます。

{
"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"
}
}
}
]
}