Skip to content

Commit

Permalink
Merge pull request #3472 from tomaslin/titus-discovery
Browse files Browse the repository at this point in the history
feat(titus): eureka support should be same as other providers
  • Loading branch information
tomaslin committed Apr 3, 2017
2 parents 75e68c8 + 26d16a2 commit a80e772
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions app/scripts/modules/netflix/instance/titus/instanceDetails.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,20 @@ <h3 select-on-dbl-click>
<dl class="horizontal-when-filters-collapsed">
<dt ng-repeat-start="metric in healthMetrics | orderBy: 'type'">{{metric.type | robotToHuman}}</dt>
<dd ng-repeat-end>
<span uib-tooltip="{{metric.state.toLowerCase() === 'down' ? metric.description : ''}}" tooltip-placement="left">
<span class="glyphicon glyphicon-{{metric.state}}-triangle"></span>
</span>
<span ng-if="instance.state">{{instance.state | uppercase}}</span>
<span ng-if="!instance.state">{{metric.state | robotToHuman}}</span>
<div ng-if="metric.type !== 'LoadBalancer'">
<span uib-tooltip="{{metric.state.toLowerCase() === 'down' ? metric.description : ''}}" tooltip-placement="left">
<span class="glyphicon glyphicon-{{metric.state}}-triangle"></span>
{{metric.state | robotToHuman}}
</span>
<span class="pad-left small">
<a ng-if="metric.healthCheckUrl" target="_blank" href="{{metric.healthCheckUrl}}">Health Check</a>
<span ng-if="metric.healthCheckUrl && metric.statusPageUrl"> | </span>
<a ng-if="metric.statusPageUrl" target="_blank" href="{{metric.statusPageUrl}}">Status</a>
</span>
</div>
<div ng-if="metric.type === 'LoadBalancer' && metric.loadBalancers.length" ng-repeat="loadBalancer in metric.loadBalancers">
<instance-load-balancer-health load-balancer="loadBalancer"></instance-load-balancer-health>
</div>
</dd>
</dl>
</collapsible-section>
Expand Down

0 comments on commit a80e772

Please sign in to comment.