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
2f7ba215
Unverified
Commit
2f7ba215
authored
Apr 07, 2020
by
Ryan McKinley
Committed by
GitHub
Apr 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: add basic docs for QueryResultMetaNotice (#23410)
* add basic docs * fix typo * use link not url
parent
06122935
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
packages/grafana-data/src/types/data.ts
+20
-1
public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx
+1
-1
No files found.
packages/grafana-data/src/types/data.ts
View file @
2f7ba215
...
...
@@ -45,10 +45,29 @@ export interface QueryResultMetaStat extends FieldConfig {
value
:
number
;
}
/**
* QueryResultMetaNotice is a structure that provides user notices for query result data
*/
export
interface
QueryResultMetaNotice
{
/**
* Specify the notice severity
*/
severity
:
'info'
|
'warning'
|
'error'
;
/**
* Notice descriptive text
*/
text
:
string
;
url
?:
string
;
/**
* An optional link that may be displayed in the UI.
* This value may be an absolute URL or relative to grafana root
*/
link
?:
string
;
/**
* Optionally suggest an appropriate tab for the panel inspector
*/
inspect
?:
'meta'
|
'error'
|
'data'
|
'stats'
;
}
...
...
public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx
View file @
2f7ba215
...
...
@@ -112,7 +112,7 @@ export class PanelHeader extends Component<Props, State> {
<
span
className=
"fa fa-info-circle"
style=
{
{
marginRight
:
'8px'
,
cursor
:
'pointer'
}
}
/>
</
div
>
)
:
(
<
a
className=
"panel-info-notice"
href=
{
notice
.
url
}
target=
"_blank"
>
<
a
className=
"panel-info-notice"
href=
{
notice
.
link
}
target=
"_blank"
>
<
span
className=
"fa fa-info-circle"
style=
{
{
marginRight
:
'8px'
,
cursor
:
'pointer'
}
}
/>
</
a
>
)
}
...
...
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