Get DRD Statistics

Retrieves evaluation statistics of a given decision requirements definition.

Method

GET /history/decision-requirements-definition/{id}/statistics

Parameters

Path Parameters

Name Description
id The id of the decision requirements definition.

Query Parameters

Name Description
decisionInstanceId Restrict query results to be based only on specific evaluation instance of a given decision requirements definition.

Result

A JSON array containing statistics object for each decision definition related to this DRD.

Name Value Description
decisionDefinitionKey String A key of decision defintion.
evaluations Integer A number of evaluation for decision definition.

Response codes

Code Media type Description
200 application/json Request successful.
400 application/json Returned if some of the query parameters are invalid. See the Introduction for the error response format.

Example

Request

GET /history/decision-requirements-definition/invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c/statistics

Response

[
  {
    "decisionDefinitionKey" : "dish-decision",
    "evaluations" : 1
  }
]

Request With Query Parameter decisionInstanceId=17

GET /history/decision-requirements-definition/invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c/statistics?decisionInstanceId=17

Response

[
  {
    "decisionDefinitionKey" : "dish-decision",
    "evaluations" : 1
  }
]

On this Page: