This repository was archived by the owner on Sep 2, 2023. It is now read-only.
feat: Window Chart and Metrics. #126
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
List Window Chart
Request
Response
{ "code": 200, "result": { "record_count": 0, "next_page_token": "", "records": [ { "id": 105, "uuid": "d476e1e4-0927-11e9-a58f-7a0060f0aa01", "name": "Total Open Service Requests", "description": "Open Service Requests by Status", "sequence": 0, "is_collapsible": true, "is_open_by_default": true, "dashboard_type": "chart", "chart_type": "BC", "context_column_names": [] }, { "id": 101, "uuid": "d46a76e8-0927-11e9-a58f-7a0060f0aa01", "name": "Invoice Revenue", "description": "100k in Revenue", "sequence": 0, "is_collapsible": true, "is_open_by_default": true, "dashboard_type": "chart", "chart_type": "BC", "context_column_names": [] }, { "id": 102, "uuid": "d4705b4e-0927-11e9-a58f-7a0060f0aa01", "name": "Open Invoices", "description": "Open Invoices max $1000", "sequence": 0, "is_collapsible": true, "is_open_by_default": true, "dashboard_type": "chart", "chart_type": "BC", "context_column_names": [] }, { "id": 104, "uuid": "d472dfd6-0927-11e9-a58f-7a0060f0aa01", "name": "Service Requests (Quarter)", "description": "Open Service Requests in Time", "sequence": 0, "is_collapsible": true, "is_open_by_default": true, "dashboard_type": "chart", "chart_type": "BC", "context_column_names": [] } ] } }Get Window Metrics
Request
Response
{ "code": 200, "result": { "id": 102, "uuid": "d4705b4e-0927-11e9-a58f-7a0060f0aa01", "name": "Open Invoices", "description": "Open Invoices max $1000", "x_axis_label": "Mes", "y_axis_label": "Open Invoices", "measure_target": 1000, "series": [ { "name": "2020", "data_set": [ { "name": "01/2020", "value": 0 }, { "name": "07/2020", "value": 161.12 } ] }, { "name": "2021", "data_set": [ { "name": "01/2021", "value": 285.83 } ] }, { "name": "2023", "data_set": [ { "name": "03/2023", "value": 893 }, { "name": "04/2023", "value": 790.4 }, { "name": "08/2023", "value": -0.67 } ] } ], "color_schemas": [ { "name": "", "color": "#00FF00", "percent": 50 }, { "name": "", "color": "#FFFF00", "percent": 100 }, { "name": "", "color": "#FF0000", "percent": 9999 }, { "name": "", "color": "", "percent": 0 } ] } }Additional context
fixes https://github.com/solop-develop/frontend-core/issues/959