-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1177 from dm3-org/updateMetricsOutputFormat
output metrics as array
- Loading branch information
Showing
5 changed files
with
34 additions
and
34 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
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
12 changes: 3 additions & 9 deletions
12
packages/delivery-service/src/persistence/metrics/metricTypes.ts
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 |
---|---|---|
@@ -1,13 +1,7 @@ | ||
type IntervalMetric = { | ||
export type IntervalMetric = { | ||
timestamp_start: number; | ||
duration_seconds: number; | ||
messageCount: number; | ||
messageSizeBytes: number; | ||
notificationCount: number; | ||
}; | ||
|
||
type MetricsMap = Map<Date, IntervalMetric>; | ||
|
||
export type { MetricsMap, IntervalMetric }; | ||
|
||
export interface MetricsObject { | ||
[date: string]: IntervalMetric; | ||
} |