constants.ts 696 B

123456789101112131415161718192021
  1. // Thresholds for license limits, in percents
  2. export const WARNING_RATE = 80;
  3. export const ERROR_RATE = 100;
  4. // these mirror the definition in types.go
  5. export const NOTLOADED = 0;
  6. export const VALID = 1;
  7. export const LOADED = 2;
  8. export const INVALID = 3;
  9. export const NOTFOUND = 4;
  10. export const EXPIRED = 5;
  11. export const INVALID_SUBJECT = 6;
  12. export const DISMISS_WARNING_FOR_DAYS = 5;
  13. /* The auto dismiss cannot be too low as it will also trigger the snooze */
  14. export const WARNING_CLOSE_TIMEOUT_SEC = 3600;
  15. export const LICENSE_WARNING_DISMISS_UNTIL_KEY = 'grafana.licence.warning.dismissUntil';
  16. export const LIMIT_BY_USERS = 'users';
  17. export const AWS_MARKEPLACE_ISSUER = 'AWS/Marketplace';