-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
240 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/// <reference path="metricsPlugin.d.ts" /> | ||
declare module HawkularMetrics { | ||
class AddUrlController { | ||
private $location; | ||
private $scope; | ||
private $log; | ||
private HawkularMetric; | ||
resourceUrl: string; | ||
static $inject: string[]; | ||
private tenantId; | ||
constructor($location: ng.ILocationService, $scope: any, $log: ng.ILogService, HawkularMetric: any, resourceUrl: string); | ||
addUrl(url: string): void; | ||
registerFixedMetrics(tenantId: string): void; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare module HawkularMetrics { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
declare module HawkularMetrics { | ||
class MetricDataService { | ||
private $q; | ||
private $rootScope; | ||
private $http; | ||
private $log; | ||
static $inject: string[]; | ||
constructor($q: ng.IQService, $rootScope: ng.IRootScopeService, $http: ng.IHttpService, $log: ng.ILogService); | ||
getBaseUrl(): string; | ||
getAllMetrics(): ng.IPromise<{}>; | ||
getMetricsForTimeRange(id: string, startDate: Date, endDate: Date, buckets: number): ng.IPromise<any>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/// <reference path="metricsPlugin.d.ts" /> | ||
/// <reference path="../../includes.d.ts" /> | ||
declare module HawkularMetrics { | ||
interface IContextChartDataPoint { | ||
timestamp: number; | ||
value: number; | ||
avg: number; | ||
empty: boolean; | ||
} | ||
interface IChartDataPoint extends IContextChartDataPoint { | ||
date: Date; | ||
min: number; | ||
max: number; | ||
} | ||
interface IMetricsViewController { | ||
searchId: string; | ||
startTimeStamp: Date; | ||
endTimeStamp: Date; | ||
dateRange: string; | ||
showAvgLine: boolean; | ||
hideHighLowValues: boolean; | ||
showPreviousRangeDataOverlay: boolean; | ||
showContextZoom: boolean; | ||
showPreviousTimeRange(): void; | ||
showNextTimeRange(): void; | ||
hasNext(): boolean; | ||
refreshChartDataNow(startTime: Date): void; | ||
refreshHistoricalChartData(startDate: Date, endDate: Date): void; | ||
refreshHistoricalChartDataForTimestamp(startTime?: number, endTime?: number): void; | ||
overlayPreviousRangeData(): void; | ||
togglePreviousRangeDataOverlay(): void; | ||
toggleContextZoom(): void; | ||
refreshContextChart(): void; | ||
} | ||
class MetricsViewController implements IMetricsViewController { | ||
private $scope; | ||
private $rootScope; | ||
private $interval; | ||
private $log; | ||
private metricDataService; | ||
startTimeStamp: Date; | ||
endTimeStamp: Date; | ||
dateRange: string; | ||
static $inject: string[]; | ||
searchId: string; | ||
showAvgLine: boolean; | ||
hideHighLowValues: boolean; | ||
showPreviousRangeDataOverlay: boolean; | ||
showContextZoom: boolean; | ||
constructor($scope: any, $rootScope: ng.IRootScopeService, $interval: ng.IIntervalService, $log: ng.ILogService, metricDataService: any, startTimeStamp: Date, endTimeStamp: Date, dateRange: string); | ||
private bucketedDataPoints; | ||
private contextDataPoints; | ||
private chartData; | ||
private noDataFoundForId(id); | ||
private static calculatePreviousTimeRange(startDate, endDate); | ||
showPreviousTimeRange(): void; | ||
private static calculateNextTimeRange(startDate, endDate); | ||
showNextTimeRange(): void; | ||
hasNext(): boolean; | ||
refreshChartDataNow(startTime?: Date): void; | ||
refreshHistoricalChartData(startDate: Date, endDate: Date): void; | ||
refreshHistoricalChartDataForTimestamp(startTime?: number, endTime?: number): void; | ||
private formatBucketedChartOutput(response); | ||
togglePreviousRangeDataOverlay(): void; | ||
overlayPreviousRangeData(): void; | ||
private formatPreviousBucketedOutput(response); | ||
toggleContextZoom(): void; | ||
refreshContextChart(): void; | ||
private formatContextOutput(response); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference path="metricsPlugin.d.ts" /> | ||
declare module HawkularMetrics { | ||
var OverviewController: ng.IModule; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.