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

Commit

Permalink
HAWKULAR-414 Datasource wait time color is too light
Browse files Browse the repository at this point in the history
Also added some additional type safety for ResourceId in the files that were touched.
  • Loading branch information
mtho11 committed Nov 18, 2015
1 parent 1e0fe64 commit 6a93cd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion console/src/main/scripts/plugins/metrics/less/metrics.less
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ a:hover {
}

.hk-yellow {
color: #d5d026;
color: #bcb932;
}

.fa-circle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module HawkularMetrics {
public static AVAILABLE_COLOR = '#1884c7'; /// blue
public static IN_USE_COLOR = '#49a547'; /// green
public static TIMED_OUT_COLOR = '#515252'; /// dark gray
public static WAIT_COLOR = '#d5d026'; /// yellow
public static WAIT_COLOR = '#bcb932'; /// yellow
public static CREATION_COLOR = '#95489c'; /// purple

public static DEFAULT_CONN_THRESHOLD = 200; // < 200 # connections available
Expand Down Expand Up @@ -97,7 +97,7 @@ module HawkularMetrics {
this.autoRefresh(20);
}

private getAlerts(resourceId:string, startTime:TimestampInMillis, endTime:TimestampInMillis, res:any):void {
private getAlerts(resourceId:ResourceId, startTime:TimestampInMillis, endTime:TimestampInMillis, res:any):void {
let dsArray:IAlert[];
let promise = this.HawkularAlertsManager.queryAlerts({
statuses: 'OPEN',
Expand Down Expand Up @@ -364,7 +364,7 @@ module HawkularMetrics {
}, this);
}

private loadDatasourceTriggers(resId):void {
private loadDatasourceTriggers(resId:ResourceId):void {
// Check if trigger exists on alerts setup modal open. If not, create the trigger before opening the modal

let connTriggerPromise = this.HawkularAlertsManager.existTrigger(resId + '_ds_conn').then(() => {
Expand Down Expand Up @@ -542,7 +542,7 @@ module HawkularMetrics {

}

public encodeResourceId(resourceId:string):string {
public encodeResourceId(resourceId:ResourceId):string {
// for some reason using standard encoding is not working correctly in the route. So do something dopey...
//let encoded = encodeURIComponent(resourceId);
let encoded = resourceId;
Expand Down

0 comments on commit 6a93cd3

Please sign in to comment.