You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2025/04/25 02:19:12 UTC
(skywalking-query-protocol) branch master updated: Add cold stage data query and TTL info query. (#144)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
The following commit(s) were added to refs/heads/master by this push:
new 23baed2 Add cold stage data query and TTL info query. (#144)
23baed2 is described below
commit 23baed2234e4bbc18cd7ec7d47bfe7d4bc8ef363
Author: Wan Kai <wa...@foxmail.com>
AuthorDate: Fri Apr 25 10:19:08 2025 +0800
Add cold stage data query and TTL info query. (#144)
---
.asf.yaml | 2 +-
common.graphqls | 2 ++
metadata-v2.graphqls | 22 ++++++++++++++++++++++
trace.graphqls | 2 ++
4 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/.asf.yaml b/.asf.yaml
index d398588..dac3eeb 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -28,4 +28,4 @@ github:
merge: false
rebase: false
protected_branches:
- master:
+ master: {}
diff --git a/common.graphqls b/common.graphqls
index 5d5ec16..3037136 100644
--- a/common.graphqls
+++ b/common.graphqls
@@ -64,6 +64,8 @@ input Duration {
start: String!
end: String!
step: Step!
+ # Only for BanyanDB, the flag to query from cold stage, default is false.
+ coldStage: Boolean
}
enum Step {
diff --git a/metadata-v2.graphqls b/metadata-v2.graphqls
index d22e734..e76d453 100644
--- a/metadata-v2.graphqls
+++ b/metadata-v2.graphqls
@@ -108,6 +108,24 @@ type TimeInfo {
currentTimestamp: Long
}
+type RecordsTTL {
+ value: Int!
+ superDataset: Int!
+ # -1 means no cold stage.
+ coldValue: Int!
+ coldSuperDataset: Int!
+}
+
+type MetricsTTL {
+ minute: Int!
+ hour: Int!
+ day: Int!
+ # -1 means no cold stage.
+ coldMinute: Int!
+ coldHour: Int!
+ coldDay: Int!
+}
+
extend type Query {
# Read all available layers
# UI could use this list to determine available dashboards/panels
@@ -145,4 +163,8 @@ extend type Query {
estimateProcessScale(serviceId: ID!, labels: [String!]!): Long!
getTimeInfo: TimeInfo
+ # Get the TTL info of records
+ getRecordsTTL: RecordsTTL
+ # Get the TTL info of metrics
+ getMetricsTTL: MetricsTTL
}
diff --git a/trace.graphqls b/trace.graphqls
index 314f266..b770345 100644
--- a/trace.graphqls
+++ b/trace.graphqls
@@ -177,6 +177,8 @@ extend type Query {
queryBasicTraces(condition: TraceQueryCondition, debug: Boolean): TraceBrief
# Read the specific trace ID with given trace ID
queryTrace(traceId: ID!, debug: Boolean): Trace
+ # Only for BanyanDB, can be used to query the trace in the cold stage.
+ queryTraceFromColdStage(traceId: ID!, duration: Duration!, debug: Boolean): Trace
# Read the list of searchable keys
queryTraceTagAutocompleteKeys(duration: Duration!):[String!]
# Search the available value options of the given key.