algorithmic-art
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric,…
火山引擎云监控技能,用于查询云资源的监控时序数据。
$ npx -y skills add bytedance/agentkit-samples --skill byted-volcengine-cloudmonitor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/byted-volcengine-cloudmonitorContext preview
The summary Claude sees to decide when to auto-load this skill.
火山引擎云监控技能,用于查询云资源的监控时序数据。
name: byted-volcengine-cloudmonitor description: 火山引擎云监控技能,用于查询云资源的监控时序数据。
这个 Skill 用于查询火山引擎云监控的监控时序数据。
当用户要求:
1. **根据客户提供的实例信息确定产品**
2. **通过产品确定 namespace**
3. **通过监控指标确定 metric\_name/sub\_namespace**
4. **结合 dimension 查询监控时序数据**
需要安装火山引擎 Python SDK:
pip install --upgrade "volcengine-python-sdk>=5.0.21"
需要配置火山引擎的 Access Key 和 Secret Key。推荐使用以下三种方式之一:
export VOLCENGINE_AK="your-ak" export VOLCENGINE_SK="your-sk"
在 `~/.openclaw/workspace/.env` 中配置:
VOLCENGINE_AK=your-ak VOLCENGINE_SK=your-sk
| 参数 | 简写 | 说明 | 必填 | 默认值 | | ------------------- | ---- | ----------- | -- | -------------------------- | | `--namespace` | `-n` | 产品命名空间 | 是 | - | | `--metric-name` | `-m` | 监控指标名称 | 是 | - | | `--sub-namespace` | `-s` | 子命名空间 | 是 | - | | `--dimension-name` | `-d` | 维度名称 | 是 | - | | `--dimension-value` | `-v` | 维度值 | 是 | - | | `--start-time` | - | 开始时间戳 | 否 | `end_time - duration * 60` | | `--end-time` | - | 结束时间戳 | 否 | 当前时间 | | `--duration` | - | 查询时长(分钟) | 否 | `5` | | `--ak` | - | Access Key | 否 | 从配置读取 | | `--sk` | - | Secret Key | 否 | 从配置读取 | | `--region` | - | 区域 | 否 | `cn-beijing` | | `--json` | - | 以 JSON 格式输出 | 否 | `False` |
可通过以下接口查询支持的监控产品:
curl 'https://cloudmonitor-api.console.volcengine.com/external/api/documents?Action=ListMetricProducts&Version=2018-01-01' \
-H 'Content-Type: application/json' \
--data-raw '{}'在确定 `namespace` 后,可通过以下接口查询该产品的指标定义:
curl 'https://cloudmonitor-api.console.volcengine.com/external/api/documents?Action=ListMetricDocs&Version=2018-01-01' \
-H 'Content-Type: application/json' \
--data-raw '{"Namespace":"VCM_ECS"}'python get_metric_data.py \ -n VCM_ECS \ -m DiskUsageUtilization \ -s Instance \ -d ResourceID \ -v i-yejc26eo744c5qwjqtgb \ --start-time 1632903801 \ --end-time 1632904801
python get_metric_data.py \ -n VCM_ECS \ -m DiskUsageUtilization \ -s Instance \ -d ResourceID \ -v i-yejc26eo744c5qwjqtgb \ --duration 30
查询监控时序数据
**参数:**
**返回:** 监控时序数据
A: 可以使用 Python 获取当前 Unix 时间戳:
import time current_timestamp = int(time.time()) print(current_timestamp)
A: 先调用 `ListMetricProducts` 获取所有产品,再调用 `ListMetricDocs` 获取指定产品的具体指标。
A: 使用 Unix 时间戳,单位为秒。例如 `1632903801` 表示一个秒级时间点。
A:
欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric,…
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution…
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此…
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill…
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus…
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。