一键导入
aliyun-arms-query-test
// Smoke test for aliyun-arms-query skill. Validates script compilation and basic SDK client initialization.
// Smoke test for aliyun-arms-query skill. Validates script compilation and basic SDK client initialization.
| name | aliyun-arms-query-test |
| description | Smoke test for aliyun-arms-query skill. Validates script compilation and basic SDK client initialization. |
| version | 1.0.0 |
Category: test
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -U alibabacloud_arms20190808 alibabacloud_tea_openapi
ALIBABACLOUD_ACCESS_KEY_IDALIBABACLOUD_ACCESS_KEY_SECRETARMS_REGION_ID (default: cn-hangzhou)mkdir -p output/aliyun-arms-query-test
python3 tests/common/compile_skill_scripts.py \
--skill-path skills/observability/arms/aliyun-arms-query \
--output output/aliyun-arms-query-test/compile.json
Fallback if shared helper is unavailable:
mkdir -p output/aliyun-arms-query-test
for f in skills/observability/arms/aliyun-arms-query/scripts/*.py; do
python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-arms-query-test/validate.txt
Pass: exits 0 and evidence file exists. Expected scripts: search_traces.py, get_trace_detail.py, query_metrics.py, list_trace_apps.py, get_stack.py.
python -c "
import os
from alibabacloud_arms20190808.client import Client
from alibabacloud_arms20190808 import models
from alibabacloud_tea_openapi.models import Config
region = os.environ.get('ARMS_REGION_ID', 'cn-hangzhou')
config = Config(
access_key_id=os.environ['ALIBABACLOUD_ACCESS_KEY_ID'],
access_key_secret=os.environ['ALIBABACLOUD_ACCESS_KEY_SECRET'],
region_id=region,
)
config.endpoint = f'arms.{region}.aliyuncs.com'
client = Client(config)
resp = client.list_trace_apps(models.ListTraceAppsRequest(region_id=region))
apps = resp.body.trace_apps or []
print(f'Found {len(apps)} traced apps')
for app in apps[:5]:
print(f' {app.pid} {app.app_name}')
" 2>&1 | tee output/aliyun-arms-query-test/list_apps.txt
Pass: command exits 0 and lists apps (may be 0 if no apps instrumented).
Evidence saved under output/aliyun-arms-query-test/.
Use when querying distributed traces or application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service). Use for trace search by service/duration/tags, trace detail and method stack retrieval, application listing, and performance metrics queries.
Use when creating cloned voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus or cosyvoice-v3.5-flash, from reference audio and then reusing the returned voice_id in later TTS calls.
Use when designing custom voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus or cosyvoice-v3.5-flash, from a voice prompt plus preview text before using the returned voice_id in TTS.
Use when low-latency realtime speech recognition is needed with Alibaba Cloud Model Studio Qwen ASR Realtime models, including streaming microphone input, live captions, or duplex voice agents.
Use when transcribing non-realtime speech with Alibaba Cloud Model Studio Qwen ASR models (`qwen3-asr-flash`, `qwen-audio-asr`, `qwen3-asr-flash-filetrans`). Use when converting recorded audio files to text, generating transcripts with timestamps, or documenting DashScope/OpenAI-compatible ASR request and response fields.
Use when live speech translation is needed with Alibaba Cloud Model Studio Qwen LiveTranslate models, including bilingual meetings, realtime interpretation, and speech-to-speech or speech-to-text translation flows.