Skip to content

Commit

Permalink
feat: increase sitewise default resolution mapping thresholds (#46)
Browse files Browse the repository at this point in the history
* feat: increase sitewise default resolution mapping thresholds

Co-authored-by: Norbert Nader <nnader@amazon.com>
  • Loading branch information
NorbertNader and NorbertNader committed Feb 4, 2022
1 parent d309262 commit b296883
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/data-sources/site-wise/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { RESOLUTION_TO_MS_MAPPING, SupportedResolutions } from './util/resolutio
export const SITEWISE_DATA_SOURCE = 'site-wise';

const DEFAULT_RESOLUTION_MAPPING = {
[MINUTE_IN_MS]: SupportedResolutions.ONE_MINUTE,
[HOUR_IN_MS]: SupportedResolutions.ONE_HOUR,
[DAY_IN_MS]: SupportedResolutions.ONE_DAY,
[MINUTE_IN_MS * 15]: SupportedResolutions.ONE_MINUTE,
[HOUR_IN_MS * 15]: SupportedResolutions.ONE_HOUR,
[DAY_IN_MS * 60]: SupportedResolutions.ONE_DAY,
};

const isSiteWiseResolution = (resolution: string | SupportedResolutions): resolution is SupportedResolutions => {
Expand Down

0 comments on commit b296883

Please sign in to comment.