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 2021/10/14 14:52:00 UTC
[skywalking-goapi] 20/31: Sync removal of some fields in query
protocol
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-goapi.git
commit 424bda2fa50c42cf75f077633d949e37489fab87
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Fri Aug 20 15:00:09 2021 +0800
Sync removal of some fields in query protocol
---
dependencies.sh | 2 +-
query/schema.go | 20 +++++++++++++++++---
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/dependencies.sh b/dependencies.sh
index 82e308e..2c24fb3 100644
--- a/dependencies.sh
+++ b/dependencies.sh
@@ -18,4 +18,4 @@
# under the License.
export COLLECT_PROTOCOL_SHA=e626ee04850703c220f64b642d2893fa65572943
-export QUERY_PROTOCOL_SHA=b827d0d7d95396b9ae87a10eef80a67af843cf3f
+export QUERY_PROTOCOL_SHA=47202fc1eaa1864c587a78f423a0685ffbe294ad
diff --git a/query/schema.go b/query/schema.go
index e6a6f30..cf8a4b9 100644
--- a/query/schema.go
+++ b/query/schema.go
@@ -69,7 +69,6 @@ type BrowserErrorLogQueryCondition struct {
ServiceID *string `json:"serviceId"`
ServiceVersionID *string `json:"serviceVersionId"`
PagePathID *string `json:"pagePathId"`
- PagePath *string `json:"pagePath"`
Category *ErrorCategory `json:"category"`
QueryDuration *Duration `json:"queryDuration"`
Paging *Pagination `json:"paging"`
@@ -245,7 +244,6 @@ type LogQueryCondition struct {
ServiceID *string `json:"serviceId"`
ServiceInstanceID *string `json:"serviceInstanceId"`
EndpointID *string `json:"endpointId"`
- EndpointName *string `json:"endpointName"`
RelatedTrace *TraceScopeCondition `json:"relatedTrace"`
QueryDuration *Duration `json:"queryDuration"`
Paging *Pagination `json:"paging"`
@@ -260,6 +258,23 @@ type LogTag struct {
Value *string `json:"value"`
}
+type LogTestMetrics struct {
+ Name string `json:"name"`
+ Tags []*KeyValue `json:"tags"`
+ Value int64 `json:"value"`
+ Timestamp int64 `json:"timestamp"`
+}
+
+type LogTestRequest struct {
+ Log string `json:"log"`
+ Dsl string `json:"dsl"`
+}
+
+type LogTestResponse struct {
+ Log *Log `json:"log"`
+ Metrics []*LogTestMetrics `json:"metrics"`
+}
+
type Logs struct {
Logs []*Log `json:"logs"`
Total int `json:"total"`
@@ -521,7 +536,6 @@ type TraceQueryCondition struct {
ServiceInstanceID *string `json:"serviceInstanceId"`
TraceID *string `json:"traceId"`
EndpointID *string `json:"endpointId"`
- EndpointName *string `json:"endpointName"`
QueryDuration *Duration `json:"queryDuration"`
MinTraceDuration *int `json:"minTraceDuration"`
MaxTraceDuration *int `json:"maxTraceDuration"`