File tree 4 files changed +7
-9
lines changed
4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 12
12
< md-sidenav #sidenav class ="sidenav " mode ="side " opened ="true ">
13
13
< md-nav-list >
14
14
< md-list-item *ngFor ="let link of links ">
15
- < a routerLink ="/ws-viewer " routerLinkActive ="active " mdLine > Item {{ link }}</ a >
15
+ < a routerLink ="/ws-viewer " routerLinkActive ="active " mdLine > Microservice MS {{ link | number:'2.0-0' }}</ a >
16
16
< button md-icon-button >
17
17
< md-icon > info</ md-icon >
18
18
</ button >
Original file line number Diff line number Diff line change 1
1
< div class ="ws-viewer ">
2
2
3
- < h1 >
4
- Welcome to {{title}}!
5
- </ h1 >
3
+ < h1 > {{title}}</ h1 >
6
4
< p >
7
- This example will connect to a websocket server and start listening to it, printing the received value on screen
5
+ In this section you can connect to a Freestyle metrics server and start listening to it,
6
+ the values will be shown on screen as they are received
8
7
</ p >
9
8
10
9
< button md-raised-button color ="{{ isCurrentlyListening() ? 'warn' : 'primary' }} " (click) ="toggleListening() ">
24
23
< h2 > {{ metric?.metric }}</ h2 >
25
24
</ md-grid-tile >
26
25
< md-grid-tile >
27
- < h2 > {{ metric?.value }}</ h2 >
26
+ < h2 > {{ metric?.value | number:'1.15-15' }}</ h2 >
28
27
</ md-grid-tile >
29
28
</ md-grid-list >
30
29
Original file line number Diff line number Diff line change 1
1
import { Component , OnInit } from '@angular/core' ;
2
- import { DatePipe } from '@angular/common' ;
3
2
import { Subscription } from 'rxjs/Subscription' ;
4
3
5
4
import { WsService } from './ws.service' ;
@@ -11,7 +10,7 @@ import { Metric } from '../shared/metric.model';
11
10
styleUrls : [ './ws-viewer.component.scss' ]
12
11
} )
13
12
export class WsViewerComponent implements OnInit {
14
- title = 'WebSockets example' ;
13
+ title = 'Metric streaming example' ;
15
14
metric : Metric ;
16
15
subscription : Subscription ;
17
16
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
- < title > PollingExample </ title >
5
+ < title > Freestyle Opscenter </ title >
6
6
< base href ="/ ">
7
7
8
8
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
You can’t perform that action at this time.
0 commit comments