This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #718 from karelhala/HAWKULAR-815
HAWKULAR-815
- Loading branch information
Showing
15 changed files
with
592 additions
and
256 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
console/src/main/scripts/plugins/metrics/html/directives/url-list/item.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div ng-click="vm.redirectToUrlAvailability(resource.id)"> | ||
<div class="tile"> | ||
<div class="tile-content"> | ||
<div class="text-right hk-tile-alert"> | ||
<a href="{{vm.getAlertUrl(resource.id)}}"> | ||
<span ng-if="vm.alerts.length === 0" class="label label-default hk-label-small">0</span> | ||
<span ng-if="vm.alerts.length > 0" class="label label-danger hk-label-small">{{vm.alerts.length}}</span> | ||
</a> | ||
</div> | ||
<div class="hk-tile-title">{{resource.properties.url}}</div> | ||
<div class="hk-tile-status"> | ||
<span ng-show="resource.responseTime.length > 0">{{resource.isUp ? 'Up' : 'Down'}}</span> | ||
</div> | ||
<div> | ||
<div ng-show="resource.responseTime.length > 0 && resource.isUp" class="hk-tile-circle-icon hk-success"><i class="fa fa-arrow-up"></i></div> | ||
<div ng-show="resource.responseTime.length > 0 && !resource.isUp" class="hk-tile-circle-icon hk-danger"><i class="fa fa-arrow-down"></i></div> | ||
<span class="spinner spinner-inline" ng-hide="resource.responseTime.length > 0" popover="Your data is being collected. You should see something in a few seconds." popover-trigger="mouseenter" popover-placement="bottom"></span> | ||
</div> | ||
<div class="chart-pf-sparkline {{resource.isUp?'':'c3-danger'}}"> | ||
<hawkular-sparkline-chart | ||
data="resource.graphResponseTime" | ||
show-x-axis-values="false" | ||
show-y-axis-values="false"> | ||
</hawkular-sparkline-chart> | ||
</div> | ||
<div class="hk-tile-info"> | ||
<a href="{{vm.getResponseTimeUrl(resource.id)}}"> | ||
<span ng-show="resource.responseTime.length > 0 && resource.responseTime[0].value < 0">n/a</span> | ||
<span ng-show="resource.responseTime.length > 0 && resource.responseTime[0].value >= 0">Response Time: {{resource.responseTime[0].value}}ms</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
console/src/main/scripts/plugins/metrics/html/directives/url-list/summary.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div> | ||
<div class="tiles-view-pf row-cards-pf"> | ||
<div class="row"> | ||
<div class="col-lg-2 col-md-3 col-sm-3" ng-repeat="res in resourceList track by res.properties.url"> | ||
<url-list-item | ||
resource="res" | ||
></url-list-item> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
27 changes: 10 additions & 17 deletions
27
console/src/main/scripts/plugins/metrics/html/partials/url-alerts-view.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
<hk-alert-notification></hk-alert-notification> | ||
|
||
<div class="blank-slate-pf" ng-show="mac.alertList.$resolved && mac.alertList.length === 0"> | ||
<div class="blank-slate-pf-icon"> | ||
<i class="fa fa-flag"></i> | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<hk-alert-info list="mac.alertList" limit="(mac.showAllAlerts ? 100000 : 3)" | ||
resource-id="mac.$routeParams.resourceId" title="Url"> | ||
</hk-alert-info> | ||
<div class="clearfix" ng-show="mac.alertList.length > 0"> | ||
<button class="btn btn-default pull-right" ng-click="mac.resolveAll()" ng-disabled="mac.isWorking"> | ||
<i class="fa fa-check-square-o"></i> Resolve all | ||
</button> | ||
</div> | ||
</div> | ||
<h1>No alerts.</h1> | ||
</div> | ||
|
||
<hk-alert-panel-list class="clearfix" hk-alert-list="mac.alertList"></hk-alert-panel-list> | ||
|
||
<hk-pagination resource-list="mac.alertList" current-page="mac.resCurPage" page-setter="mac.setPage(pageNumber)" | ||
per-page="mac.resPerPage" headers="mac.headerLinks"></hk-pagination> | ||
|
||
<div class="clearfix" ng-show="mac.alertList.length > 0"> | ||
<button class="btn btn-default pull-right" ng-click="mac.resolveAll()" ng-disabled="mac.isWorking"> | ||
<i class="fa fa-check-square-o"></i> Resolve all | ||
</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.