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
aa60edd9
Commit
aa60edd9
authored
Mar 25, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with external snapshot publish
parent
c4b8a985
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
pkg/api/dashboard_snapshot.go
+2
-0
No files found.
pkg/api/dashboard_snapshot.go
View file @
aa60edd9
...
@@ -19,6 +19,7 @@ import (
...
@@ -19,6 +19,7 @@ import (
func
CreateDashboardSnapshot
(
c
*
middleware
.
Context
,
cmd
m
.
CreateDashboardSnapshotCommand
)
{
func
CreateDashboardSnapshot
(
c
*
middleware
.
Context
,
cmd
m
.
CreateDashboardSnapshotCommand
)
{
if
cmd
.
External
{
if
cmd
.
External
{
createExternalSnapshot
(
c
,
cmd
)
createExternalSnapshot
(
c
,
cmd
)
return
}
}
cmd
.
Key
=
util
.
GetRandomString
(
32
)
cmd
.
Key
=
util
.
GetRandomString
(
32
)
...
@@ -35,6 +36,7 @@ func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapsho
...
@@ -35,6 +36,7 @@ func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapsho
func
createExternalSnapshot
(
c
*
middleware
.
Context
,
cmd
m
.
CreateDashboardSnapshotCommand
)
{
func
createExternalSnapshot
(
c
*
middleware
.
Context
,
cmd
m
.
CreateDashboardSnapshotCommand
)
{
metrics
.
M_Api_Dashboard_Snapshot_External
.
Inc
(
1
)
metrics
.
M_Api_Dashboard_Snapshot_External
.
Inc
(
1
)
cmd
.
External
=
false
json
,
_
:=
json
.
Marshal
(
cmd
)
json
,
_
:=
json
.
Marshal
(
cmd
)
jsonData
:=
bytes
.
NewBuffer
(
json
)
jsonData
:=
bytes
.
NewBuffer
(
json
)
...
...
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