Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
ca96cfd3
Commit
ca96cfd3
authored
Jun 17, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
status (online/offline)
parent
9b4b0901
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
controllers.js
src/main/webapp/public/scripts/controllers/controllers.js
+1
-0
services.js
src/main/webapp/public/scripts/services/services.js
+14
-0
main.html
src/main/webapp/public/views/main.html
+2
-2
No files found.
src/main/webapp/public/scripts/controllers/controllers.js
View file @
ca96cfd3
...
...
@@ -10,6 +10,7 @@ angular.module('registry')
for
(
var
i
=
0
;
i
<
applications
.
length
;
i
++
)
{
var
app
=
applications
[
i
];
ApplicationInfo
.
getInfo
(
app
);
ApplicationInfo
.
getHealth
(
app
);
}
});
...
...
src/main/webapp/public/scripts/services/services.js
View file @
ca96cfd3
...
...
@@ -13,6 +13,19 @@ angular.module('registry.services', ['ngResource'])
this
.
getInfo
=
function
(
app
)
{
return
$http
.
get
(
app
.
url
+
'/info'
).
success
(
function
(
response
)
{
app
.
version
=
response
.
version
;
}).
error
(
function
()
{
app
.
version
=
'---'
;
});
}
this
.
getHealth
=
function
(
app
)
{
return
$http
.
get
(
app
.
url
+
'/health'
).
success
(
function
(
response
)
{
if
(
response
.
indexOf
(
'ok'
)
!=
-
1
||
response
.
status
.
indexOf
(
'ok'
)
!=
-
1
)
{
app
.
status
=
'online'
;
}
else
{
app
.
status
=
'offline'
;
}
}).
error
(
function
()
{
app
.
status
=
'offline'
;
});
}
}]);
\ No newline at end of file
src/main/webapp/public/views/main.html
View file @
ca96cfd3
...
...
@@ -5,7 +5,7 @@
<tr>
<th>
Service
</th>
<th>
Version
</th>
<th></th>
<th>
Status
</th>
<th></th>
<th></th>
<th></th>
...
...
@@ -15,7 +15,7 @@
<tr
ng-repeat=
"application in applications"
>
<td>
{{ application.id }}
</td>
<td>
{{ application.version }}
</td>
<td></td>
<td>
{{ application.status }}
</td>
<td></td>
<td>
<!-- <button type="button" ng-click="editService(service.id)" class="btn btn-success">Edit</button> -->
</td>
</tr>
...
...
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