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
a87b5f75
Commit
a87b5f75
authored
Jan 12, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(datasources): minor fix to data sources after apps branch merge
parent
4db57cc0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
1 deletions
+45
-1
.gitignore
+1
-1
public/app/plugins/datasource/grafana/datasource.ts
+16
-0
public/app/plugins/datasource/grafana/module.ts
+14
-0
public/app/plugins/datasource/mixed/module.ts
+14
-0
No files found.
.gitignore
View file @
a87b5f75
...
...
@@ -31,5 +31,5 @@ public/css/*.min.css
conf/custom.ini
fig.yml
profile.cov
grafana
/
grafana
.notouch
public/app/plugins/datasource/grafana/datasource.ts
0 → 100644
View file @
a87b5f75
///<reference path="../../../headers/common.d.ts" />
class
GrafanaDatasource
{
constructor
(
private
backendSrv
)
{}
query
(
options
)
{
return
this
.
backendSrv
.
get
(
'/api/metrics/test'
,
{
from
:
options
.
range
.
from
.
valueOf
(),
to
:
options
.
range
.
to
.
valueOf
(),
maxDataPoints
:
options
.
maxDataPoints
});
}
}
export
{
GrafanaDatasource
};
public/app/plugins/datasource/grafana/module.ts
0 → 100644
View file @
a87b5f75
///<reference path="../../../headers/common.d.ts" />
import
angular
from
'angular'
;
import
{
GrafanaDatasource
}
from
'./datasource'
;
var
module
=
angular
.
module
(
'grafana.directives'
);
module
.
directive
(
'metricQueryEditorGrafana'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/grafana/partials/query.editor.html'
};
});
export
{
GrafanaDatasource
,
GrafanaDatasource
as
Datasource
};
public/app/plugins/datasource/mixed/module.ts
0 → 100644
View file @
a87b5f75
///<reference path="../../../headers/common.d.ts" />
import
angular
from
'angular'
;
import
{
MixedDatasource
}
from
'./datasource'
;
var
module
=
angular
.
module
(
'grafana.directives'
);
module
.
directive
(
'metricQueryEditorMixed'
,
function
()
{
return
{
templateUrl
:
'app/plugins/datasource/mixed/partials/query.editor.html'
};
});
export
{
MixedDatasource
,
MixedDatasource
as
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