-
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.
Issue #12: implement DataSourceWithLogsContextSupport interface
- Loading branch information
1 parent
5978dc6
commit b56d712
Showing
8 changed files
with
187 additions
and
117 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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
npm install | ||
npm run build | ||
mage -v | ||
docker-compose up --build --force-recreate |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { DurationUnit } from '@grafana/data'; | ||
import { Interval } from './types'; | ||
|
||
type IntervalMap = Record< | ||
Interval, | ||
{ | ||
startOf: DurationUnit; | ||
amount: DurationUnit; | ||
} | ||
>; | ||
|
||
export const intervalMap: IntervalMap = { | ||
Hourly: { startOf: 'hour', amount: 'hours' }, | ||
Daily: { startOf: 'day', amount: 'days' }, | ||
Weekly: { startOf: 'isoWeek', amount: 'weeks' }, | ||
Monthly: { startOf: 'month', amount: 'months' }, | ||
Yearly: { startOf: 'year', amount: 'years' }, | ||
}; |
Oops, something went wrong.