github.com/thanos-io/thanos@v0.32.5/pkg/queryfrontend/response.proto (about) 1 // Copyright (c) The Thanos Authors. 2 // Licensed under the Apache License 2.0. 3 4 syntax = "proto3"; 5 6 package queryfrontend; 7 8 import "gogoproto/gogo.proto"; 9 import "store/labelpb/types.proto"; 10 11 option (gogoproto.sizer_all) = true; 12 option (gogoproto.marshaler_all) = true; 13 option (gogoproto.unmarshaler_all) = true; 14 option (gogoproto.goproto_getters_all) = false; 15 16 // Do not generate XXX fields to reduce memory footprint and opening a door 17 // for zero-copy casts to/from prometheus data types. 18 option (gogoproto.goproto_unkeyed_all) = false; 19 option (gogoproto.goproto_unrecognized_all) = false; 20 option (gogoproto.goproto_sizecache_all) = false; 21 22 23 message ThanosLabelsResponse { 24 string Status = 1 [(gogoproto.jsontag) = "status"]; 25 repeated string Data = 2 [(gogoproto.jsontag) = "data"]; 26 string ErrorType = 3 [(gogoproto.jsontag) = "errorType,omitempty"]; 27 string Error = 4 [(gogoproto.jsontag) = "error,omitempty"]; 28 repeated ResponseHeader Headers = 5 [(gogoproto.jsontag) = "-"]; 29 } 30 31 message ThanosSeriesResponse { 32 string Status = 1 [(gogoproto.jsontag) = "status"]; 33 repeated thanos.ZLabelSet Data = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "data"]; 34 string ErrorType = 3 [(gogoproto.jsontag) = "errorType,omitempty"]; 35 string Error = 4 [(gogoproto.jsontag) = "error,omitempty"]; 36 repeated ResponseHeader Headers = 5 [(gogoproto.jsontag) = "-"]; 37 } 38 39 message ResponseHeader { 40 string Name = 1 [(gogoproto.jsontag) = "-"]; 41 repeated string Values = 2 [(gogoproto.jsontag) = "-"]; 42 }