Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
File name cleanup. Removed the redundant metrics (for example: 'metri…
Browse files Browse the repository at this point in the history
…csAppServerList' becomes appServerList and metricsAlerts becomes alerts.

Moved ServerTypes into metricsTypes file.
Renamed metricsAvailability to urlAvailabilityDetails and urlResponseTimeDetails for more intuitive names.
  • Loading branch information
mtho11 committed Dec 4, 2015
1 parent 717d38a commit 7b0982c
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 46 deletions.
28 changes: 28 additions & 0 deletions console/src/main/scripts/plugins/metrics/ts/metricsTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,32 @@ module HawkularMetrics {
alertType:string;
}

export class ServerStatus {

constructor(public value:string, public state:string, public icon:string) {
}

static SERVER_UP = new ServerStatus('Up', 'up', 'fa-arrow-up');
static SERVER_DOWN = new ServerStatus('Down', 'down', 'fa-arrow-down');
static SERVER_UNKNOW = new ServerStatus('Unknown', 'unknown', 'fa-chain-broken');
static SERVER_STARTING = new ServerStatus('Starting', 'starting', 'fa-spinner');
static SERVER_RESTART_REQUIRED = new ServerStatus('Restart Required', 'restart required', 'fa-repeat');

toString = () => {
return this.value;
};
}

export class ServerType {
constructor(public value:string, public type:string) {
}

static SERVER_EAP = new ServerType('EAP', 'eap');
static SERVER_WILDFLY = new ServerType('WildFly', 'wildfly');

toString = () => {
return this.value;
};
}

}
46 changes: 0 additions & 46 deletions console/src/main/scripts/plugins/metrics/ts/serverStatus.ts

This file was deleted.

0 comments on commit 7b0982c

Please sign in to comment.