Object 模式以实体为中心,使用 .entity_set with(...) | entity-call <方法>(<参数>) 的语法调用实体方法。例如查询特定服务的请求延迟指标:
.entity_set with(domain='apm', name='apm.service', ids=['21d5ed421ae93973...'])
| entity-call get_metric('apm', 'apm.metric.apm.service', 'avg_request_latency_seconds', 'range', '30s', false)
| project __entity_id__, __ts__, __value__, __labels__
核心优势是零配置过滤(自动处理 FilterByEntity)、字段映射透明(自动转换 service_id → acs_arms_service_id)、面向对象语义(符合开发者思维)。除 get_metric 外,还有 get_log、get_trace、get_profile 等同类方法。




