From d4fdb94133b378b888db22f14467d557df5b3df5 Mon Sep 17 00:00:00 2001 From: Colin Chartier Date: Thu, 5 Sep 2024 14:28:15 -0400 Subject: [PATCH] feat(eap): add a snuba tags list endpoint --- .../snuba/v1alpha/endpoint_tags_list.proto | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 proto/sentry_protos/snuba/v1alpha/endpoint_tags_list.proto diff --git a/proto/sentry_protos/snuba/v1alpha/endpoint_tags_list.proto b/proto/sentry_protos/snuba/v1alpha/endpoint_tags_list.proto new file mode 100644 index 0000000..42cb80c --- /dev/null +++ b/proto/sentry_protos/snuba/v1alpha/endpoint_tags_list.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package sentry_protos.snuba.v1alpha; + +import "sentry_protos/snuba/v1alpha/request_common.proto"; + +//A request for "which tags are available for these projects between these dates" - used for things like autocompletion +message TagsListRequest { + RequestMeta meta = 1; + uint32 limit = 2; + uint32 offset = 3; +} + +message TagsListResponse { + enum Type { + TYPE_UNSPECIFIED = 0; + TYPE_STRING = 1; + TYPE_NUMBER = 2; + } + + message Tag { + string name = 1; + Type type = 2; + } + repeated Tag tags = 1; +}