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
8117a755
Commit
8117a755
authored
Nov 12, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: panel-header: Add proper typings to maxDataPoints and interval + remove code in comment
parent
e55f3f88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
public/app/features/dashboard/panel_model.ts
+2
-2
public/app/features/panel/metrics_panel_ctrl.ts
+0
-13
No files found.
public/app/features/dashboard/panel_model.ts
View file @
8117a755
...
...
@@ -47,8 +47,8 @@ export class PanelModel {
timeShift
?:
any
;
hideTimeOverride
?:
any
;
maxDataPoints
?:
any
;
interval
?:
any
;
maxDataPoints
?:
number
;
interval
?:
string
;
// non persisted
fullscreen
:
boolean
;
...
...
public/app/features/panel/metrics_panel_ctrl.ts
View file @
8117a755
...
...
@@ -148,19 +148,6 @@ class MetricsPanelCtrl extends PanelCtrl {
}
calculateInterval
()
{
// let intervalOverride = this.panel.interval;
// // if no panel interval check datasource
// if (intervalOverride) {
// intervalOverride = this.templateSrv.replace(intervalOverride, this.panel.scopedVars);
// } else if (this.datasource && this.datasource.interval) {
// intervalOverride = this.datasource.interval;
// }
// const res = kbn.calculateInterval(this.range, this.resolution, intervalOverride);
// this.interval = res.interval;
// this.intervalMs = res.intervalMs;
const
interval
=
calculateIntervalUtil
(
this
.
panel
,
this
.
datasource
,
this
.
range
,
this
.
resolution
);
this
.
interval
=
interval
.
interval
;
this
.
intervalMs
=
this
.
intervalMs
;
...
...
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