REST API - getChartData
The table summarizes the REST API - getChartData.
Request
| Format |
POST <baseurl>/audit/chart/getdata |
| Body | ChartDataQuery element (required): This element (from the EventCollectorReportService schema defines the chart query. |
Response
| JSON | Returns a JSON representation of the content of the getChartDataResponseObject element. |
| XML | Returns the content of the getChartDataResponseObject element (from the EventCollectorReportService schema). |
Example
| Request |
POST <baseurl>/audit/chart/getdata |
| Request Body |
{
"xml-fragment": {
"ChartDataQuery": {
"filter": "processTemplateName='ColiseumBooksProcess'",
"area": "PROCESS_INSTANCES"
},
"ChartDataOptions": {
"requiredAttributes": {
"attribute": [
"startTime",
"priority",
"userId"
]
}
}
}
}
|
| Response |
{
"xml-fragment": {
"getChartDataResponse": {
"-xmlns": "http://api.ec.n2.tibco.com",
"ChartDataResult": {
"-xmlns": "http://base.api.ec.n2.tibco.com",
"categories": {
"category": [
"startTime",
"priority",
"userId"
]
},
"data": [
{
"dataset": {
"value": [
"2016-04-08T11:56:51.347Z",
"NORMAL",
"tibco-admin"
]
}
},
{
"dataset": {
"value": [
"2016-04-08T11:56:52.807Z",
"NORMAL",
"tibco-admin"
]
}
},
{
"dataset": {
"value": [
"2016-04-08T11:56:54.650Z",
"NORMAL",
"tibco-admin"
]
}
},
{
"dataset": {
"value": [
"2016-04-11T08:13:39.393Z",
"NORMAL",
"tibco-admin"
]
}
},
{
"dataset": {
"value": [
"2016-04-11T08:13:41.487Z",
"NORMAL",
"tibco-admin"
]
}
},
{
"dataset": {
"value": [
"2016-04-11T08:13:43.043Z",
"NORMAL",
"tibco-admin"
]
}
},
{
"dataset": {
"value": [
"2016-04-11T08:13:44.783Z",
"NORMAL",
"tibco-admin"
]
}
}
]
}
}
}
}
|
Copyright © 2022. TIBCO Software Inc. All Rights Reserved.
