@thinkingai/ae-cli 1.0.3 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -53
- package/README.zh.md +203 -0
- package/dist/{auth-BQC5DBE7.js → auth-4GAHTBVH.js} +1 -1
- package/dist/{auth-DXKYLMO7.js → auth-U2GHFMFY.js} +5 -5
- package/dist/{chunk-ZYXIGPG7.js → chunk-OQ4XEG77.js} +2 -2
- package/dist/{chunk-53FNNCZW.js → chunk-TJIMDNAU.js} +1 -1
- package/dist/{chunk-3CDLNXTD.js → chunk-UK6HO5O5.js} +2 -2
- package/dist/{client-T4VODLA6.js → client-HU63573O.js} +2 -2
- package/dist/{config-V7AXKDMB.js → config-OLF7RBPM.js} +4 -4
- package/dist/index.js +14 -14
- package/dist/{raw-G3GKHAPZ.js → raw-GDO4IWNW.js} +3 -3
- package/dist/{te-analysis-CHFTDN55.js → te-analysis-ZDJXMWZY.js} +61 -23
- package/dist/{te-audience-M6LQY6M7.js → te-audience-T5B52EEB.js} +60 -20
- package/dist/{te-common-BLQ7DVGC.js → te-common-BPTXXTHQ.js} +5 -32
- package/dist/{community-FVDAWGS4.js → te-community-FPB5LH56.js} +58 -58
- package/dist/{te-dataops-V4OTKY35.js → te-dataops-2NUJVG47.js} +2 -27
- package/dist/{te-engage-DXE4R5EW.js → te-engage-K3EANZ5P.js} +3 -21
- package/dist/{te-meta-FMM7KCVI.js → te-meta-JJMV75KB.js} +85 -17
- package/package.json +3 -3
- package/skills/ae-analysis/SKILL.md +229 -0
- package/skills/{te-meta/references/batch-create-metadata.md → ae-analysis/references/batch_create_metadata.md} +3 -3
- package/skills/{te-meta/references/batch-edit-metadata.md → ae-analysis/references/batch_edit_metadata.md} +2 -2
- package/skills/{te-analysis/references/build-entity-details-sql.md → ae-analysis/references/build_entity_details_sql.md} +9 -9
- package/skills/{te-analysis/references/build-event-details-sql.md → ae-analysis/references/build_event_details_sql.md} +9 -9
- package/skills/{te-analysis/references/create-alert.md → ae-analysis/references/create_alert.md} +4 -4
- package/skills/{te-audience/references/create-cluster.md → ae-analysis/references/create_cluster.md} +23 -19
- package/skills/{te-analysis/references/create-dashboard.md → ae-analysis/references/create_dashboard.md} +4 -4
- package/skills/{te-meta/references/create-metric.md → ae-analysis/references/create_metric.md} +10 -10
- package/skills/{te-analysis/references/create-or-update-dashboard-note.md → ae-analysis/references/create_or_update_dashboard_note.md} +3 -3
- package/skills/{te-meta/references/create-project-mark-time.md → ae-analysis/references/create_project_mark_time.md} +3 -3
- package/skills/{te-analysis/references/create-public-access-link.md → ae-analysis/references/create_public_access_link.md} +3 -3
- package/skills/{te-analysis/references/create-report.md → ae-analysis/references/create_report.md} +9 -9
- package/skills/{te-analysis/references/create-result-cluster.md → ae-analysis/references/create_result_cluster.md} +6 -6
- package/skills/{te-audience/references/create-tag.md → ae-analysis/references/create_tag.md} +16 -15
- package/skills/{te-meta/references/create-virtual-event.md → ae-analysis/references/create_virtual_event.md} +9 -9
- package/skills/{te-meta/references/create-virtual-property.md → ae-analysis/references/create_virtual_property.md} +7 -7
- package/skills/{te-meta/references/delete-project-mark-times.md → ae-analysis/references/delete_project_mark_times.md} +2 -2
- package/skills/{te-meta/references/delete-track-items.md → ae-analysis/references/delete_track_items.md} +2 -2
- package/skills/{te-analysis/references/drilldown-user-events.md → ae-analysis/references/drilldown_user_events.md} +8 -8
- package/skills/{te-analysis/references/drilldown-users.md → ae-analysis/references/drilldown_users.md} +10 -7
- package/skills/ae-analysis/references/generate_track_program.md +51 -0
- package/skills/ae-analysis/references/generate_track_sdk_sample.md +43 -0
- package/skills/{te-analysis/references/get-alert.md → ae-analysis/references/get_alert.md} +2 -2
- package/skills/{te-analysis/references/get-alert-definition-schema.md → ae-analysis/references/get_alert_definition_schema.md} +1 -1
- package/skills/ae-analysis/references/get_analysis_query_schema.md +61 -0
- package/skills/ae-analysis/references/get_cluster_definition_schema.md +53 -0
- package/skills/ae-analysis/references/get_clusters_by_name.md +69 -0
- package/skills/{te-analysis/references/get-filter-schema.md → ae-analysis/references/get_filter_schema.md} +1 -1
- package/skills/{te-analysis/references/get-groupby-schema.md → ae-analysis/references/get_groupby_schema.md} +1 -1
- package/skills/{te-meta/references/get-metric.md → ae-analysis/references/get_metric.md} +2 -2
- package/skills/{te-meta/references/get-project-config.md → ae-analysis/references/get_project_config.md} +2 -2
- package/skills/{te-analysis/references/get-report-definition.md → ae-analysis/references/get_report_definition.md} +2 -2
- package/skills/{te-common/references/get-resource-url.md → ae-analysis/references/get_resource_url.md} +4 -4
- package/skills/{te-analysis/references/get-table-columns.md → ae-analysis/references/get_table_columns.md} +2 -2
- package/skills/ae-analysis/references/get_tag_definition_schema.md +49 -0
- package/skills/ae-analysis/references/get_tags_by_name.md +69 -0
- package/skills/{te-meta/references/get-track-program.md → ae-analysis/references/get_track_program.md} +2 -2
- package/skills/{te-analysis/references/list-alerts.md → ae-analysis/references/list_alerts.md} +6 -3
- package/skills/{te-audience/references/list-cluster-members.md → ae-analysis/references/list_cluster_members.md} +11 -4
- package/skills/{te-audience/references/list-clusters.md → ae-analysis/references/list_clusters.md} +10 -4
- package/skills/{te-analysis/references/list-dashboards.md → ae-analysis/references/list_dashboards.md} +8 -4
- package/skills/{te-meta/references/list-entities.md → ae-analysis/references/list_entities.md} +10 -3
- package/skills/{te-meta/references/list-events.md → ae-analysis/references/list_events.md} +8 -5
- package/skills/ae-analysis/references/list_metrics.md +41 -0
- package/skills/ae-analysis/references/list_project_mark_times.md +42 -0
- package/skills/{te-meta/references/list-project-users.md → ae-analysis/references/list_project_users.md} +2 -2
- package/skills/{te-common/references/list-projects.md → ae-analysis/references/list_projects.md} +6 -4
- package/skills/{te-meta/references/list-properties.md → ae-analysis/references/list_properties.md} +9 -4
- package/skills/ae-analysis/references/list_public_access_links.md +41 -0
- package/skills/{te-analysis/references/list-reports.md → ae-analysis/references/list_reports.md} +8 -4
- package/skills/{te-audience/references/list-tag-members.md → ae-analysis/references/list_tag_members.md} +11 -4
- package/skills/{te-audience/references/list-tags.md → ae-analysis/references/list_tags.md} +10 -4
- package/skills/{te-analysis/references/load-filters.md → ae-analysis/references/load_filters.md} +3 -3
- package/skills/{te-analysis/references/query-adhoc.md → ae-analysis/references/query_adhoc.md} +14 -9
- package/skills/{te-analysis/references/query-dashboard-detail.md → ae-analysis/references/query_dashboard_detail.md} +2 -2
- package/skills/{te-analysis/references/query-dashboard-report-data.md → ae-analysis/references/query_dashboard_report_data.md} +9 -9
- package/skills/{te-analysis/references/query-entity-details.md → ae-analysis/references/query_entity_details.md} +10 -10
- package/skills/{te-analysis/references/query-event-details.md → ae-analysis/references/query_event_details.md} +12 -12
- package/skills/{te-analysis/references/query-report-data.md → ae-analysis/references/query_report_data.md} +11 -11
- package/skills/{te-audience/references/refresh-cluster.md → ae-analysis/references/refresh_cluster.md} +2 -2
- package/skills/{te-audience/references/refresh-tag.md → ae-analysis/references/refresh_tag.md} +2 -2
- package/skills/{te-meta/references/save-track-items.md → ae-analysis/references/save_track_items.md} +2 -2
- package/skills/{te-analysis/references/update-alert.md → ae-analysis/references/update_alert.md} +4 -4
- package/skills/{te-audience/references/update-cluster.md → ae-analysis/references/update_cluster.md} +15 -13
- package/skills/{te-analysis/references/update-dashboard.md → ae-analysis/references/update_dashboard.md} +3 -3
- package/skills/{te-meta/references/update-metric.md → ae-analysis/references/update_metric.md} +9 -9
- package/skills/{te-meta/references/update-project-mark-time.md → ae-analysis/references/update_project_mark_time.md} +3 -3
- package/skills/{te-analysis/references/update-public-access-link.md → ae-analysis/references/update_public_access_link.md} +3 -3
- package/skills/{te-audience/references/update-tag.md → ae-analysis/references/update_tag.md} +15 -14
- package/skills/ae-community/SKILL.md +305 -0
- package/skills/{te-community → ae-community}/references/community-activity-analysis.md +6 -7
- package/skills/{te-community → ae-community}/references/community-analyzing-official-content.md +3 -4
- package/skills/{te-community → ae-community}/references/community-analyzing-theme-comment.md +5 -6
- package/skills/{te-community → ae-community}/references/community-character-analysis.md +5 -6
- package/skills/{te-community → ae-community}/references/community-daily-report.md +7 -8
- package/skills/{te-community → ae-community}/references/community-hottopic-insight.md +4 -5
- package/skills/{te-community → ae-community}/references/community-weekly-report.md +7 -8
- package/skills/{te-community → ae-community}/references/get_channel_info.md +4 -5
- package/skills/{te-community → ae-community}/references/get_comment_tag_analysis.md +3 -4
- package/skills/{te-community → ae-community}/references/get_comments_summary.md +4 -5
- package/skills/{te-community → ae-community}/references/get_corpus_tags.md +3 -4
- package/skills/{te-community → ae-community}/references/get_daily_summary.md +3 -4
- package/skills/{te-community → ae-community}/references/get_hot_topics.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_analysis.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_detail.md +4 -5
- package/skills/{te-community → ae-community}/references/get_livestream_list.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_overview.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_room_metrics.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_rooms.md +3 -4
- package/skills/{te-community → ae-community}/references/get_overview_metrics.md +3 -4
- package/skills/{te-community → ae-community}/references/get_post_detail.md +4 -5
- package/skills/{te-community → ae-community}/references/get_risk_content.md +5 -6
- package/skills/{te-community → ae-community}/references/get_sentiment_overview.md +4 -5
- package/skills/{te-community → ae-community}/references/get_tag_trends.md +3 -4
- package/skills/{te-community → ae-community}/references/get_topic_detail.md +3 -4
- package/skills/{te-community → ae-community}/references/search_posts.md +5 -6
- package/skills/{te-dataops → ae-dataops}/SKILL.md +73 -10
- package/skills/{te-dataops → ae-dataops}/references/dataops-flow-create.md +1 -1
- package/skills/{te-dataops → ae-dataops}/references/dataops-flow-monitor.md +1 -1
- package/skills/{te-dataops → ae-dataops}/references/dataops-integration.md +1 -1
- package/skills/{te-dataops → ae-dataops}/references/dataops-query.md +1 -1
- package/skills/{te-dataops → ae-dataops}/references/dataops-table.md +1 -1
- package/skills/{te-engage → ae-engage}/SKILL.md +106 -6
- package/skills/{te-engage → ae-engage}/references/add-approver.md +2 -2
- package/skills/{te-engage → ae-engage}/references/add-channel.md +2 -2
- package/skills/{te-engage → ae-engage}/references/approver-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/cancel-query-by-request-id.md +2 -2
- package/skills/{te-engage → ae-engage}/references/channel-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/channel-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-channel-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-channel-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-analysis-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-strategy-comparison.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-trigger-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/copy-config-template.md +2 -2
- package/skills/{te-engage → ae-engage}/references/delete-channel.md +2 -2
- package/skills/{te-engage → ae-engage}/references/delete-config-channel.md +2 -2
- package/skills/{te-engage → ae-engage}/references/delete-config-item.md +2 -2
- package/skills/{te-engage → ae-engage}/references/delete-flow.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-ab-split-node-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-node-config-schema.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-node-detail-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-node-overview-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-process-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/manage-flow.md +2 -2
- package/skills/{te-engage → ae-engage}/references/manage-strategy.md +2 -2
- package/skills/{te-engage → ae-engage}/references/manage-task.md +2 -2
- package/skills/{te-engage → ae-engage}/references/modify-flow-base-info.md +2 -2
- package/skills/{te-engage → ae-engage}/references/save-flow.md +3 -3
- package/skills/{te-engage → ae-engage}/references/strategy-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/strategy-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/task-data-detail.md +3 -10
- package/skills/{te-engage → ae-engage}/references/task-data-overview.md +3 -9
- package/skills/{te-engage → ae-engage}/references/task-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/task-experiment-report.md +3 -9
- package/skills/{te-engage → ae-engage}/references/task-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/task-metric-detail.md +3 -9
- package/skills/{te-engage → ae-engage}/references/task-stats.md +2 -2
- package/skills/{te-engage → ae-engage}/references/update-channel-status.md +2 -2
- package/skills/{te-engage → ae-engage}/references/update-config-channel-status.md +2 -2
- package/skills/{te-engage → ae-engage}/references/validate-flow-node-config.md +2 -2
- package/skills/{te-engage → ae-engage}/references/whitelist-list.md +2 -2
- package/dist/auth-JXELJNDS.js +0 -19
- package/dist/auth-L3G3A74I.js +0 -67
- package/dist/chunk-3GM5LJZR.js +0 -145
- package/dist/chunk-JD5DXMKL.js +0 -172
- package/dist/chunk-OVQOK35G.js +0 -108
- package/dist/chunk-RJNLN3KQ.js +0 -217
- package/dist/client-5QSQBBDB.js +0 -16
- package/dist/community-GMALVSRF.js +0 -684
- package/dist/config-Q7J3Z7Z2.js +0 -242
- package/dist/raw-ZNVURYMR.js +0 -59
- package/dist/te-analysis-7NN3SY3I.js +0 -871
- package/dist/te-audience-P43BWMHM.js +0 -350
- package/dist/te-common-H3IPTI2I.js +0 -144
- package/dist/te-dataops-WCGDBJLF.js +0 -1853
- package/dist/te-engage-UTRVNTGU.js +0 -1470
- package/dist/te-meta-HGYNXVGF.js +0 -479
- package/skills/te-analysis/SKILL.md +0 -107
- package/skills/te-analysis/references/get-analysis-query-schema.md +0 -36
- package/skills/te-analysis/references/list-public-access-links.md +0 -31
- package/skills/te-audience/SKILL.md +0 -63
- package/skills/te-audience/references/get-cluster-definition-schema.md +0 -37
- package/skills/te-audience/references/get-clusters-by-name.md +0 -32
- package/skills/te-audience/references/get-tag-definition-schema.md +0 -32
- package/skills/te-audience/references/get-tags-by-name.md +0 -32
- package/skills/te-common/SKILL.md +0 -135
- package/skills/te-community/SKILL.md +0 -125
- package/skills/te-meta/SKILL.md +0 -71
- package/skills/te-meta/references/list-metrics.md +0 -33
- package/skills/te-meta/references/list-project-mark-times.md +0 -33
- package/skills/te-shared/SKILL.md +0 -115
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +query_entity_details (query entity details)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Entity Detail Queries**
|
|
6
6
|
|
|
@@ -11,22 +11,22 @@ Domain: **Entity Detail Queries**
|
|
|
11
11
|
|
|
12
12
|
## Mandatory Prerequisites (MUST)
|
|
13
13
|
- Before building `--definition` / `--properties`, you must first read and follow the following reference docs:
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
14
|
+
- [`./get_cluster_definition_schema.md`](./get_cluster_definition_schema.md)
|
|
15
|
+
- [`./list_events.md`](./list_events.md)
|
|
16
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
17
17
|
- Do not generate final `definition` / `properties` until the above docs have been read and the prerequisite commands have been called.
|
|
18
18
|
|
|
19
19
|
## Prerequisite Call Chain (required for building definition/properties)
|
|
20
20
|
1. First confirm the cluster type (condition / sql).
|
|
21
|
-
2. Read `
|
|
22
|
-
3. Read `
|
|
23
|
-
4. Read `
|
|
21
|
+
2. Read `get_cluster_definition_schema.md`, then call `ae-cli analysis_audience +get_cluster_definition_schema --cluster_type <condition|sql>` to get the structure.
|
|
22
|
+
3. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>`.
|
|
23
|
+
4. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>`.
|
|
24
24
|
5. Build `definition` (and optional `properties`) based on the schema and metadata, then call `+query_entity_details`.
|
|
25
25
|
|
|
26
26
|
## Commands
|
|
27
27
|
```bash
|
|
28
|
-
ae-cli analysis +query_entity_details --project_id
|
|
29
|
-
ae-cli analysis +query_entity_details --project_id
|
|
28
|
+
ae-cli analysis +query_entity_details --project_id <project_id> --definition '{}'
|
|
29
|
+
ae-cli analysis +query_entity_details --project_id <project_id> --entity_id 1001 --definition '{}' --properties '{}' --sort_by time --sort_order desc --limit 20 --zone_offset 8 --use_cache true
|
|
30
30
|
ae-cli analysis +query_entity_details --dry-run
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -39,7 +39,7 @@ ae-cli analysis +query_entity_details --dry-run
|
|
|
39
39
|
| `--properties` | No | Optional display properties JSON, for example `[{"columnName":"#user_id","tableType":"0"},{"columnName":"device_id","tableType":"0"}]`. If provided, property names should come from `analysis_meta +list_properties` in the same `project_id`. |
|
|
40
40
|
| `--sort_by` | No | Optional sort field |
|
|
41
41
|
| `--sort_order` | No | Optional sort order. Supported values: asc and desc |
|
|
42
|
-
| `--limit` | No | Optional result limit. Default:
|
|
42
|
+
| `--limit` | No | Optional result limit. Default: 20, maximum: 50 |
|
|
43
43
|
| `--zone_offset` | No | Time zone offset. For example, UTC+8 is 8 |
|
|
44
44
|
| `--use_cache` | No | Whether to use cache. Default: true |
|
|
45
45
|
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
# analysis +query_event_details (Query Event Details)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Event detail queries**
|
|
6
6
|
|
|
7
7
|
## Use Cases
|
|
8
8
|
- When constructing `filters` / `properties`, you must first obtain the filter schema and the project metadata for real events/properties.
|
|
9
9
|
- Query event detail data. Supports time range, filters, display properties, sorting, and result limits.
|
|
10
|
-
-
|
|
10
|
+
- Time can be specified via `--relative_date_range` OR (`--start_time` AND `--end_time`).
|
|
11
11
|
|
|
12
12
|
## Mandatory prerequisites (MUST)
|
|
13
13
|
- Before constructing `--filters` / `--properties`, you must first read and follow these reference documents:
|
|
14
|
-
- [`./
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
14
|
+
- [`./get_filter_schema.md`](./get_filter_schema.md)
|
|
15
|
+
- [`./list_events.md`](./list_events.md)
|
|
16
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
17
17
|
- Do not generate the final `filters` / `properties` until the documentation review and prerequisite command calls are complete.
|
|
18
18
|
|
|
19
19
|
## Prerequisite call chain (required for constructing filters/properties)
|
|
20
|
-
1. Read `
|
|
21
|
-
2. Read `
|
|
22
|
-
3. Read `
|
|
20
|
+
1. Read `get_filter_schema.md`, then call `ae-cli analysis +get_filter_schema` to get the filter structure.
|
|
21
|
+
2. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>` to confirm the available event names.
|
|
22
|
+
3. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>` to get the available properties.
|
|
23
23
|
4. Build `filters` / `properties` from the schema + metadata, then call `+query_event_details`.
|
|
24
24
|
|
|
25
25
|
## Command
|
|
26
26
|
```bash
|
|
27
|
-
ae-cli analysis +query_event_details --project_id
|
|
28
|
-
ae-cli analysis +query_event_details --project_id
|
|
27
|
+
ae-cli analysis +query_event_details --project_id <project_id> --event_name login --start_time '2026-04-08 00:00:00' --end_time '2026-04-08 23:59:59'
|
|
28
|
+
ae-cli analysis +query_event_details --project_id <project_id> --event_name login --relative_date_range 0-7 --filters '{}' --properties '{}' --sort_by time --sort_order desc --limit 20 --zone_offset 8 --use_cache true
|
|
29
29
|
ae-cli analysis +query_event_details --dry-run
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -34,8 +34,8 @@ ae-cli analysis +query_event_details --dry-run
|
|
|
34
34
|
|---|---|---|
|
|
35
35
|
| `--project_id` / `-p` | Yes | Project ID |
|
|
36
36
|
| `--event_name` | Yes | Event name |
|
|
37
|
-
| `--start_time` | No | Start time. Format: yyyy-MM-dd HH:mm:ss |
|
|
38
|
-
| `--end_time` | No | End time. Format: yyyy-MM-dd HH:mm:ss |
|
|
37
|
+
| `--start_time` | No | Start time. Format: yyyy-MM-dd HH:mm:ss. Required if not using relative_date_range. |
|
|
38
|
+
| `--end_time` | No | End time. Format: yyyy-MM-dd HH:mm:ss. Required if not using relative_date_range. |
|
|
39
39
|
| `--relative_date_range` | No | Optional relative date range in m-n format. For example, 0-7 means the most recent 7 days including today. Use either this field or start_time/end_time. |
|
|
40
40
|
| `--filters` | No | Optional filter JSON. If provided, MUST follow `+get_filter_schema`, and referenced fields must come from `analysis_meta +list_properties` in the same `project_id`. |
|
|
41
41
|
| `--properties` | No | Optional display properties JSON, for example `[{"columnName":"#user_id","tableType":"0"},{"columnName":"device_id","tableType":"0"}]`. If provided, property names should come from `analysis_meta +list_properties` in the same `project_id`. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +query_report_data (query data by report)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Report Management**
|
|
6
6
|
|
|
@@ -13,23 +13,23 @@ Domain: **Report Management**
|
|
|
13
13
|
|
|
14
14
|
## Mandatory Prerequisites (MUST)
|
|
15
15
|
- Before building `--filters` / `--group_by`, you must first read and follow the following reference docs:
|
|
16
|
-
- [`./
|
|
17
|
-
- [`./
|
|
18
|
-
- [
|
|
19
|
-
- [
|
|
16
|
+
- [`./get_filter_schema.md`](./get_filter_schema.md)
|
|
17
|
+
- [`./get_groupby_schema.md`](./get_groupby_schema.md)
|
|
18
|
+
- [`./list_events.md`](./list_events.md)
|
|
19
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
20
20
|
- Do not generate final `filters` / `group_by` until the above docs have been read and the prerequisite commands have been called.
|
|
21
21
|
|
|
22
22
|
## Prerequisite Call Chain (required for building filters/group_by)
|
|
23
|
-
1. Read `
|
|
24
|
-
2. Read `
|
|
25
|
-
3. Read `
|
|
26
|
-
4. Read `
|
|
23
|
+
1. Read `get_filter_schema.md`, then call `ae-cli analysis +get_filter_schema` to get the filter structure.
|
|
24
|
+
2. Read `get_groupby_schema.md`, then call `ae-cli analysis +get_groupby_schema` to get the grouping structure.
|
|
25
|
+
3. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>`.
|
|
26
|
+
4. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>`.
|
|
27
27
|
5. Build `filters` / `group_by` based on the schema and metadata, then call `+query_report_data`.
|
|
28
28
|
|
|
29
29
|
## Commands
|
|
30
30
|
```bash
|
|
31
|
-
ae-cli analysis +query_report_data --project_id
|
|
32
|
-
ae-cli analysis +query_report_data --project_id
|
|
31
|
+
ae-cli analysis +query_report_data --project_id <project_id> --report_ids '[1001]'
|
|
32
|
+
ae-cli analysis +query_report_data --project_id <project_id> --report_ids '[1001]' --filters '{}' --group_by '[]' --request_id demo --use_cache true --start_date 2026-04-08 --end_date 2026-04-08 --time_granularity day --timeout_minutes 8
|
|
33
33
|
ae-cli analysis +query_report_data --dry-run
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_audience +refresh_cluster (Trigger Cluster Recompute)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Cluster Management**
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Domain: **Cluster Management**
|
|
|
9
9
|
|
|
10
10
|
## Commands
|
|
11
11
|
```bash
|
|
12
|
-
ae-cli analysis_audience +refresh_cluster --project_id
|
|
12
|
+
ae-cli analysis_audience +refresh_cluster --project_id <project_id> --cluster_name demo
|
|
13
13
|
ae-cli analysis_audience +refresh_cluster --dry-run
|
|
14
14
|
```
|
|
15
15
|
|
package/skills/{te-audience/references/refresh-tag.md → ae-analysis/references/refresh_tag.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_audience +refresh_tag (Trigger Tag Recompute)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Tag Management**
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Domain: **Tag Management**
|
|
|
9
9
|
|
|
10
10
|
## Commands
|
|
11
11
|
```bash
|
|
12
|
-
ae-cli analysis_audience +refresh_tag --project_id
|
|
12
|
+
ae-cli analysis_audience +refresh_tag --project_id <project_id> --tag_name demo
|
|
13
13
|
ae-cli analysis_audience +refresh_tag --dry-run
|
|
14
14
|
```
|
|
15
15
|
|
package/skills/{te-meta/references/save-track-items.md → ae-analysis/references/save_track_items.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +save_track_items (Save Track Program Items)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Project Configuration**
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ Domain: **Project Configuration**
|
|
|
10
10
|
|
|
11
11
|
## Command
|
|
12
12
|
```bash
|
|
13
|
-
ae-cli analysis_meta +save_track_items --project_id
|
|
13
|
+
ae-cli analysis_meta +save_track_items --project_id <project_id> --track_data '{}'
|
|
14
14
|
ae-cli analysis_meta +save_track_items --dry-run
|
|
15
15
|
```
|
|
16
16
|
|
package/skills/{te-analysis/references/update-alert.md → ae-analysis/references/update_alert.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +update_alert (Update Alert)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Metadata queries**
|
|
6
6
|
|
|
@@ -11,17 +11,17 @@ Domain: **Metadata queries**
|
|
|
11
11
|
|
|
12
12
|
## Mandatory prerequisites (MUST)
|
|
13
13
|
- Before constructing a new `--definition`, you must first read and follow:
|
|
14
|
-
- [`./
|
|
14
|
+
- [`./get_alert_definition_schema.md`](./get_alert_definition_schema.md)
|
|
15
15
|
- Do not submit the new `definition` until the documentation review and schema call are complete.
|
|
16
16
|
|
|
17
17
|
## Prerequisite call chain (required for updating definition)
|
|
18
|
-
1. Read `
|
|
18
|
+
1. Read `get_alert_definition_schema.md` to understand the return structure of `+get_alert_definition_schema`.
|
|
19
19
|
2. Call `ae-cli analysis +get_alert_definition_schema` to get the schema.
|
|
20
20
|
3. Build a new `definition` from the schema, then call `+update_alert`.
|
|
21
21
|
|
|
22
22
|
## Command
|
|
23
23
|
```bash
|
|
24
|
-
ae-cli analysis +update_alert --project_id
|
|
24
|
+
ae-cli analysis +update_alert --project_id <project_id> --alert_id 1 --definition '{}'
|
|
25
25
|
ae-cli analysis +update_alert --dry-run
|
|
26
26
|
```
|
|
27
27
|
|
package/skills/{te-audience/references/update-cluster.md → ae-analysis/references/update_cluster.md}
RENAMED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
# analysis_audience +update_cluster (Update Cluster)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Cluster Management**
|
|
6
6
|
|
|
7
7
|
## Use Cases
|
|
8
8
|
- Prerequisite helper: first call `+get_cluster_definition_schema` to get the structure, then supplement it with the project's real metadata (events and properties).
|
|
9
|
+
- When updating `definition`, metadata must be verified in the same session and `project_id`: first definition update in this session must call `analysis_meta +list_events` and `analysis_meta +list_properties`; later updates should reuse session-verified results first.
|
|
9
10
|
- Update a user cluster definition. Supports updating the display name, remark, type, or definition. Updating only the display name or remark does not trigger recomputation.
|
|
10
11
|
|
|
11
12
|
## Required Prerequisites (MUST only when updating definition)
|
|
12
13
|
- If this request includes `--definition`, you must first read and follow these reference docs:
|
|
13
|
-
- [`./
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
16
|
-
- Do not submit a new `definition` until the above docs have been read and the
|
|
14
|
+
- [`./get_cluster_definition_schema.md`](./get_cluster_definition_schema.md)
|
|
15
|
+
- [`./list_events.md`](./list_events.md)
|
|
16
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
17
|
+
- Do not submit a new `definition` until the above docs have been read and metadata has been verified: first definition update in this session for the same `project_id` must run metadata commands; if session-verified metadata already exists, reuse it first.
|
|
17
18
|
|
|
18
19
|
## Prerequisite Call Chain (run only when updating definition)
|
|
19
20
|
1. First determine `--type` (condition / sql).
|
|
20
|
-
2. Read `
|
|
21
|
-
3. Read `
|
|
22
|
-
4. Read `
|
|
21
|
+
2. Read `get_cluster_definition_schema.md`, then call `ae-cli analysis_audience +get_cluster_definition_schema --cluster_type <condition|sql>` to obtain the structure progressively. Start with base mode; request `examples` only if base is insufficient; request `full` only for complex, ambiguous, or repeatedly failing definition updates.
|
|
22
|
+
3. Read `list_events.md`. If this is the first definition update in the current session for this `project_id` (or metadata is not yet verified), call `ae-cli analysis_meta +list_events --project_id <project_id>`; otherwise, reuse the session-verified event metadata first.
|
|
23
|
+
4. Read `list_properties.md`. If this is the first definition update in the current session for this `project_id` (or metadata is not yet verified), call `ae-cli analysis_meta +list_properties --project_id <project_id>`; otherwise, reuse the session-verified property metadata first.
|
|
23
24
|
5. Build the new `definition` based on the schema + metadata, then run `+update_cluster`.
|
|
24
25
|
|
|
25
26
|
## Commands
|
|
26
27
|
```bash
|
|
27
|
-
ae-cli analysis_audience +update_cluster --project_id
|
|
28
|
-
ae-cli analysis_audience +update_cluster --project_id
|
|
28
|
+
ae-cli analysis_audience +update_cluster --project_id <project_id> --cluster_name demo --display_name "Demo v2"
|
|
29
|
+
ae-cli analysis_audience +update_cluster --project_id <project_id> --cluster_name demo --type condition --definition '{}' --zone_offset 8
|
|
29
30
|
ae-cli analysis_audience +update_cluster --dry-run
|
|
30
31
|
```
|
|
31
32
|
|
|
@@ -37,13 +38,14 @@ ae-cli analysis_audience +update_cluster --dry-run
|
|
|
37
38
|
| `--display_name` | No | New cluster display name. Length: 1-80 |
|
|
38
39
|
| `--remark` | No | New cluster remark |
|
|
39
40
|
| `--type` | No | New cluster type. Supported values: condition and sql. It is recommended to provide this when updating the definition. |
|
|
40
|
-
| `--definition` | No | New cluster definition JSON. If provided, MUST call `+get_cluster_definition_schema` first, then fill valid event/property names from `analysis_meta` metadata commands in the same
|
|
41
|
+
| `--definition` | No | New cluster definition JSON. If provided, MUST call `+get_cluster_definition_schema` first, then fill valid event/property names from metadata verified in the same `project_id` (first definition update queries `analysis_meta` metadata commands; later updates in the same session should reuse verified results first). |
|
|
41
42
|
| `--zone_offset` | No | Optional time zone offset for cluster computation. Valid range: -12 to 14 (supports decimals like 5.5). |
|
|
42
43
|
|
|
43
44
|
## Decision Rules
|
|
44
45
|
- If you are not updating `definition` (only updating `display_name`/`remark`), you can skip the schema and metadata prerequisite chain.
|
|
45
46
|
- When updating `definition`, it cannot be written from experience alone; it must satisfy both the schema structure and the project's real metadata.
|
|
46
|
-
-
|
|
47
|
+
- Use progressive schema loading: base first, examples only when needed, full only as a last resort. Do not request full schema for simple cluster updates when the intent is clear.
|
|
48
|
+
- Before calling `list_events` / `list_properties`, you must first read the corresponding reference docs. Query metadata on the first definition update in this session for the same `project_id`; after that, prefer reusing session-verified metadata.
|
|
47
49
|
- For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--cluster_name`) and add optional parameters after confirming the path works.
|
|
48
50
|
- Wrap JSON parameters in single quotes (e.g. `--definition '{}'`) to avoid shell escaping issues.
|
|
49
51
|
- When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
@@ -55,5 +57,5 @@ ae-cli analysis_audience +update_cluster --dry-run
|
|
|
55
57
|
- If the result after writing is not as expected, immediately re-read the corresponding list/get interfaces and compare before and after.
|
|
56
58
|
|
|
57
59
|
## Recommended Chain
|
|
58
|
-
- +get_cluster_definition_schema -> analysis_meta +list_events -> analysis_meta +list_properties -> +update_cluster
|
|
60
|
+
- +get_cluster_definition_schema -> (first definition update or refresh) analysis_meta +list_events -> analysis_meta +list_properties -> +update_cluster
|
|
59
61
|
- +list_clusters -> +get_clusters_by_name -> +update_cluster
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +update_dashboard (update dashboard)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Dashboard Management**
|
|
6
6
|
|
|
@@ -16,8 +16,8 @@ Domain: **Dashboard Management**
|
|
|
16
16
|
|
|
17
17
|
## Commands
|
|
18
18
|
```bash
|
|
19
|
-
ae-cli analysis +update_dashboard --project_id
|
|
20
|
-
ae-cli analysis +update_dashboard --project_id
|
|
19
|
+
ae-cli analysis +update_dashboard --project_id <project_id> --dashboard_id 1
|
|
20
|
+
ae-cli analysis +update_dashboard --project_id <project_id> --dashboard_id 1 --dashboard_name demo --report_ids '[1001]' --member_authorities '{"1001":"READ"}'
|
|
21
21
|
ae-cli analysis +update_dashboard --dry-run
|
|
22
22
|
```
|
|
23
23
|
|
package/skills/{te-meta/references/update-metric.md → ae-analysis/references/update_metric.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +update_metric (Update Metric)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Metadata Query**
|
|
6
6
|
|
|
@@ -11,22 +11,22 @@ Domain: **Metadata Query**
|
|
|
11
11
|
|
|
12
12
|
## MUST Prerequisites
|
|
13
13
|
- Before updating `--events` / `--params`, you must first read and follow these reference documents:
|
|
14
|
-
- [
|
|
15
|
-
- [`./
|
|
16
|
-
- [`./
|
|
14
|
+
- [`./get_analysis_query_schema.md`](./get_analysis_query_schema.md)
|
|
15
|
+
- [`./list_events.md`](./list_events.md)
|
|
16
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
17
17
|
- Do not submit new `events` / `params` until the document review and prerequisite command calls above are complete.
|
|
18
18
|
|
|
19
19
|
## Prerequisite Call Chain (Required for Updating events/params)
|
|
20
20
|
1. Determine `--model_type` first (`event` / `retention`).
|
|
21
|
-
2. Read `
|
|
22
|
-
3. Read `
|
|
23
|
-
4. Read `
|
|
21
|
+
2. Read `get_analysis_query_schema.md`, then call `ae-cli analysis +get_analysis_query_schema --model_type <event|retention>` to get the structure.
|
|
22
|
+
3. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>`.
|
|
23
|
+
4. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>`.
|
|
24
24
|
5. Build the new `events` / `params` from the schema + metadata, then execute `+update_metric`.
|
|
25
25
|
|
|
26
26
|
## Commands
|
|
27
27
|
```bash
|
|
28
|
-
ae-cli analysis_meta +update_metric --project_id
|
|
29
|
-
ae-cli analysis_meta +update_metric --project_id
|
|
28
|
+
ae-cli analysis_meta +update_metric --project_id <project_id> --metric_id 1 --name demo --display_name demo --model_type event --events '[]'
|
|
29
|
+
ae-cli analysis_meta +update_metric --project_id <project_id> --metric_id 1 --name demo --display_name demo --remark demo --model_type event --events '[]' --params '{}'
|
|
30
30
|
ae-cli analysis_meta +update_metric --dry-run
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +update_project_mark_time (Update Project Date Marker)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Project Configuration**
|
|
6
6
|
|
|
@@ -10,8 +10,8 @@ Domain: **Project Configuration**
|
|
|
10
10
|
|
|
11
11
|
## Command
|
|
12
12
|
```bash
|
|
13
|
-
ae-cli analysis_meta +update_project_mark_time --mark_time_id 1 --project_id
|
|
14
|
-
ae-cli analysis_meta +update_project_mark_time --mark_time_id 1 --project_id
|
|
13
|
+
ae-cli analysis_meta +update_project_mark_time --mark_time_id 1 --project_id <project_id> --marked_at '2026-04-09 10:00' --content demo
|
|
14
|
+
ae-cli analysis_meta +update_project_mark_time --mark_time_id 1 --project_id <project_id> --marked_at '2026-04-09 10:00' --zone_offset 8 --content demo --is_visible 1
|
|
15
15
|
ae-cli analysis_meta +update_project_mark_time --dry-run
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +update_public_access_link (Update Public Access Link)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Dashboard management**
|
|
6
6
|
|
|
@@ -10,8 +10,8 @@ Domain: **Dashboard management**
|
|
|
10
10
|
|
|
11
11
|
## Command
|
|
12
12
|
```bash
|
|
13
|
-
ae-cli analysis +update_public_access_link --project_id
|
|
14
|
-
ae-cli analysis +update_public_access_link --project_id
|
|
13
|
+
ae-cli analysis +update_public_access_link --project_id <project_id> --link_id 1 --access_controls '{}' --effective_at "2026-04-09 10:00:00" --expires_at "2026-04-10 10:00:00"
|
|
14
|
+
ae-cli analysis +update_public_access_link --project_id <project_id> --company_id 1 --link_id 1 --access_controls '{}' --remark demo --effective_at "2026-04-09 10:00:00" --expires_at "2026-04-10 10:00:00"
|
|
15
15
|
ae-cli analysis +update_public_access_link --dry-run
|
|
16
16
|
```
|
|
17
17
|
|
package/skills/{te-audience/references/update-tag.md → ae-analysis/references/update_tag.md}
RENAMED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
# analysis_audience +update_tag (Update Tag)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Tag Management**
|
|
6
6
|
|
|
7
7
|
## Use Cases
|
|
8
8
|
- Prerequisite helper: first call `+get_tag_definition_schema` to get the structure, then call this tool.
|
|
9
|
-
- When updating `definition`,
|
|
9
|
+
- When updating `definition`, metadata must be verified in the same session and `project_id`: first definition update in this session must call `analysis_meta +list_events` and `analysis_meta +list_properties`; later updates should reuse session-verified results first.
|
|
10
10
|
- Update a user tag definition. Supports updating the display name, remark, type, and tag definition. Updating only the display name or remark does not trigger recomputation.
|
|
11
11
|
|
|
12
12
|
## Required Prerequisites (MUST only when updating definition)
|
|
13
13
|
- If this request includes `--definition`, you must first read and follow these reference docs:
|
|
14
|
-
- [`./
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
17
|
-
- Do not submit a new `definition` until the above docs have been read and the
|
|
14
|
+
- [`./get_tag_definition_schema.md`](./get_tag_definition_schema.md)
|
|
15
|
+
- [`./list_events.md`](./list_events.md)
|
|
16
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
17
|
+
- Do not submit a new `definition` until the above docs have been read and metadata has been verified: first definition update in this session for the same `project_id` must run metadata commands; if session-verified metadata already exists, reuse it first.
|
|
18
18
|
|
|
19
19
|
## Prerequisite Call Chain (run only when updating definition)
|
|
20
20
|
1. First determine `--type` (condition / metric / first_last / sql).
|
|
21
|
-
2. Read `
|
|
22
|
-
3. Read `
|
|
23
|
-
4. Read `
|
|
21
|
+
2. Read `get_tag_definition_schema.md`, then call `ae-cli analysis_audience +get_tag_definition_schema --type <condition|metric|first_last|sql>` to obtain the structure progressively. Start with base mode; request `examples` only if base is insufficient; request `full` only for complex, ambiguous, or repeatedly failing definition updates.
|
|
22
|
+
3. Read `list_events.md`. If this is the first definition update in the current session for this `project_id` (or metadata is not yet verified), call `ae-cli analysis_meta +list_events --project_id <project_id>`; otherwise, reuse the session-verified event metadata first.
|
|
23
|
+
4. Read `list_properties.md`. If this is the first definition update in the current session for this `project_id` (or metadata is not yet verified), call `ae-cli analysis_meta +list_properties --project_id <project_id>`; otherwise, reuse the session-verified property metadata first.
|
|
24
24
|
5. Build the new `definition` based on the schema + metadata, then run `+update_tag`.
|
|
25
25
|
|
|
26
26
|
## Commands
|
|
27
27
|
```bash
|
|
28
|
-
ae-cli analysis_audience +update_tag --project_id
|
|
29
|
-
ae-cli analysis_audience +update_tag --project_id
|
|
28
|
+
ae-cli analysis_audience +update_tag --project_id <project_id> --tag_name demo --display_name "Demo v2"
|
|
29
|
+
ae-cli analysis_audience +update_tag --project_id <project_id> --tag_name demo --type condition --definition '{}' --zone_offset 8
|
|
30
30
|
ae-cli analysis_audience +update_tag --dry-run
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -38,13 +38,14 @@ ae-cli analysis_audience +update_tag --dry-run
|
|
|
38
38
|
| `--display_name` | No | New tag display name. Length: 1-80 |
|
|
39
39
|
| `--remark` | No | New tag remark |
|
|
40
40
|
| `--type` | No | New tag type. Supported values: condition, metric, first_last, sql |
|
|
41
|
-
| `--definition` | No | New tag definition JSON. If provided, MUST call `+get_tag_definition_schema` first, then fill valid event/property names from `analysis_meta` metadata commands in the same
|
|
41
|
+
| `--definition` | No | New tag definition JSON. If provided, MUST call `+get_tag_definition_schema` first, then fill valid event/property names from metadata verified in the same `project_id` (first definition update queries `analysis_meta` metadata commands; later updates in the same session should reuse verified results first). |
|
|
42
42
|
| `--zone_offset` | No | Optional time zone offset for tag computation. Valid range: -12 to 14 (supports decimals like 5.5). |
|
|
43
43
|
|
|
44
44
|
## Decision Rules
|
|
45
45
|
- If you are not updating `definition` (only updating `display_name`/`remark`), you can skip the schema and metadata prerequisite chain.
|
|
46
46
|
- When updating `definition`, it cannot be written from experience alone; it must satisfy both the schema structure and the project's real metadata.
|
|
47
|
-
-
|
|
47
|
+
- Use progressive schema loading: base first, examples only when needed, full only as a last resort. Do not request full schema for simple tag updates when the intent is clear.
|
|
48
|
+
- Before calling `list_events` / `list_properties`, you must first read the corresponding reference docs. Query metadata on the first definition update in this session for the same `project_id`; after that, prefer reusing session-verified metadata.
|
|
48
49
|
- For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--tag_name`) and add optional parameters after confirming the path works.
|
|
49
50
|
- Wrap JSON parameters in single quotes (e.g. `--definition '{}'`) to avoid shell escaping issues.
|
|
50
51
|
- When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
@@ -56,5 +57,5 @@ ae-cli analysis_audience +update_tag --dry-run
|
|
|
56
57
|
- If the result after writing is not as expected, immediately re-read the corresponding list/get interfaces and compare before and after.
|
|
57
58
|
|
|
58
59
|
## Recommended Chain
|
|
59
|
-
- +get_tag_definition_schema -> analysis_meta +list_events -> analysis_meta +list_properties -> +update_tag
|
|
60
|
+
- +get_tag_definition_schema -> (first definition update or refresh) analysis_meta +list_events -> analysis_meta +list_properties -> +update_tag
|
|
60
61
|
- +list_tags -> +get_tags_by_name -> +update_tag
|