[
https://issues.apache.org/jira/browse/EAGLE-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15925779#comment-15925779
]
ASF GitHub Bot commented on EAGLE-957:
--------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/eagle/pull/873
> Metric Explorer and Customized Dashboard Metadata Part
> ------------------------------------------------------
>
> Key: EAGLE-957
> URL: https://issues.apache.org/jira/browse/EAGLE-957
> Project: Eagle
> Issue Type: Sub-task
> Components: Core::UI Engine
> Affects Versions: v0.5.0
> Reporter: Hao Chen
> Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> h1. Add dashboard metadata entities and services
> * org.apache.eagle.metadata.model.DashboardEntity
> * org.apache.eagle.metadata.service.DashboardEntityService (Memory/JDBC)
> * org.apache.eagle.metadata.resource.DashboardResource
> h1. API
> {code}
> DELETE /rest/dashboards/{uuid}
> (org.apache.eagle.metadata.resource.DashboardResource)
> GET /rest/dashboards
> (org.apache.eagle.metadata.resource.DashboardResource)
> GET /rest/dashboards/{uuidOrName}
> (org.apache.eagle.metadata.resource.DashboardResource)
> POST /rest/dashboards
> (org.apache.eagle.metadata.resource.DashboardResource)
> {code}
>
> h1. Example
> * Create dashboard
> {code}
> POST /rest/dashboards
> {
> "name": "Sample Dashboard",
> "description": "This is a sample dashboard",
> "settings": {
> },
> "charts": [
> "{chartType: LINE}",
> "{chartType: PIE}"
> ]
> }
> {code}
> * Update dashboard
> {code}
> POST /rest/dashboards
> {
> "uuid": "e24fd133-adc2-4dd2-b7aa-ebf4890b145a"
> "name": "Sample Dashboard 2",
> "description": "This is another sample dashboard"
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)