Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
58121d89
Commit
58121d89
authored
Jan 27, 2016
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated http_api docs
parent
6a119217
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
3 deletions
+5
-3
docs/sources/reference/http_api.md
+4
-2
pkg/api/dashboard.go
+0
-0
pkg/api/dtos/models.go
+0
-0
pkg/models/dashboards.go
+1
-1
pkg/services/sqlstore/migrations/dashboard_mig.go
+0
-0
No files found.
docs/sources/reference/http_api.md
View file @
58121d89
...
...
@@ -70,13 +70,15 @@ Creates a new dashboard or updates an existing dashboard.
"schemaVersion": 6,
"version": 0
},
"overwrite": false
"overwrite": false,
"userId:": 3
}
JSON Body schema:
-
**dashboard**
– The complete dashboard model, id = null to create a new dashboard
-
**dashboard**
– The complete dashboard model, id = null to create a new dashboard
.
-
**overwrite**
– Set to true if you want to overwrite existing dashboard with newer version or with same dashboard title.
-
**userId**
- Set userId if you want to record who created or updated a dashboard.
**Example Response**
:
...
...
pkg/api/dashboard.go
View file @
58121d89
pkg/api/dtos/models.go
View file @
58121d89
pkg/models/dashboards.go
View file @
58121d89
...
...
@@ -67,7 +67,7 @@ func (dash *Dashboard) GetTags() []string {
return
b
}
func
NewDashboardFromJson
(
data
map
[
string
]
interface
{})
*
Dashboard
{
func
NewDashboardFromJson
(
data
map
[
string
]
interface
{})
*
Dashboard
{
dash
:=
&
Dashboard
{}
dash
.
Data
=
data
dash
.
Title
=
dash
.
Data
[
"title"
]
.
(
string
)
...
...
pkg/services/sqlstore/migrations/dashboard_mig.go
View file @
58121d89
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment