Retry of Pring changed to Count

This commit is contained in:
crusader 2018-09-20 14:57:10 +09:00
parent e7142ab197
commit e783f9f785
5 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
export interface PingOption { export interface PingOption {
retry: number; count: number;
interval: number; interval: number;
deadline: number; deadline: number;
} }

View File

@ -79,8 +79,8 @@
<p-tabPanel header="Health"> <p-tabPanel header="Health">
<div class="ui-g-10 ui-g-offset-2">Retries : <div class="ui-g-10 ui-g-offset-2">Count :
<input type="number" pInputText [(ngModel)]="retries" min="1" max="50"> <input type="number" pInputText [(ngModel)]="count" min="1" max="50">
</div> </div>
<div class="ui-g-10 ui-g-offset-2">Interval : <div class="ui-g-10 ui-g-offset-2">Interval :
<input type="number" pInputText [(ngModel)]="interval" min="1" max="10"> <input type="number" pInputText [(ngModel)]="interval" min="1" max="10">

View File

@ -20,7 +20,7 @@ export class HostDetailComponent {
pingWaiting: boolean; pingWaiting: boolean;
retries: number; count: number;
interval: number; interval: number;
deadline: number; deadline: number;
@ -30,7 +30,7 @@ export class HostDetailComponent {
private probeService: ProbeService, private probeService: ProbeService,
) { ) {
this.pingWaiting = false; this.pingWaiting = false;
this.retries = 5; this.count = 5;
this.interval = 1; this.interval = 1;
this.deadline = 1; this.deadline = 1;
} }
@ -39,7 +39,7 @@ export class HostDetailComponent {
this.pingWaiting = true; this.pingWaiting = true;
const option = { const option = {
Retry: this.retries, Count: this.count,
Interval: this.interval, Interval: this.interval,
Deadline: this.deadline, Deadline: this.deadline,
}; };

View File

@ -61,8 +61,8 @@
<p-tabPanel header="Health"> <p-tabPanel header="Health">
<div class="ui-g-10 ui-g-offset-2">Retries : <div class="ui-g-10 ui-g-offset-2">Count :
<input type="number" pInputText [(ngModel)]="retries" min="1" max="50"> <input type="number" pInputText [(ngModel)]="count" min="1" max="50">
</div> </div>
<div class="ui-g-10 ui-g-offset-2">Interval : <div class="ui-g-10 ui-g-offset-2">Interval :
<input type="number" pInputText [(ngModel)]="interval" min="1" max="10"> <input type="number" pInputText [(ngModel)]="interval" min="1" max="10">

View File

@ -16,7 +16,7 @@ export class ServiceDetailComponent {
pingWaiting: boolean; pingWaiting: boolean;
pingResult: PingResult; pingResult: PingResult;
retries: number; count: number;
interval: number; interval: number;
deadline: number; deadline: number;
@ -24,7 +24,7 @@ export class ServiceDetailComponent {
private probeService: ProbeService private probeService: ProbeService
) { ) {
this.pingWaiting = false; this.pingWaiting = false;
this.retries = 5; this.count = 5;
this.interval = 1; this.interval = 1;
this.deadline = 1; this.deadline = 1;
} }
@ -33,7 +33,7 @@ export class ServiceDetailComponent {
this.pingWaiting = true; this.pingWaiting = true;
const option = { const option = {
Retry: this.retries, Count: this.count,
Interval: this.interval, Interval: this.interval,
Deadline: this.deadline, Deadline: this.deadline,
}; };