Files
kubevela/pkg/stdlib/pkgs/query.cue
Somefive 746eb0dbe4 Feat: support logs for velaql (#3011)
* Feat: support logs for velaql

Signed-off-by: Yin Da <yd219913@alibaba-inc.com>

* Feat: extend parameter

Signed-off-by: Yin Da <yd219913@alibaba-inc.com>
2021-12-28 20:49:56 +08:00

64 lines
991 B
CUE

#ListResourcesInApp: {
#do: "listResourcesInApp"
#provider: "query"
app: {
name: string
namespace: string
filter?: {
cluster?: string
clusterNamespace?: string
components?: [...string]
}
}
list?: [...{
cluster: string
component: string
revision: string
object: {...}
}]
...
}
#CollectPods: {
#do: "collectPods"
#provider: "query"
value: {...}
cluster: string
...
}
#SearchEvents: {
#do: "searchEvents"
#provider: "query"
value: {...}
cluster: string
...
}
#CollectLogsInPod: {
#do: "collectLogsInPod"
#provider: "query"
cluster: string
namespace: string
pod: string
options: {
container: string
previous: *false | bool
sinceSeconds: *null | int
sinceTime: *null | string
timestamps: *false | bool
tailLines: *null | int
limitBytes: *null | int
}
outputs?: {
logs: string
err?: string
info: {
fromDate: string
toDate: string
}
...
}
...
}