export declare const BCM_SEMANTIC_YAML = "\nsemantic_models:\n - name: bcm_hdr\n description: \"Billed consumption header, one row per customer per month.\"\n model: \"ref('bcm_hdr')\"\n defaults:\n agg_time_dimension: consumption_month\n entities:\n - name: bcm_hdr\n type: primary\n expr: bcm_hdr_id\n measures:\n - name: bcm_amount\n description: \"Billed consumption amount.\"\n agg: sum\n expr: bcm_amount\n create_metric: false\n dimensions:\n - name: customer_name\n type: categorical\n expr: customer_name\n - name: consumption_month\n type: time\n type_params:\n time_granularity: month\n\n - name: bcm_dtl\n description: \"Billed consumption detail lines.\"\n model: \"ref('bcm_dtl')\"\n entities:\n - name: bcm_dtl\n type: primary\n expr: bcm_dtl_id\n - name: bcm_hdr\n type: foreign\n expr: bcm_hdr_id\n measures:\n - name: bcm_line_amount\n agg: sum\n expr: line_amount\n dimensions:\n - name: line_status\n type: categorical\n expr: line_status\n\n - name: bcm_ccu_pc\n description: \"Cloud consumption units by product category \u2014 disjoint model.\"\n model: \"ref('bcm_ccu_pc')\"\n entities:\n - name: bcm_ccu_pc\n type: primary\n expr: bcm_ccu_pc_id\n measures:\n - name: ccu_amount\n agg: sum\n expr: ccu_amount\n dimensions:\n - name: product_category\n type: categorical\n expr: product_category\n\nmetrics:\n - name: total_bcm\n label: \"Total BCM\"\n description: \"Total billed consumption.\"\n type: simple\n type_params:\n measure: bcm_amount\n meta:\n format: currency\n\n - name: percent_mom_bcm\n label: \"Percent MoM BCM\"\n description: \"Month-over-month percent change in billed consumption.\"\n type: derived\n type_params:\n expr: \"(total_bcm - total_bcm_prev) / nullif(total_bcm_prev, 0)\"\n metrics:\n - name: total_bcm\n - name: total_bcm\n offset_window: 1 month\n alias: total_bcm_prev\n meta:\n format: percent\n"; /** Write the bcm project as source YAML under `