tokens.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. const windowOptions = [
  2. { name: "Today", value: "today" },
  3. { name: "Yesterday", value: "yesterday" },
  4. { name: "Week-to-date", value: "week" },
  5. // { name: "Month-to-date", value: "month" },
  6. { name: "Last week", value: "lastweek" },
  7. // { name: "Last month", value: "lastmonth" },
  8. { name: "Last 24h", value: "24h" },
  9. { name: "Last 48h", value: "48h" },
  10. { name: "Last 7 days", value: "7d" },
  11. // { name: "Last 30 days", value: "30d" },
  12. // { name: "Last 60 days", value: "60d" },
  13. // { name: "Last 90 days", value: "90d" },
  14. ];
  15. const aggregationOptions = [
  16. { name: "Account", value: "accountID" },
  17. { name: "Invoice Entity", value: "invoiceEntityID" },
  18. { name: "Provider", value: "provider" },
  19. { name: "Service ", value: "service" },
  20. { name: "Category", value: "category" },
  21. { name: "Item", value: "item" },
  22. ];
  23. const costMetricOptions = [
  24. { name: "Amortized Net Cost", value: "AmortizedNetCost" },
  25. { name: "List Cost", value: "ListCost" },
  26. { name: "Invoiced Cost", value: "InvoicedCost" },
  27. { name: "Amortized Cost", value: "AmortizedCost" },
  28. ];
  29. const aggMap = {
  30. invoiceEntityID: "Invoice Entity",
  31. provider: "Provider",
  32. service: "Service",
  33. accountID: "Account",
  34. };
  35. const costMetricToPropName = {
  36. AmortizedNetCost: "amortizedNetCost",
  37. AmortizedCost: "amortizedCost",
  38. ListCost: "listCost",
  39. NetCost: "netCost",
  40. InvoicedCost: "invoicedCost",
  41. };
  42. export {
  43. windowOptions,
  44. aggregationOptions,
  45. costMetricOptions,
  46. aggMap,
  47. costMetricToPropName,
  48. };