Skip to content

Commit

Permalink
add right lib and added jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Pacheco committed May 2, 2016
1 parent f75f9e8 commit bfe4ecb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hystrix-dashboard/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies {
compile 'org.apache.httpcomponents:httpclient:4.2.1'
compile 'log4j:log4j:1.2.17'
compile 'org.slf4j:slf4j-log4j12:1.7.0'
compile 'com.squareup.retrofit:retrofit:2.0.2'
compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
compile 'com.squareup.retrofit2:converter-simplexml:2.0.2'
compile 'com.squareup.retrofit2:converter-jackson:2.0.2'
testCompile 'junit:junit:4.12'
Expand Down
17 changes: 17 additions & 0 deletions hystrix-dashboard/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@
}
});
});

$.get( "http://127.0.0.1:8080/eureka/v2/apps", function( data ) {
$.each(data, function(i, item){
$('#eurekaApp').append($("<option></option>")
.attr("value",item.name)
.text(item.name));

$('#repos').bind('change',function(item){
var $this = $(this),
$value = $this.val();
$('#eurekaApp').text($value)
});

});
});

</script>
</head>
<body>
Expand All @@ -57,6 +73,7 @@
<br>

<h2>Hystrix Dashboard</h2>
<select id="eurekaApp" name="eurekaApp"class="eurekaApp"></select>
<input id="stream" type="textfield" size="120" placeholder="http://hostname:port/turbine/turbine.stream"></input>
<br><br>
<i>Cluster via Turbine (default cluster):</i> http://turbine-hostname:port/turbine.stream
Expand Down

0 comments on commit bfe4ecb

Please sign in to comment.