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
69137e67
Commit
69137e67
authored
Nov 15, 2018
by
Erik Sundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stackdriver: revert project test stuff
parent
b9d5fa1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
11 deletions
+0
-11
public/app/plugins/datasource/stackdriver/datasource.ts
+0
-5
public/app/plugins/datasource/stackdriver/query_ctrl.ts
+0
-6
No files found.
public/app/plugins/datasource/stackdriver/datasource.ts
View file @
69137e67
...
@@ -111,11 +111,6 @@ export default class StackdriverDatasource {
...
@@ -111,11 +111,6 @@ export default class StackdriverDatasource {
return
unit
;
return
unit
;
}
}
async
getProjects
()
{
const
response
=
await
this
.
doRequest
(
`/cloudresourcemanager/v1/projects`
);
return
response
.
data
.
projects
.
map
(
p
=>
({
value
:
p
.
projectId
,
name
:
p
.
name
}));
}
async
query
(
options
)
{
async
query
(
options
)
{
const
result
=
[];
const
result
=
[];
const
data
=
await
this
.
getTimeSeries
(
options
);
const
data
=
await
this
.
getTimeSeries
(
options
);
...
...
public/app/plugins/datasource/stackdriver/query_ctrl.ts
View file @
69137e67
...
@@ -63,16 +63,10 @@ export class StackdriverQueryCtrl extends QueryCtrl {
...
@@ -63,16 +63,10 @@ export class StackdriverQueryCtrl extends QueryCtrl {
constructor
(
$scope
,
$injector
)
{
constructor
(
$scope
,
$injector
)
{
super
(
$scope
,
$injector
);
super
(
$scope
,
$injector
);
_
.
defaultsDeep
(
this
.
target
,
this
.
defaults
);
_
.
defaultsDeep
(
this
.
target
,
this
.
defaults
);
this
.
setProjects
(
$scope
.
ctrl
.
datasource
);
this
.
panelCtrl
.
events
.
on
(
'data-received'
,
this
.
onDataReceived
.
bind
(
this
),
$scope
);
this
.
panelCtrl
.
events
.
on
(
'data-received'
,
this
.
onDataReceived
.
bind
(
this
),
$scope
);
this
.
panelCtrl
.
events
.
on
(
'data-error'
,
this
.
onDataError
.
bind
(
this
),
$scope
);
this
.
panelCtrl
.
events
.
on
(
'data-error'
,
this
.
onDataError
.
bind
(
this
),
$scope
);
}
}
async
setProjects
(
ds
)
{
this
.
projects
=
await
ds
.
getProjects
();
console
.
log
(
this
.
projects
);
}
onDataReceived
(
dataList
)
{
onDataReceived
(
dataList
)
{
this
.
lastQueryError
=
null
;
this
.
lastQueryError
=
null
;
this
.
lastQueryMeta
=
null
;
this
.
lastQueryMeta
=
null
;
...
...
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