log_service.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. // Code generated by protoc-gen-go.
  2. // source: google.golang.org/appengine/internal/log/log_service.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package log is a generated protocol buffer package.
  6. It is generated from these files:
  7. google.golang.org/appengine/internal/log/log_service.proto
  8. It has these top-level messages:
  9. LogServiceError
  10. UserAppLogLine
  11. UserAppLogGroup
  12. FlushRequest
  13. SetStatusRequest
  14. LogOffset
  15. LogLine
  16. RequestLog
  17. LogModuleVersion
  18. LogReadRequest
  19. LogReadResponse
  20. LogUsageRecord
  21. LogUsageRequest
  22. LogUsageResponse
  23. */
  24. package log
  25. import proto "github.com/golang/protobuf/proto"
  26. import fmt "fmt"
  27. import math "math"
  28. // Reference imports to suppress errors if they are not otherwise used.
  29. var _ = proto.Marshal
  30. var _ = fmt.Errorf
  31. var _ = math.Inf
  32. type LogServiceError_ErrorCode int32
  33. const (
  34. LogServiceError_OK LogServiceError_ErrorCode = 0
  35. LogServiceError_INVALID_REQUEST LogServiceError_ErrorCode = 1
  36. LogServiceError_STORAGE_ERROR LogServiceError_ErrorCode = 2
  37. )
  38. var LogServiceError_ErrorCode_name = map[int32]string{
  39. 0: "OK",
  40. 1: "INVALID_REQUEST",
  41. 2: "STORAGE_ERROR",
  42. }
  43. var LogServiceError_ErrorCode_value = map[string]int32{
  44. "OK": 0,
  45. "INVALID_REQUEST": 1,
  46. "STORAGE_ERROR": 2,
  47. }
  48. func (x LogServiceError_ErrorCode) Enum() *LogServiceError_ErrorCode {
  49. p := new(LogServiceError_ErrorCode)
  50. *p = x
  51. return p
  52. }
  53. func (x LogServiceError_ErrorCode) String() string {
  54. return proto.EnumName(LogServiceError_ErrorCode_name, int32(x))
  55. }
  56. func (x *LogServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
  57. value, err := proto.UnmarshalJSONEnum(LogServiceError_ErrorCode_value, data, "LogServiceError_ErrorCode")
  58. if err != nil {
  59. return err
  60. }
  61. *x = LogServiceError_ErrorCode(value)
  62. return nil
  63. }
  64. type LogServiceError struct {
  65. XXX_unrecognized []byte `json:"-"`
  66. }
  67. func (m *LogServiceError) Reset() { *m = LogServiceError{} }
  68. func (m *LogServiceError) String() string { return proto.CompactTextString(m) }
  69. func (*LogServiceError) ProtoMessage() {}
  70. type UserAppLogLine struct {
  71. TimestampUsec *int64 `protobuf:"varint,1,req,name=timestamp_usec" json:"timestamp_usec,omitempty"`
  72. Level *int64 `protobuf:"varint,2,req,name=level" json:"level,omitempty"`
  73. Message *string `protobuf:"bytes,3,req,name=message" json:"message,omitempty"`
  74. XXX_unrecognized []byte `json:"-"`
  75. }
  76. func (m *UserAppLogLine) Reset() { *m = UserAppLogLine{} }
  77. func (m *UserAppLogLine) String() string { return proto.CompactTextString(m) }
  78. func (*UserAppLogLine) ProtoMessage() {}
  79. func (m *UserAppLogLine) GetTimestampUsec() int64 {
  80. if m != nil && m.TimestampUsec != nil {
  81. return *m.TimestampUsec
  82. }
  83. return 0
  84. }
  85. func (m *UserAppLogLine) GetLevel() int64 {
  86. if m != nil && m.Level != nil {
  87. return *m.Level
  88. }
  89. return 0
  90. }
  91. func (m *UserAppLogLine) GetMessage() string {
  92. if m != nil && m.Message != nil {
  93. return *m.Message
  94. }
  95. return ""
  96. }
  97. type UserAppLogGroup struct {
  98. LogLine []*UserAppLogLine `protobuf:"bytes,2,rep,name=log_line" json:"log_line,omitempty"`
  99. XXX_unrecognized []byte `json:"-"`
  100. }
  101. func (m *UserAppLogGroup) Reset() { *m = UserAppLogGroup{} }
  102. func (m *UserAppLogGroup) String() string { return proto.CompactTextString(m) }
  103. func (*UserAppLogGroup) ProtoMessage() {}
  104. func (m *UserAppLogGroup) GetLogLine() []*UserAppLogLine {
  105. if m != nil {
  106. return m.LogLine
  107. }
  108. return nil
  109. }
  110. type FlushRequest struct {
  111. Logs []byte `protobuf:"bytes,1,opt,name=logs" json:"logs,omitempty"`
  112. XXX_unrecognized []byte `json:"-"`
  113. }
  114. func (m *FlushRequest) Reset() { *m = FlushRequest{} }
  115. func (m *FlushRequest) String() string { return proto.CompactTextString(m) }
  116. func (*FlushRequest) ProtoMessage() {}
  117. func (m *FlushRequest) GetLogs() []byte {
  118. if m != nil {
  119. return m.Logs
  120. }
  121. return nil
  122. }
  123. type SetStatusRequest struct {
  124. Status *string `protobuf:"bytes,1,req,name=status" json:"status,omitempty"`
  125. XXX_unrecognized []byte `json:"-"`
  126. }
  127. func (m *SetStatusRequest) Reset() { *m = SetStatusRequest{} }
  128. func (m *SetStatusRequest) String() string { return proto.CompactTextString(m) }
  129. func (*SetStatusRequest) ProtoMessage() {}
  130. func (m *SetStatusRequest) GetStatus() string {
  131. if m != nil && m.Status != nil {
  132. return *m.Status
  133. }
  134. return ""
  135. }
  136. type LogOffset struct {
  137. RequestId []byte `protobuf:"bytes,1,opt,name=request_id" json:"request_id,omitempty"`
  138. XXX_unrecognized []byte `json:"-"`
  139. }
  140. func (m *LogOffset) Reset() { *m = LogOffset{} }
  141. func (m *LogOffset) String() string { return proto.CompactTextString(m) }
  142. func (*LogOffset) ProtoMessage() {}
  143. func (m *LogOffset) GetRequestId() []byte {
  144. if m != nil {
  145. return m.RequestId
  146. }
  147. return nil
  148. }
  149. type LogLine struct {
  150. Time *int64 `protobuf:"varint,1,req,name=time" json:"time,omitempty"`
  151. Level *int32 `protobuf:"varint,2,req,name=level" json:"level,omitempty"`
  152. LogMessage *string `protobuf:"bytes,3,req,name=log_message" json:"log_message,omitempty"`
  153. XXX_unrecognized []byte `json:"-"`
  154. }
  155. func (m *LogLine) Reset() { *m = LogLine{} }
  156. func (m *LogLine) String() string { return proto.CompactTextString(m) }
  157. func (*LogLine) ProtoMessage() {}
  158. func (m *LogLine) GetTime() int64 {
  159. if m != nil && m.Time != nil {
  160. return *m.Time
  161. }
  162. return 0
  163. }
  164. func (m *LogLine) GetLevel() int32 {
  165. if m != nil && m.Level != nil {
  166. return *m.Level
  167. }
  168. return 0
  169. }
  170. func (m *LogLine) GetLogMessage() string {
  171. if m != nil && m.LogMessage != nil {
  172. return *m.LogMessage
  173. }
  174. return ""
  175. }
  176. type RequestLog struct {
  177. AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"`
  178. ModuleId *string `protobuf:"bytes,37,opt,name=module_id,def=default" json:"module_id,omitempty"`
  179. VersionId *string `protobuf:"bytes,2,req,name=version_id" json:"version_id,omitempty"`
  180. RequestId []byte `protobuf:"bytes,3,req,name=request_id" json:"request_id,omitempty"`
  181. Offset *LogOffset `protobuf:"bytes,35,opt,name=offset" json:"offset,omitempty"`
  182. Ip *string `protobuf:"bytes,4,req,name=ip" json:"ip,omitempty"`
  183. Nickname *string `protobuf:"bytes,5,opt,name=nickname" json:"nickname,omitempty"`
  184. StartTime *int64 `protobuf:"varint,6,req,name=start_time" json:"start_time,omitempty"`
  185. EndTime *int64 `protobuf:"varint,7,req,name=end_time" json:"end_time,omitempty"`
  186. Latency *int64 `protobuf:"varint,8,req,name=latency" json:"latency,omitempty"`
  187. Mcycles *int64 `protobuf:"varint,9,req,name=mcycles" json:"mcycles,omitempty"`
  188. Method *string `protobuf:"bytes,10,req,name=method" json:"method,omitempty"`
  189. Resource *string `protobuf:"bytes,11,req,name=resource" json:"resource,omitempty"`
  190. HttpVersion *string `protobuf:"bytes,12,req,name=http_version" json:"http_version,omitempty"`
  191. Status *int32 `protobuf:"varint,13,req,name=status" json:"status,omitempty"`
  192. ResponseSize *int64 `protobuf:"varint,14,req,name=response_size" json:"response_size,omitempty"`
  193. Referrer *string `protobuf:"bytes,15,opt,name=referrer" json:"referrer,omitempty"`
  194. UserAgent *string `protobuf:"bytes,16,opt,name=user_agent" json:"user_agent,omitempty"`
  195. UrlMapEntry *string `protobuf:"bytes,17,req,name=url_map_entry" json:"url_map_entry,omitempty"`
  196. Combined *string `protobuf:"bytes,18,req,name=combined" json:"combined,omitempty"`
  197. ApiMcycles *int64 `protobuf:"varint,19,opt,name=api_mcycles" json:"api_mcycles,omitempty"`
  198. Host *string `protobuf:"bytes,20,opt,name=host" json:"host,omitempty"`
  199. Cost *float64 `protobuf:"fixed64,21,opt,name=cost" json:"cost,omitempty"`
  200. TaskQueueName *string `protobuf:"bytes,22,opt,name=task_queue_name" json:"task_queue_name,omitempty"`
  201. TaskName *string `protobuf:"bytes,23,opt,name=task_name" json:"task_name,omitempty"`
  202. WasLoadingRequest *bool `protobuf:"varint,24,opt,name=was_loading_request" json:"was_loading_request,omitempty"`
  203. PendingTime *int64 `protobuf:"varint,25,opt,name=pending_time" json:"pending_time,omitempty"`
  204. ReplicaIndex *int32 `protobuf:"varint,26,opt,name=replica_index,def=-1" json:"replica_index,omitempty"`
  205. Finished *bool `protobuf:"varint,27,opt,name=finished,def=1" json:"finished,omitempty"`
  206. CloneKey []byte `protobuf:"bytes,28,opt,name=clone_key" json:"clone_key,omitempty"`
  207. Line []*LogLine `protobuf:"bytes,29,rep,name=line" json:"line,omitempty"`
  208. LinesIncomplete *bool `protobuf:"varint,36,opt,name=lines_incomplete" json:"lines_incomplete,omitempty"`
  209. AppEngineRelease []byte `protobuf:"bytes,38,opt,name=app_engine_release" json:"app_engine_release,omitempty"`
  210. ExitReason *int32 `protobuf:"varint,30,opt,name=exit_reason" json:"exit_reason,omitempty"`
  211. WasThrottledForTime *bool `protobuf:"varint,31,opt,name=was_throttled_for_time" json:"was_throttled_for_time,omitempty"`
  212. WasThrottledForRequests *bool `protobuf:"varint,32,opt,name=was_throttled_for_requests" json:"was_throttled_for_requests,omitempty"`
  213. ThrottledTime *int64 `protobuf:"varint,33,opt,name=throttled_time" json:"throttled_time,omitempty"`
  214. ServerName []byte `protobuf:"bytes,34,opt,name=server_name" json:"server_name,omitempty"`
  215. XXX_unrecognized []byte `json:"-"`
  216. }
  217. func (m *RequestLog) Reset() { *m = RequestLog{} }
  218. func (m *RequestLog) String() string { return proto.CompactTextString(m) }
  219. func (*RequestLog) ProtoMessage() {}
  220. const Default_RequestLog_ModuleId string = "default"
  221. const Default_RequestLog_ReplicaIndex int32 = -1
  222. const Default_RequestLog_Finished bool = true
  223. func (m *RequestLog) GetAppId() string {
  224. if m != nil && m.AppId != nil {
  225. return *m.AppId
  226. }
  227. return ""
  228. }
  229. func (m *RequestLog) GetModuleId() string {
  230. if m != nil && m.ModuleId != nil {
  231. return *m.ModuleId
  232. }
  233. return Default_RequestLog_ModuleId
  234. }
  235. func (m *RequestLog) GetVersionId() string {
  236. if m != nil && m.VersionId != nil {
  237. return *m.VersionId
  238. }
  239. return ""
  240. }
  241. func (m *RequestLog) GetRequestId() []byte {
  242. if m != nil {
  243. return m.RequestId
  244. }
  245. return nil
  246. }
  247. func (m *RequestLog) GetOffset() *LogOffset {
  248. if m != nil {
  249. return m.Offset
  250. }
  251. return nil
  252. }
  253. func (m *RequestLog) GetIp() string {
  254. if m != nil && m.Ip != nil {
  255. return *m.Ip
  256. }
  257. return ""
  258. }
  259. func (m *RequestLog) GetNickname() string {
  260. if m != nil && m.Nickname != nil {
  261. return *m.Nickname
  262. }
  263. return ""
  264. }
  265. func (m *RequestLog) GetStartTime() int64 {
  266. if m != nil && m.StartTime != nil {
  267. return *m.StartTime
  268. }
  269. return 0
  270. }
  271. func (m *RequestLog) GetEndTime() int64 {
  272. if m != nil && m.EndTime != nil {
  273. return *m.EndTime
  274. }
  275. return 0
  276. }
  277. func (m *RequestLog) GetLatency() int64 {
  278. if m != nil && m.Latency != nil {
  279. return *m.Latency
  280. }
  281. return 0
  282. }
  283. func (m *RequestLog) GetMcycles() int64 {
  284. if m != nil && m.Mcycles != nil {
  285. return *m.Mcycles
  286. }
  287. return 0
  288. }
  289. func (m *RequestLog) GetMethod() string {
  290. if m != nil && m.Method != nil {
  291. return *m.Method
  292. }
  293. return ""
  294. }
  295. func (m *RequestLog) GetResource() string {
  296. if m != nil && m.Resource != nil {
  297. return *m.Resource
  298. }
  299. return ""
  300. }
  301. func (m *RequestLog) GetHttpVersion() string {
  302. if m != nil && m.HttpVersion != nil {
  303. return *m.HttpVersion
  304. }
  305. return ""
  306. }
  307. func (m *RequestLog) GetStatus() int32 {
  308. if m != nil && m.Status != nil {
  309. return *m.Status
  310. }
  311. return 0
  312. }
  313. func (m *RequestLog) GetResponseSize() int64 {
  314. if m != nil && m.ResponseSize != nil {
  315. return *m.ResponseSize
  316. }
  317. return 0
  318. }
  319. func (m *RequestLog) GetReferrer() string {
  320. if m != nil && m.Referrer != nil {
  321. return *m.Referrer
  322. }
  323. return ""
  324. }
  325. func (m *RequestLog) GetUserAgent() string {
  326. if m != nil && m.UserAgent != nil {
  327. return *m.UserAgent
  328. }
  329. return ""
  330. }
  331. func (m *RequestLog) GetUrlMapEntry() string {
  332. if m != nil && m.UrlMapEntry != nil {
  333. return *m.UrlMapEntry
  334. }
  335. return ""
  336. }
  337. func (m *RequestLog) GetCombined() string {
  338. if m != nil && m.Combined != nil {
  339. return *m.Combined
  340. }
  341. return ""
  342. }
  343. func (m *RequestLog) GetApiMcycles() int64 {
  344. if m != nil && m.ApiMcycles != nil {
  345. return *m.ApiMcycles
  346. }
  347. return 0
  348. }
  349. func (m *RequestLog) GetHost() string {
  350. if m != nil && m.Host != nil {
  351. return *m.Host
  352. }
  353. return ""
  354. }
  355. func (m *RequestLog) GetCost() float64 {
  356. if m != nil && m.Cost != nil {
  357. return *m.Cost
  358. }
  359. return 0
  360. }
  361. func (m *RequestLog) GetTaskQueueName() string {
  362. if m != nil && m.TaskQueueName != nil {
  363. return *m.TaskQueueName
  364. }
  365. return ""
  366. }
  367. func (m *RequestLog) GetTaskName() string {
  368. if m != nil && m.TaskName != nil {
  369. return *m.TaskName
  370. }
  371. return ""
  372. }
  373. func (m *RequestLog) GetWasLoadingRequest() bool {
  374. if m != nil && m.WasLoadingRequest != nil {
  375. return *m.WasLoadingRequest
  376. }
  377. return false
  378. }
  379. func (m *RequestLog) GetPendingTime() int64 {
  380. if m != nil && m.PendingTime != nil {
  381. return *m.PendingTime
  382. }
  383. return 0
  384. }
  385. func (m *RequestLog) GetReplicaIndex() int32 {
  386. if m != nil && m.ReplicaIndex != nil {
  387. return *m.ReplicaIndex
  388. }
  389. return Default_RequestLog_ReplicaIndex
  390. }
  391. func (m *RequestLog) GetFinished() bool {
  392. if m != nil && m.Finished != nil {
  393. return *m.Finished
  394. }
  395. return Default_RequestLog_Finished
  396. }
  397. func (m *RequestLog) GetCloneKey() []byte {
  398. if m != nil {
  399. return m.CloneKey
  400. }
  401. return nil
  402. }
  403. func (m *RequestLog) GetLine() []*LogLine {
  404. if m != nil {
  405. return m.Line
  406. }
  407. return nil
  408. }
  409. func (m *RequestLog) GetLinesIncomplete() bool {
  410. if m != nil && m.LinesIncomplete != nil {
  411. return *m.LinesIncomplete
  412. }
  413. return false
  414. }
  415. func (m *RequestLog) GetAppEngineRelease() []byte {
  416. if m != nil {
  417. return m.AppEngineRelease
  418. }
  419. return nil
  420. }
  421. func (m *RequestLog) GetExitReason() int32 {
  422. if m != nil && m.ExitReason != nil {
  423. return *m.ExitReason
  424. }
  425. return 0
  426. }
  427. func (m *RequestLog) GetWasThrottledForTime() bool {
  428. if m != nil && m.WasThrottledForTime != nil {
  429. return *m.WasThrottledForTime
  430. }
  431. return false
  432. }
  433. func (m *RequestLog) GetWasThrottledForRequests() bool {
  434. if m != nil && m.WasThrottledForRequests != nil {
  435. return *m.WasThrottledForRequests
  436. }
  437. return false
  438. }
  439. func (m *RequestLog) GetThrottledTime() int64 {
  440. if m != nil && m.ThrottledTime != nil {
  441. return *m.ThrottledTime
  442. }
  443. return 0
  444. }
  445. func (m *RequestLog) GetServerName() []byte {
  446. if m != nil {
  447. return m.ServerName
  448. }
  449. return nil
  450. }
  451. type LogModuleVersion struct {
  452. ModuleId *string `protobuf:"bytes,1,opt,name=module_id,def=default" json:"module_id,omitempty"`
  453. VersionId *string `protobuf:"bytes,2,opt,name=version_id" json:"version_id,omitempty"`
  454. XXX_unrecognized []byte `json:"-"`
  455. }
  456. func (m *LogModuleVersion) Reset() { *m = LogModuleVersion{} }
  457. func (m *LogModuleVersion) String() string { return proto.CompactTextString(m) }
  458. func (*LogModuleVersion) ProtoMessage() {}
  459. const Default_LogModuleVersion_ModuleId string = "default"
  460. func (m *LogModuleVersion) GetModuleId() string {
  461. if m != nil && m.ModuleId != nil {
  462. return *m.ModuleId
  463. }
  464. return Default_LogModuleVersion_ModuleId
  465. }
  466. func (m *LogModuleVersion) GetVersionId() string {
  467. if m != nil && m.VersionId != nil {
  468. return *m.VersionId
  469. }
  470. return ""
  471. }
  472. type LogReadRequest struct {
  473. AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"`
  474. VersionId []string `protobuf:"bytes,2,rep,name=version_id" json:"version_id,omitempty"`
  475. ModuleVersion []*LogModuleVersion `protobuf:"bytes,19,rep,name=module_version" json:"module_version,omitempty"`
  476. StartTime *int64 `protobuf:"varint,3,opt,name=start_time" json:"start_time,omitempty"`
  477. EndTime *int64 `protobuf:"varint,4,opt,name=end_time" json:"end_time,omitempty"`
  478. Offset *LogOffset `protobuf:"bytes,5,opt,name=offset" json:"offset,omitempty"`
  479. RequestId [][]byte `protobuf:"bytes,6,rep,name=request_id" json:"request_id,omitempty"`
  480. MinimumLogLevel *int32 `protobuf:"varint,7,opt,name=minimum_log_level" json:"minimum_log_level,omitempty"`
  481. IncludeIncomplete *bool `protobuf:"varint,8,opt,name=include_incomplete" json:"include_incomplete,omitempty"`
  482. Count *int64 `protobuf:"varint,9,opt,name=count" json:"count,omitempty"`
  483. CombinedLogRegex *string `protobuf:"bytes,14,opt,name=combined_log_regex" json:"combined_log_regex,omitempty"`
  484. HostRegex *string `protobuf:"bytes,15,opt,name=host_regex" json:"host_regex,omitempty"`
  485. ReplicaIndex *int32 `protobuf:"varint,16,opt,name=replica_index" json:"replica_index,omitempty"`
  486. IncludeAppLogs *bool `protobuf:"varint,10,opt,name=include_app_logs" json:"include_app_logs,omitempty"`
  487. AppLogsPerRequest *int32 `protobuf:"varint,17,opt,name=app_logs_per_request" json:"app_logs_per_request,omitempty"`
  488. IncludeHost *bool `protobuf:"varint,11,opt,name=include_host" json:"include_host,omitempty"`
  489. IncludeAll *bool `protobuf:"varint,12,opt,name=include_all" json:"include_all,omitempty"`
  490. CacheIterator *bool `protobuf:"varint,13,opt,name=cache_iterator" json:"cache_iterator,omitempty"`
  491. NumShards *int32 `protobuf:"varint,18,opt,name=num_shards" json:"num_shards,omitempty"`
  492. XXX_unrecognized []byte `json:"-"`
  493. }
  494. func (m *LogReadRequest) Reset() { *m = LogReadRequest{} }
  495. func (m *LogReadRequest) String() string { return proto.CompactTextString(m) }
  496. func (*LogReadRequest) ProtoMessage() {}
  497. func (m *LogReadRequest) GetAppId() string {
  498. if m != nil && m.AppId != nil {
  499. return *m.AppId
  500. }
  501. return ""
  502. }
  503. func (m *LogReadRequest) GetVersionId() []string {
  504. if m != nil {
  505. return m.VersionId
  506. }
  507. return nil
  508. }
  509. func (m *LogReadRequest) GetModuleVersion() []*LogModuleVersion {
  510. if m != nil {
  511. return m.ModuleVersion
  512. }
  513. return nil
  514. }
  515. func (m *LogReadRequest) GetStartTime() int64 {
  516. if m != nil && m.StartTime != nil {
  517. return *m.StartTime
  518. }
  519. return 0
  520. }
  521. func (m *LogReadRequest) GetEndTime() int64 {
  522. if m != nil && m.EndTime != nil {
  523. return *m.EndTime
  524. }
  525. return 0
  526. }
  527. func (m *LogReadRequest) GetOffset() *LogOffset {
  528. if m != nil {
  529. return m.Offset
  530. }
  531. return nil
  532. }
  533. func (m *LogReadRequest) GetRequestId() [][]byte {
  534. if m != nil {
  535. return m.RequestId
  536. }
  537. return nil
  538. }
  539. func (m *LogReadRequest) GetMinimumLogLevel() int32 {
  540. if m != nil && m.MinimumLogLevel != nil {
  541. return *m.MinimumLogLevel
  542. }
  543. return 0
  544. }
  545. func (m *LogReadRequest) GetIncludeIncomplete() bool {
  546. if m != nil && m.IncludeIncomplete != nil {
  547. return *m.IncludeIncomplete
  548. }
  549. return false
  550. }
  551. func (m *LogReadRequest) GetCount() int64 {
  552. if m != nil && m.Count != nil {
  553. return *m.Count
  554. }
  555. return 0
  556. }
  557. func (m *LogReadRequest) GetCombinedLogRegex() string {
  558. if m != nil && m.CombinedLogRegex != nil {
  559. return *m.CombinedLogRegex
  560. }
  561. return ""
  562. }
  563. func (m *LogReadRequest) GetHostRegex() string {
  564. if m != nil && m.HostRegex != nil {
  565. return *m.HostRegex
  566. }
  567. return ""
  568. }
  569. func (m *LogReadRequest) GetReplicaIndex() int32 {
  570. if m != nil && m.ReplicaIndex != nil {
  571. return *m.ReplicaIndex
  572. }
  573. return 0
  574. }
  575. func (m *LogReadRequest) GetIncludeAppLogs() bool {
  576. if m != nil && m.IncludeAppLogs != nil {
  577. return *m.IncludeAppLogs
  578. }
  579. return false
  580. }
  581. func (m *LogReadRequest) GetAppLogsPerRequest() int32 {
  582. if m != nil && m.AppLogsPerRequest != nil {
  583. return *m.AppLogsPerRequest
  584. }
  585. return 0
  586. }
  587. func (m *LogReadRequest) GetIncludeHost() bool {
  588. if m != nil && m.IncludeHost != nil {
  589. return *m.IncludeHost
  590. }
  591. return false
  592. }
  593. func (m *LogReadRequest) GetIncludeAll() bool {
  594. if m != nil && m.IncludeAll != nil {
  595. return *m.IncludeAll
  596. }
  597. return false
  598. }
  599. func (m *LogReadRequest) GetCacheIterator() bool {
  600. if m != nil && m.CacheIterator != nil {
  601. return *m.CacheIterator
  602. }
  603. return false
  604. }
  605. func (m *LogReadRequest) GetNumShards() int32 {
  606. if m != nil && m.NumShards != nil {
  607. return *m.NumShards
  608. }
  609. return 0
  610. }
  611. type LogReadResponse struct {
  612. Log []*RequestLog `protobuf:"bytes,1,rep,name=log" json:"log,omitempty"`
  613. Offset *LogOffset `protobuf:"bytes,2,opt,name=offset" json:"offset,omitempty"`
  614. LastEndTime *int64 `protobuf:"varint,3,opt,name=last_end_time" json:"last_end_time,omitempty"`
  615. XXX_unrecognized []byte `json:"-"`
  616. }
  617. func (m *LogReadResponse) Reset() { *m = LogReadResponse{} }
  618. func (m *LogReadResponse) String() string { return proto.CompactTextString(m) }
  619. func (*LogReadResponse) ProtoMessage() {}
  620. func (m *LogReadResponse) GetLog() []*RequestLog {
  621. if m != nil {
  622. return m.Log
  623. }
  624. return nil
  625. }
  626. func (m *LogReadResponse) GetOffset() *LogOffset {
  627. if m != nil {
  628. return m.Offset
  629. }
  630. return nil
  631. }
  632. func (m *LogReadResponse) GetLastEndTime() int64 {
  633. if m != nil && m.LastEndTime != nil {
  634. return *m.LastEndTime
  635. }
  636. return 0
  637. }
  638. type LogUsageRecord struct {
  639. VersionId *string `protobuf:"bytes,1,opt,name=version_id" json:"version_id,omitempty"`
  640. StartTime *int32 `protobuf:"varint,2,opt,name=start_time" json:"start_time,omitempty"`
  641. EndTime *int32 `protobuf:"varint,3,opt,name=end_time" json:"end_time,omitempty"`
  642. Count *int64 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"`
  643. TotalSize *int64 `protobuf:"varint,5,opt,name=total_size" json:"total_size,omitempty"`
  644. Records *int32 `protobuf:"varint,6,opt,name=records" json:"records,omitempty"`
  645. XXX_unrecognized []byte `json:"-"`
  646. }
  647. func (m *LogUsageRecord) Reset() { *m = LogUsageRecord{} }
  648. func (m *LogUsageRecord) String() string { return proto.CompactTextString(m) }
  649. func (*LogUsageRecord) ProtoMessage() {}
  650. func (m *LogUsageRecord) GetVersionId() string {
  651. if m != nil && m.VersionId != nil {
  652. return *m.VersionId
  653. }
  654. return ""
  655. }
  656. func (m *LogUsageRecord) GetStartTime() int32 {
  657. if m != nil && m.StartTime != nil {
  658. return *m.StartTime
  659. }
  660. return 0
  661. }
  662. func (m *LogUsageRecord) GetEndTime() int32 {
  663. if m != nil && m.EndTime != nil {
  664. return *m.EndTime
  665. }
  666. return 0
  667. }
  668. func (m *LogUsageRecord) GetCount() int64 {
  669. if m != nil && m.Count != nil {
  670. return *m.Count
  671. }
  672. return 0
  673. }
  674. func (m *LogUsageRecord) GetTotalSize() int64 {
  675. if m != nil && m.TotalSize != nil {
  676. return *m.TotalSize
  677. }
  678. return 0
  679. }
  680. func (m *LogUsageRecord) GetRecords() int32 {
  681. if m != nil && m.Records != nil {
  682. return *m.Records
  683. }
  684. return 0
  685. }
  686. type LogUsageRequest struct {
  687. AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"`
  688. VersionId []string `protobuf:"bytes,2,rep,name=version_id" json:"version_id,omitempty"`
  689. StartTime *int32 `protobuf:"varint,3,opt,name=start_time" json:"start_time,omitempty"`
  690. EndTime *int32 `protobuf:"varint,4,opt,name=end_time" json:"end_time,omitempty"`
  691. ResolutionHours *uint32 `protobuf:"varint,5,opt,name=resolution_hours,def=1" json:"resolution_hours,omitempty"`
  692. CombineVersions *bool `protobuf:"varint,6,opt,name=combine_versions" json:"combine_versions,omitempty"`
  693. UsageVersion *int32 `protobuf:"varint,7,opt,name=usage_version" json:"usage_version,omitempty"`
  694. VersionsOnly *bool `protobuf:"varint,8,opt,name=versions_only" json:"versions_only,omitempty"`
  695. XXX_unrecognized []byte `json:"-"`
  696. }
  697. func (m *LogUsageRequest) Reset() { *m = LogUsageRequest{} }
  698. func (m *LogUsageRequest) String() string { return proto.CompactTextString(m) }
  699. func (*LogUsageRequest) ProtoMessage() {}
  700. const Default_LogUsageRequest_ResolutionHours uint32 = 1
  701. func (m *LogUsageRequest) GetAppId() string {
  702. if m != nil && m.AppId != nil {
  703. return *m.AppId
  704. }
  705. return ""
  706. }
  707. func (m *LogUsageRequest) GetVersionId() []string {
  708. if m != nil {
  709. return m.VersionId
  710. }
  711. return nil
  712. }
  713. func (m *LogUsageRequest) GetStartTime() int32 {
  714. if m != nil && m.StartTime != nil {
  715. return *m.StartTime
  716. }
  717. return 0
  718. }
  719. func (m *LogUsageRequest) GetEndTime() int32 {
  720. if m != nil && m.EndTime != nil {
  721. return *m.EndTime
  722. }
  723. return 0
  724. }
  725. func (m *LogUsageRequest) GetResolutionHours() uint32 {
  726. if m != nil && m.ResolutionHours != nil {
  727. return *m.ResolutionHours
  728. }
  729. return Default_LogUsageRequest_ResolutionHours
  730. }
  731. func (m *LogUsageRequest) GetCombineVersions() bool {
  732. if m != nil && m.CombineVersions != nil {
  733. return *m.CombineVersions
  734. }
  735. return false
  736. }
  737. func (m *LogUsageRequest) GetUsageVersion() int32 {
  738. if m != nil && m.UsageVersion != nil {
  739. return *m.UsageVersion
  740. }
  741. return 0
  742. }
  743. func (m *LogUsageRequest) GetVersionsOnly() bool {
  744. if m != nil && m.VersionsOnly != nil {
  745. return *m.VersionsOnly
  746. }
  747. return false
  748. }
  749. type LogUsageResponse struct {
  750. Usage []*LogUsageRecord `protobuf:"bytes,1,rep,name=usage" json:"usage,omitempty"`
  751. Summary *LogUsageRecord `protobuf:"bytes,2,opt,name=summary" json:"summary,omitempty"`
  752. XXX_unrecognized []byte `json:"-"`
  753. }
  754. func (m *LogUsageResponse) Reset() { *m = LogUsageResponse{} }
  755. func (m *LogUsageResponse) String() string { return proto.CompactTextString(m) }
  756. func (*LogUsageResponse) ProtoMessage() {}
  757. func (m *LogUsageResponse) GetUsage() []*LogUsageRecord {
  758. if m != nil {
  759. return m.Usage
  760. }
  761. return nil
  762. }
  763. func (m *LogUsageResponse) GetSummary() *LogUsageRecord {
  764. if m != nil {
  765. return m.Summary
  766. }
  767. return nil
  768. }
  769. func init() {
  770. }