Skip to content

Commit

Permalink
fix the comments and type keys to reflect the data model
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Apr 23, 2020
1 parent 0345dc9 commit 240b13f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const PRINTABLE_PDF_JOBTYPE = 'printable_pdf';
const getKeyCount = (buckets: KeyCountBucket[]): { [key: string]: number } =>
buckets.reduce((accum, { key, doc_count: count }) => ({ ...accum, [key]: count }), {});

// indexes some key/count buckets by statusType > appName > jobType: statusCount
// indexes some key/count buckets by statusType > jobType > appName: statusCount
const getAppStatuses = (buckets: StatusByAppBucket[]) =>
buckets.reduce((statuses, statusBucket) => {
return {
Expand Down
4 changes: 2 additions & 2 deletions x-pack/legacy/plugins/reporting/server/usage/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ interface StatusCounts {

interface StatusByAppCounts {
[statusType: string]: {
[appType: string]: {
[jobType: string]: number;
[jobType: string]: {
[appName: string]: number;
};
};
}
Expand Down

0 comments on commit 240b13f

Please sign in to comment.