models.gen.ts 652 B

123456789101112131415161718192021222324
  1. import { ScaleDistributionConfig } from '@grafana/schema';
  2. export enum HeatmapCalculationMode {
  3. Size = 'size', // When exponential, this is "splitFactor"
  4. Count = 'count',
  5. }
  6. export const enum HeatmapCellLayout {
  7. le = 'le',
  8. ge = 'ge',
  9. unknown = 'unknown', // unknown
  10. auto = 'auto', // becomes unknown
  11. }
  12. export interface HeatmapCalculationBucketConfig {
  13. mode?: HeatmapCalculationMode;
  14. value?: string; // number or interval string ie 10s, or log "split" divisor
  15. scale?: ScaleDistributionConfig;
  16. }
  17. export interface HeatmapCalculationOptions {
  18. xBuckets?: HeatmapCalculationBucketConfig;
  19. yBuckets?: HeatmapCalculationBucketConfig;
  20. }