Loading...
Loading...
Compare original and translation side by side
| Command | Purpose | Key flags |
|---|---|---|
| List available resource types (category/type pairs) | - |
| List resources of one category/type | |
| Daily health samples for one resource, oldest first | - |
| Raw resource document as JSON | - |
-o json-o agentstypeslist-p <profile>health-historyraw-data-p--scopeserviceenvironmentteam--scope environment=prod --scope service=checkout--scope service=a --scope service=b--start-row--end-row--end-row--end-row--start-rowliststart-row + rowstotal_count--name-filter--scopelisttotal_countreturned_countresourcestotal_countstart_row + returned_count < total_countlist:=| 命令 | 用途 | 关键参数 |
|---|---|---|
| 列出可用的资源类型(分类/类型对) | - |
| 列出某一分类/类型的资源 | |
| 单个资源的每日健康样本,按从旧到新排序 | - |
| 以JSON格式返回原始资源文档 | - |
-o json-o agentstypeslist-p <profile>health-historyraw-data-p--scopeserviceenvironmentteam--scope environment=prod --scope service=checkout--scope service=a --scope service=b--start-row--end-row--end-row--end-row--start-rowliststart-row + rowstotal_count--name-filter--scopelisttotal_countreturned_countresourcestotal_countstart_row + returned_count < total_countlist:=types--category--typelistresource_idweb-server-1cx infra resources types -o jsoncx infra resources list --category Hosts --type EC2_Instances \
--name-filter web --scope environment=prod -o jsonresource_idHealthyCriticalUnmonitoredcx infra resources health-history "1001234:host_id=i-abc123" -o jsonraw-datatypes--category--typelistresource_idweb-server-1cx infra resources types -o jsoncx infra resources list --category Hosts --type EC2_Instances \
--name-filter web --scope environment=prod -o jsonresource_idHealthyCriticalUnmonitoredcx infra resources health-history "1001234:host_id=i-abc123" -o jsonraw-dataundefinedundefinedlistlistundefinedundefinedcx infra resources list --category Hosts --type EC2_Instances -o json \
| jq '{total_count, returned_count}'cx infra resources list --category Hosts --type EC2_Instances -o json \
| jq '{total_count, returned_count}'undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined--category--typecx infra resources types:|=serviceenvironmentteamraw-data[]json[0]:agentsNo raw data found.no raw data for this resource-o jsonjq-o agentstypeslist-p <profile>listcounts_by_profiletotal_counthealth-historyraw-data-p1001234:host_id=…listprofileHealthyCriticalUnmonitoredresource_idhealth-historyraw-datanameservice--category--typecx infra resources types:|=serviceenvironmentteamraw-datajson[]agents[0]:No raw data found.no raw data for this resource-o jsonjq-o agentstypeslist-p <profile>listcounts_by_profiletotal_counthealth-historyraw-data-p1001234:host_id=…listprofileHealthyCriticalUnmonitoredresource_idhealth-historyraw-datanameservicecx-telemetry-queryingcx search-fields "<name>" -s valuecx logs "filter $l.subsystemname == '<service>'"Criticalcx-alertscx alerts list --name "<name-or-service>"cx-dashboardscx dashboards search "<name-or-service> ..."cx dashboards query-search --description "..."search-fields -s valuequery-search --fieldcx-telemetry-queryingcx search-fields "<name>" -s valuecx logs "filter $l.subsystemname == '<service>'"Criticalcx-alertscx alerts list --name "<name-or-service>"cx-dashboardscx dashboards search "<name-or-service> ..."cx dashboards query-search --description "..."search-fields -s valuequery-search --field