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
19d1d7f3
Commit
19d1d7f3
authored
Nov 19, 2018
by
Erik Sundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stackdriver: add query keyword style to query fields
parent
164e9a4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
public/app/plugins/datasource/stackdriver/components/SimpleSelect.tsx
+1
-1
public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.tsx
+7
-7
No files found.
public/app/plugins/datasource/stackdriver/components/SimpleSelect.tsx
View file @
19d1d7f3
...
...
@@ -11,7 +11,7 @@ const SimpleSelect: SFC<Props> = props => {
const
{
label
,
onValueChange
,
value
,
options
}
=
props
;
return
(
<
div
className=
"gf-form max-width-21"
>
<
span
className=
"gf-form-label width-10"
>
{
label
}
</
span
>
<
span
className=
"gf-form-label width-10
query-keyword
"
>
{
label
}
</
span
>
<
div
className=
"gf-form-select-wrapper max-width-12"
>
<
select
className=
"gf-form-input"
required
onChange=
{
onValueChange
}
value=
{
value
}
>
{
options
.
map
(({
value
,
name
},
i
)
=>
(
...
...
public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.tsx
View file @
19d1d7f3
...
...
@@ -127,7 +127,7 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
value=
{
this
.
state
.
selectedService
}
options=
{
this
.
insertTemplateVariables
(
this
.
state
.
services
)
}
onValueChange=
{
e
=>
this
.
onServiceChange
(
e
)
}
label=
"Service
s
"
label=
"Service"
/>
);
case
MetricFindQueryTypes
.
LabelKeys
:
...
...
@@ -139,20 +139,20 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
value=
{
this
.
state
.
selectedService
}
options=
{
this
.
insertTemplateVariables
(
this
.
state
.
services
)
}
onValueChange=
{
e
=>
this
.
onServiceChange
(
e
)
}
label=
"Service
s
"
label=
"Service"
/>
<
SimpleSelect
value=
{
this
.
state
.
selectedMetricType
}
options=
{
this
.
insertTemplateVariables
(
this
.
state
.
metricTypes
)
}
onValueChange=
{
e
=>
this
.
onMetricTypeChange
(
e
)
}
label=
"Metric Type
s
"
label=
"Metric Type"
/>
{
queryType
===
MetricFindQueryTypes
.
LabelValues
&&
(
<
SimpleSelect
value=
{
this
.
state
.
labelKey
}
options=
{
this
.
insertTemplateVariables
(
this
.
state
.
labels
.
map
(
l
=>
({
value
:
l
,
name
:
l
})))
}
onValueChange=
{
e
=>
this
.
onLabelKeyChange
(
e
)
}
label=
"Label Key
s
"
label=
"Label Key"
/>
)
}
</
React
.
Fragment
>
...
...
@@ -165,13 +165,13 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
value=
{
this
.
state
.
selectedService
}
options=
{
this
.
insertTemplateVariables
(
this
.
state
.
services
)
}
onValueChange=
{
e
=>
this
.
onServiceChange
(
e
)
}
label=
"Service
s
"
label=
"Service"
/>
<
SimpleSelect
value=
{
this
.
state
.
selectedMetricType
}
options=
{
this
.
insertTemplateVariables
(
this
.
state
.
metricTypes
)
}
onValueChange=
{
e
=>
this
.
onMetricTypeChange
(
e
)
}
label=
"Metric Type
s
"
label=
"Metric Type"
/>
</
React
.
Fragment
>
);
...
...
@@ -187,7 +187,7 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
value=
{
this
.
state
.
selectedQueryType
}
options=
{
this
.
queryTypes
}
onValueChange=
{
e
=>
this
.
handleQueryTypeChange
(
e
)
}
label=
"Query Type
s
"
label=
"Query Type"
/>
{
this
.
renderQueryTypeSwitch
(
this
.
state
.
selectedQueryType
)
}
</
React
.
Fragment
>
...
...
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