addedInput schema / $defs / ResponseFormat
Added value: +{
+ "enum": [
+ "markdown",
+ "json"
+ ],
+ "title": "ResponseFormat",
+ "type": "string"
+}
removedInput schema / $defs / VelaQLInput
Removed value: -{
- "additionalProperties": false,
- "description": "VelaQL 查询的输入参数",
- "properties": {
- "velaql": {
- "description": "VelaQL 查询语句,如 component-pod-view{appNs=default,appName=demo}.status 或 collect-logs{cluster=local,namespace=default,pod=xxx}.logs",
- "minLength": 1,
- "title": "Velaql",
- "type": "string"
- }
- },
- "required": [
- "velaql"
- ],
- "title": "VelaQLInput",
- "type": "object"
-}
addedInput schema / $defs / VelaQLView
Added value: +{
+ "description": "All VelaQL views the vela_velaql_query tool accepts.\n\nAdding a new view = add a member here + a ParamSchema below + an entry\nin VIEWS.",
+ "enum": [
+ "service-endpoints-view",
+ "application-resource-tree-view",
+ "service-applied-resources-view",
+ "component-pod-view",
+ "component-service-view",
+ "service-view",
+ "pod-view",
+ "application-resource-detail-view",
+ "collect-logs"
+ ],
+ "title": "VelaQLView",
+ "type": "string"
+}
addedInput schema / properties / cluster
Added value: +{
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "多集群覆盖; 应用层 view 忽略此参数 (应用通过 target 决定集群), pod-view / collect-logs 此参数为必填 (在 params 之外, 此处供未来 cluster 路由优化)",
+ "title": "Cluster"
+}
removedInput schema / properties / params / $ref
Removed value: -"#/$defs/VelaQLInput"
addedInput schema / properties / params / additionalProperties
Added value: +true
addedInput schema / properties / params / description
Added value: +"视图参数 (JSON 对象)。键名见 view 描述: service-endpoints-view / application-resource-tree-view / service-applied-resources-view / component-pod-view -> {appNs, appName}; component-service-view -> {appNs, appName, [name, cluster, clusterNs]}; service-view -> {appNs, appName, [cluster, clusterNs]}; pod-view -> {cluster, namespace, name}; application-resource-detail-view -> {cluster, namespace, name, kind, apiVersion}; collect-logs -> {cluster, namespace, pod, container, [previous, timestamps, tailLines]}"
addedInput schema / properties / params / title
Added value: +"Params"
addedInput schema / properties / params / type
Added value: +"object"
addedInput schema / properties / response_format
Added value: +{
+ "$ref": "#/$defs/ResponseFormat",
+ "default": "markdown"
+}
addedInput schema / properties / view
Added value: +{
+ "$ref": "#/$defs/VelaQLView",
+ "description": "视图。必须是受支持 view 之一。"
+}
changedInput schema / required
Previous value: -[
- "params"
-]New value: +[
+ "view",
+ "params"
+]