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 {
retry: number;
count: number;
interval: number;
deadline: number;
}

View File

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

View File

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

View File

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

View File

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