alibabacloud-odps-cost-analysis
MaxCompute Cost Analysis
Analyze Alibaba Cloud MaxCompute (ODPS) pay-as-you-go costs: billing summaries, storage metrics, and compute metrics across 10 APIs.
⚠️ MANDATORY PRODUCT CONSTRAINT: This skill uses ONLY the 10
aliyun maxcomputeCLI commands listed in API Overview below (plugin mode, version 2022-01-04). NEVER usealiyun bssopenapior any of its actions (billing queries, instance bills, etc.). NEVER use other MaxCompute APIs not in the 10-API list (e.g.,list-job-infos,get-running-jobs,list-projects,list-tables,get-storage-amount-summary). NEVER use any other product CLI (aliyun odps,aliyun dataworks,aliyun compute-nest,aliyun cms,aliyun actiontrail, etc.). Ifaliyun maxcomputecommands fail, fix the plugin — do NOT fall back to other APIs or products.Intent → API Mapping (use ONLY these):
- Billing/费用 →
sum-bills,sum-bills-by-date,sum-daily-bills-by-item- Daily cost spike/费用突增/每日趋势 →
sum-bills-by-date(MANDATORY for locating spike dates — NOTsum-daily-bills-by-item)- Paginated daily billing details/每日账单明细/按计费项的每日账单 →
sum-daily-bills-by-item(MANDATORY — NOT anybssopenapicommand)- Storage/存储 →
sum-storage-metrics-by-typeANDsum-storage-metrics-by-date(BOTH MANDATORY —sum-storage-metrics-by-typealone is NOT sufficient)- Compute jobs/计算作业/expensive jobs/贵的作业 →
list-compute-metrics-by-instance(MANDATORY — NEVER uselist-job-infos,get-running-jobs,get-job-resource-usage)- SQL signatures/SQL签名/重复SQL/扫描量 →
list-compute-metrics-by-signature(MANDATORY for any SQL pattern analysis)- SCAN usage trends/扫描量趋势/CU usage →
sum-compute-metrics-by-usage(MANDATORY — usageType=SCAN or CU; NEVER use CloudMonitor or ActionTrail)