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
36ec15be
Commit
36ec15be
authored
Feb 19, 2015
by
Ryan Williams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some scripted-dashboard-comment typos
parent
c29bf31f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/dashboards/scripted.js
+3
-3
src/dashboards/scripted_async.js
+4
-4
src/dashboards/scripted_gen_and_save.js
+2
-2
No files found.
src/dashboards/scripted.js
View file @
36ec15be
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
/*
/*
* Complex scripted dashboard
* Complex scripted dashboard
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* supplied URL parameters (in
t
ARGS variable)
* supplied URL parameters (in
the
ARGS variable)
*
*
* Return a dashboard object, or a function
* Return a dashboard object, or a function
*
*
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
'use strict'
;
'use strict'
;
// access
a
ble variables in this scope
// access
i
ble variables in this scope
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
;
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
;
// Setup some variables
// Setup some variables
...
@@ -31,7 +31,7 @@ dashboard = {
...
@@ -31,7 +31,7 @@ dashboard = {
dashboard
.
title
=
'Scripted dash'
;
dashboard
.
title
=
'Scripted dash'
;
// Set default time
// Set default time
// time can be overriden in the url using from/to parameter
e
s, but this is
// time can be overriden in the url using from/to parameters, but this is
// handled automatically in grafana core during dashboard initialization
// handled automatically in grafana core during dashboard initialization
dashboard
.
time
=
{
dashboard
.
time
=
{
from
:
"now-6h"
,
from
:
"now-6h"
,
...
...
src/dashboards/scripted_async.js
View file @
36ec15be
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
/*
/*
* Complex scripted dashboard
* Complex scripted dashboard
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* supplied URL parameters (in
t
ARGS variable)
* supplied URL parameters (in
the
ARGS variable)
*
*
* Global accessable variables
* Global accessable variables
* window, document, $, jQuery, ARGS, moment
* window, document, $, jQuery, ARGS, moment
...
@@ -11,12 +11,12 @@
...
@@ -11,12 +11,12 @@
* Return a dashboard object, or a function
* Return a dashboard object, or a function
*
*
* For async scripts, return a function, this function must take a single callback function,
* For async scripts, return a function, this function must take a single callback function,
* call this function with the dasboard object
* call this function with the das
h
board object
*/
*/
'use strict'
;
'use strict'
;
// access
a
ble variables in this scope
// access
i
ble variables in this scope
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
;
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
;
return
function
(
callback
)
{
return
function
(
callback
)
{
...
@@ -34,7 +34,7 @@ return function(callback) {
...
@@ -34,7 +34,7 @@ return function(callback) {
dashboard
.
title
=
'Scripted dash'
;
dashboard
.
title
=
'Scripted dash'
;
// Set default time
// Set default time
// time can be overriden in the url using from/to parameter
e
s, but this is
// time can be overriden in the url using from/to parameters, but this is
// handled automatically in grafana core during dashboard initialization
// handled automatically in grafana core during dashboard initialization
dashboard
.
time
=
{
dashboard
.
time
=
{
from
:
"now-6h"
,
from
:
"now-6h"
,
...
...
src/dashboards/scripted_gen_and_save.js
View file @
36ec15be
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
/*
/*
* Complex scripted dashboard
* Complex scripted dashboard
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* supplied URL parameters (in
t
ARGS variable)
* supplied URL parameters (in
the
ARGS variable)
*
*
* Return a dashboard object, or a function
* Return a dashboard object, or a function
*
*
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
'use strict'
;
'use strict'
;
// access
a
ble variables in this scope
// access
i
ble variables in this scope
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
,
services
,
_
;
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
,
services
,
_
;
// default datasource
// default datasource
...
...
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