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
53a9dec4
Commit
53a9dec4
authored
Aug 31, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(alerting): move timestamp to new row
ref #5850
parent
a5d49c98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
public/app/features/alerting/alert_tab_ctrl.ts
+2
-2
public/app/features/alerting/partials/alert_tab.html
+5
-2
No files found.
public/app/features/alerting/alert_tab_ctrl.ts
View file @
53a9dec4
...
@@ -76,11 +76,11 @@ export class AlertTabCtrl {
...
@@ -76,11 +76,11 @@ export class AlertTabCtrl {
});
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
backendSrv
.
get
(
`/api/alert-history?dashboardId=
${
this
.
panelCtrl
.
dashboard
.
id
}
&panelId=
${
this
.
panel
.
id
}
`
).
then
(
res
=>
{
this
.
backendSrv
.
get
(
`/api/alert-history?dashboardId=
${
this
.
panelCtrl
.
dashboard
.
id
}
&panelId=
${
this
.
panel
.
id
}
`
).
then
(
res
=>
{
this
.
alertHistory
=
_
.
map
(
res
,
(
ah
)
=>
{
this
.
alertHistory
=
_
.
map
(
res
,
ah
=>
{
ah
.
time
=
moment
(
ah
.
timestamp
).
format
(
'MMM D, YYYY HH:mm:ss'
);
ah
.
time
=
moment
(
ah
.
timestamp
).
format
(
'MMM D, YYYY HH:mm:ss'
);
ah
.
stateModel
=
alertDef
.
getStateDisplayModel
(
ah
.
newState
);
ah
.
stateModel
=
alertDef
.
getStateDisplayModel
(
ah
.
newState
);
ah
.
metrics
=
_
.
map
(
ah
.
data
,
(
ev
)
=>
{
ah
.
metrics
=
_
.
map
(
ah
.
data
,
ev
=>
{
return
ev
.
Metric
+
"="
+
ev
.
Value
;
return
ev
.
Metric
+
"="
+
ev
.
Value
;
}).
join
(
', '
);
}).
join
(
', '
);
...
...
public/app/features/alerting/partials/alert_tab.html
View file @
53a9dec4
...
@@ -134,8 +134,11 @@
...
@@ -134,8 +134,11 @@
<div
class=
"card-item-sub-name"
>
<div
class=
"card-item-sub-name"
>
<span
class=
"alert-list-item-state {{ah.stateModel.stateClass}}"
>
<span
class=
"alert-list-item-state {{ah.stateModel.stateClass}}"
>
<i
class=
"{{ah.stateModel.iconClass}}"
></i>
<i
class=
"{{ah.stateModel.iconClass}}"
></i>
{{ah.text}}
{{ah.stateModel.text}}
</span>
at {{ah.time}} {{ah.metrics}}
</span>
{{ah.metrics}}
</div>
<div
class=
"card-item-sub-name"
>
{{ah.time}}
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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