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
add61cf7
Commit
add61cf7
authored
Mar 23, 2014
by
Marco Vito Moscaritolo
Committed by
Bruce Sherrod
Mar 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved function definition out of template.
parent
a549bd73
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/app/controllers/influxTargetCtrl.js
+1
-0
src/app/partials/influxdb/editor.html
+5
-1
No files found.
src/app/controllers/influxTargetCtrl.js
View file @
add61cf7
...
...
@@ -15,6 +15,7 @@ function (angular) {
$scope
.
target
.
function
=
'mean'
;
}
$scope
.
functions
=
[
'count'
,
'mean'
,
'sum'
,
'min'
,
'max'
,
'mode'
,
'distinct'
,
'median'
,
'derivative'
,
'stddev'
,
'first'
,
'last'
];
$scope
.
oldSeries
=
$scope
.
target
.
series
;
$scope
.
$on
(
'typeahead-updated'
,
function
(){
$timeout
(
$scope
.
get_data
);
...
...
src/app/partials/influxdb/editor.html
View file @
add61cf7
...
...
@@ -74,7 +74,11 @@
function
</li>
<li>
<select
class=
"input-medium grafana-target-segment-input"
ng-change=
"get_data()"
ng-model=
"target.function"
ng-options=
"f for f in ['count', 'mean', 'sum', 'min', 'max', 'mode', 'distinct', 'median', 'derivative', 'stddev', 'first', 'last']"
></select>
<select
class=
"input-medium grafana-target-segment-input"
ng-change=
"get_data()"
ng-model=
"target.function"
ng-options=
"f for f in functions"
></select>
</li>
</li>
<li
class=
"grafana-target-segment"
>
group by time
...
...
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