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
4e1501b1
Commit
4e1501b1
authored
Mar 12, 2018
by
Mitsuhiro Tanda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set default value of httpMethod
parent
a83ede01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
public/app/plugins/datasource/prometheus/config_ctrl.ts
+9
-0
public/app/plugins/datasource/prometheus/datasource.ts
+1
-1
public/app/plugins/datasource/prometheus/module.ts
+1
-4
No files found.
public/app/plugins/datasource/prometheus/config_ctrl.ts
0 → 100644
View file @
4e1501b1
export
class
PrometheusConfigCtrl
{
static
templateUrl
=
'public/app/plugins/datasource/prometheus/partials/config.html'
;
current
:
any
;
/** @ngInject */
constructor
(
$scope
)
{
this
.
current
.
jsonData
.
httpMethod
=
this
.
current
.
jsonData
.
httpMethod
||
'GET'
;
}
}
public/app/plugins/datasource/prometheus/datasource.ts
View file @
4e1501b1
...
...
@@ -34,7 +34,7 @@ export class PrometheusDatasource {
this
.
basicAuth
=
instanceSettings
.
basicAuth
;
this
.
withCredentials
=
instanceSettings
.
withCredentials
;
this
.
interval
=
instanceSettings
.
jsonData
.
timeInterval
||
'15s'
;
this
.
httpMethod
=
instanceSettings
.
jsonData
.
httpMethod
||
'GET'
;
this
.
httpMethod
=
instanceSettings
.
jsonData
.
httpMethod
;
}
_request
(
method
,
url
,
data
?,
requestId
?)
{
...
...
public/app/plugins/datasource/prometheus/module.ts
View file @
4e1501b1
import
{
PrometheusDatasource
}
from
'./datasource'
;
import
{
PrometheusQueryCtrl
}
from
'./query_ctrl'
;
class
PrometheusConfigCtrl
{
static
templateUrl
=
'partials/config.html'
;
}
import
{
PrometheusConfigCtrl
}
from
'./config_ctrl'
;
class
PrometheusAnnotationsQueryCtrl
{
static
templateUrl
=
'partials/annotations.editor.html'
;
...
...
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