Performance Debugger REST API
Overview
The Performance Debugger REST API enables customers to collect granular performance logs for Configuration actions, including the timing for associated rules and conditions.
Note: Oracle CPQ 24D only supports Configure and Update Configurator actions.
Administration
Create a Performance Debugger Log
https://sitename.oracle.com/rest/v17/performanceDebugger/actions/createLog
Request Body Sample - Configure
{ "actionName": "CONFIG_CONFIGURE", "description": "CONFIGURE: Vision Vehicles SUV", "productFamily": "visionVehicles", "productLine": "consumerVehicles", "model": "sUV" }
Note: You can retrieve the Product Family, Product Line, and Model variable names from the product configurator URL. For example, http://sitename.oracle.com/config/visionVehicles/consumerVehicles/sUV?product_line=consumerVehicles&segment=visionVehicles&_from_punchin=true&model=sUV&_has_jet_access=true
In this URL the configuration variable names are:
-
Product Family:
visionVehicles
-
Product Line:
consumerVehicles
-
Model:
sUV
{ "description": "This is a test payload", "favoriteId": 18350193, "actionName": "CONFIG_UPDATE" }
{
"id": "3023221367"
}
Note: You can create a Favorite, and go to that Favorite to extract the favorite id. For example, http://sitename.oracle.com/commerce/favorites/detail/3023244929
In this URL the favoriteId is: 3023244929
Get All Performance Debugger Records
Get a Performance Debugger Record | ||
---|---|---|
Description |
Use this endpoint to retrieve a list of performance debugger log records |
|
URI Endpoint |
/rest/v17/performanceDebugger |
|
Endpoint Query Parameters |
This endpoint supports the following optional parameters: |
|
HTTP Method(s) |
GET |
|
Request Body Parameters |
None |
|
Response Body Parameters |
action |
Which action this log tests |
description |
Description for this performance log | |
error |
Error message if the log execution failed | |
id |
Primary Key of the resource | |
referenceLabel |
Describes the subject of this performance log | |
status |
Whether the log is in progress, finished successfully or has failed. | |
time |
Total time that the action took to finished executed |
https://sitename.oracle.com/rest/v17/performanceDebugger
{ "hasMore": false, "links": [{ "rel": "self", "href": "https://sitename.oracle.com.com/rest/v17/performanceDebugger" } ], "items": [{ "referenceLabel": "test1:productLine1:model1", "description": "configure output test", "error": null, "action": { "lookupCode": "CONFIG_CONFIGURE", "displayValue": "Configuration Configure", "id": 3023215310, "links": [{ "rel": "domain", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PERFORMANCE_DEBUGGER_ACTION%22%7D%7D" }, { "rel": "canonical", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues/3023215310" } ] }, "id": 3023234038, "time": 141, "status": { "lookupCode": "COMPLETED_SUCCESS", "displayValue": "Completed Successfully", "id": 3023215314, "links": [{ "rel": "domain", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PEFORMANCE_DEBUGGER_STATUS%22%7D%7D" }, { "rel": "canonical", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues/3023215314" } ] }, "links": [{ "rel": "self", "href": "https://sitename.oracle.com.com/rest/v17/performanceDebugger/3023234038" } ] }, { "referenceLabel": "testbed:systemConfiguration:rootSystem", "description": "configure output test", "error": null, "action": { "lookupCode": "CONFIG_UPDATE", "displayValue": "Configuration Update", "id": 3023215311, "links": [{ "rel": "domain", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PERFORMANCE_DEBUGGER_ACTION%22%7D%7D" }, { "rel": "canonical", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues/3023215311" } ] }, "id": 3023233987, "time": 783, "status": { "lookupCode": "COMPLETED_SUCCESS", "displayValue": "Completed Successfully", "id": 3023215314, "links": [{ "rel": "domain", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PEFORMANCE_DEBUGGER_STATUS%22%7D%7D" }, { "rel": "canonical", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues/3023215314" } ] }, "links": [{ "rel": "self", "href": "https://sitename.oracle.com.com/rest/v17/performanceDebugger/3023233987" } ] }, { "referenceLabel": "test1:productLine1:model1", "description": "configure output test", "error": null, "action": { "lookupCode": "CONFIG_UPDATE", "displayValue": "Configuration Update", "id": 3023215311, "links": [{ "rel": "domain", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PERFORMANCE_DEBUGGER_ACTION%22%7D%7D" }, { "rel": "canonical", "href": "https://sitename.oracle.com.com//rest/v17/lookupValues/3023215311" } ] }, "id": 3023234032, "time": 121, "status": { "lookupCode": "COMPLETED_SUCCESS", "displayValue": "Completed Successfully", "id": 3023215314, "links": [{ "rel": "domain", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PEFORMANCE_DEBUGGER_STATUS%22%7D%7D" }, { "rel": "canonical", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues/3023215314" } ] }, "links": [{ "rel": "self", "href": "https://sitename.oracle.com.com/rest/v17/performanceDebugger/3023234032" } ] } ] }
Get a Performance Debugger Record
https://sitename.oracle.com/rest/v17/performanceDebugger/3023221513
{ "referenceLabel": "testbed:systemConfiguration:rootSystem", "description": null, "error": null, "action": { "lookupCode": "CONFIG_UPDATE", "displayValue": "Configuration Update", "id": 3023215311, "links": [{ "rel": "domain", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PERFORMANCE_DEBUGGER_ACTION%22%7D%7D" }, { "rel": "canonical", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues/3023215311" } ] }, "id": 3023221513, "time": 1683, "status": { "lookupCode": "COMPLETED_SUCCESS", "displayValue": "Completed Successfully", "id": 3023215314, "links": [{ "rel": "domain", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PEFORMANCE_DEBUGGER_STATUS%22%7D%7D" }, { "rel": "canonical", "href": "https://sitename.oracle.com.com/rest/v17/lookupValues/3023215314" } ] }, "links": [{ "rel": "self", "href": "https://sitename.oracle.com.com/rest/v17/performanceDebugger/3023221513" } ] }