Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-3091

Create a new CostCategory model

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • 2022Q4
    • None
    • API

      CostCategory model with a name, description, source_type, system_default, namespace, and label fields

      • Unique constraint on name 
      • The namespace column should be an array field of namespace names
      • Optional: The label column should be an array field of label keys – maybe values??? - fortunately we don’t need to quite decide the label handling for this epic, would be design work for future customer defined categories
      • We also need to account for a wildcard for LIKE matching, at least for this platform cost bucket because some clusters will have different sets of kube- and openshift- projects
        • Example for platform cost: namespace column: [“openshift-%”, “kube-%”, “Platform Unallocated Capacity”]}

       

      Are there additional constraints? E.g. name must be unique.  What indices should we provide and what is the default order_by for this model.

              rhn-support-lcouzens Luke Couzens
              rhn-support-lcouzens Luke Couzens
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: