github.com/siglens/siglens@v0.0.0-20240328180423-f7ce9ae441ed/pkg/integrations/loki/push.proto (about) 1 syntax = "proto3"; 2 3 package loki; 4 5 import "pkg/loki/foreign/gogo.proto"; 6 import "pkg/loki/foreign/timestamp.proto"; 7 8 option go_package = "/log"; 9 10 service Pusher { 11 rpc Push(PushRequest) returns (PushResponse) {} 12 } 13 14 message PushRequest { 15 repeated StreamAdapter streams = 1 [ 16 (jsontag) = "streams", 17 (customtype) = "Stream" 18 ]; 19 } 20 21 message PushResponse {} 22 23 message StreamAdapter { 24 string labels = 1 [(jsontag) = "labels"]; 25 repeated EntryAdapter entries = 2 [ 26 (nullable) = false, 27 (jsontag) = "entries" 28 ]; 29 // hash contains the original hash of the stream. 30 uint64 hash = 3 [(jsontag) = "-"]; 31 } 32 33 message EntryAdapter { 34 Timestamp timestamp = 1 [ 35 (stdtime) = true, 36 (nullable) = false, 37 (jsontag) = "ts" 38 ]; 39 string line = 2 [(jsontag) = "line"]; 40 }