INNER CODE UNIT · TypeScript

useQueryWindowOptions

gocrane/crane · pkg/web/src/models/index.ts:9

export const useQueryWindowOptions = () => {
  const { t } = useTranslation();
  return [
    { value: QueryWindow.LAST_1_DAY, text: t('24小时') },
    { value: QueryWindow.LAST_7_DAY, text: t('7天') },
    { value: QueryWindow.LAST_30_DAY, text: t('30天') },
  ];
};

export enum Aggregation {
  CLUSTER = 'cluster',
  NAMESPACE = 'namespace',
  NODE = 'node',
  DEPLOYMENT = 'deployment',
  DAEMONSET = 'daemonset',
  STATEFULSET = 'statefulset',
  JOB = 'job',
  CRONJOB = 'cronjob',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…