OLD | NEW |
(Empty) | |
| 1 syntax = "proto2"; |
| 2 |
| 3 package appengine.log; |
| 4 |
| 5 message LogServiceError { |
| 6 enum ErrorCode { |
| 7 OK = 0; |
| 8 INVALID_REQUEST = 1; |
| 9 STORAGE_ERROR = 2; |
| 10 } |
| 11 } |
| 12 |
| 13 message UserAppLogLine { |
| 14 required int64 timestamp_usec = 1; |
| 15 required int64 level = 2; |
| 16 required string message = 3; |
| 17 } |
| 18 |
| 19 message UserAppLogGroup { |
| 20 repeated UserAppLogLine log_line = 2; |
| 21 } |
| 22 |
| 23 message FlushRequest { |
| 24 optional bytes logs = 1; |
| 25 } |
| 26 |
| 27 message SetStatusRequest { |
| 28 required string status = 1; |
| 29 } |
| 30 |
| 31 |
| 32 message LogOffset { |
| 33 optional bytes request_id = 1; |
| 34 } |
| 35 |
| 36 message LogLine { |
| 37 required int64 time = 1; |
| 38 required int32 level = 2; |
| 39 required string log_message = 3; |
| 40 } |
| 41 |
| 42 message RequestLog { |
| 43 required string app_id = 1; |
| 44 optional string module_id = 37 [default="default"]; |
| 45 required string version_id = 2; |
| 46 required bytes request_id = 3; |
| 47 optional LogOffset offset = 35; |
| 48 required string ip = 4; |
| 49 optional string nickname = 5; |
| 50 required int64 start_time = 6; |
| 51 required int64 end_time = 7; |
| 52 required int64 latency = 8; |
| 53 required int64 mcycles = 9; |
| 54 required string method = 10; |
| 55 required string resource = 11; |
| 56 required string http_version = 12; |
| 57 required int32 status = 13; |
| 58 required int64 response_size = 14; |
| 59 optional string referrer = 15; |
| 60 optional string user_agent = 16; |
| 61 required string url_map_entry = 17; |
| 62 required string combined = 18; |
| 63 optional int64 api_mcycles = 19; |
| 64 optional string host = 20; |
| 65 optional double cost = 21; |
| 66 |
| 67 optional string task_queue_name = 22; |
| 68 optional string task_name = 23; |
| 69 |
| 70 optional bool was_loading_request = 24; |
| 71 optional int64 pending_time = 25; |
| 72 optional int32 replica_index = 26 [default = -1]; |
| 73 optional bool finished = 27 [default = true]; |
| 74 optional bytes clone_key = 28; |
| 75 |
| 76 repeated LogLine line = 29; |
| 77 |
| 78 optional bool lines_incomplete = 36; |
| 79 optional bytes app_engine_release = 38; |
| 80 |
| 81 optional int32 exit_reason = 30; |
| 82 optional bool was_throttled_for_time = 31; |
| 83 optional bool was_throttled_for_requests = 32; |
| 84 optional int64 throttled_time = 33; |
| 85 |
| 86 optional bytes server_name = 34; |
| 87 } |
| 88 |
| 89 message LogModuleVersion { |
| 90 optional string module_id = 1 [default="default"]; |
| 91 optional string version_id = 2; |
| 92 } |
| 93 |
| 94 message LogReadRequest { |
| 95 required string app_id = 1; |
| 96 repeated string version_id = 2; |
| 97 repeated LogModuleVersion module_version = 19; |
| 98 |
| 99 optional int64 start_time = 3; |
| 100 optional int64 end_time = 4; |
| 101 optional LogOffset offset = 5; |
| 102 repeated bytes request_id = 6; |
| 103 |
| 104 optional int32 minimum_log_level = 7; |
| 105 optional bool include_incomplete = 8; |
| 106 optional int64 count = 9; |
| 107 |
| 108 optional string combined_log_regex = 14; |
| 109 optional string host_regex = 15; |
| 110 optional int32 replica_index = 16; |
| 111 |
| 112 optional bool include_app_logs = 10; |
| 113 optional int32 app_logs_per_request = 17; |
| 114 optional bool include_host = 11; |
| 115 optional bool include_all = 12; |
| 116 optional bool cache_iterator = 13; |
| 117 optional int32 num_shards = 18; |
| 118 } |
| 119 |
| 120 message LogReadResponse { |
| 121 repeated RequestLog log = 1; |
| 122 optional LogOffset offset = 2; |
| 123 optional int64 last_end_time = 3; |
| 124 } |
| 125 |
| 126 message LogUsageRecord { |
| 127 optional string version_id = 1; |
| 128 optional int32 start_time = 2; |
| 129 optional int32 end_time = 3; |
| 130 optional int64 count = 4; |
| 131 optional int64 total_size = 5; |
| 132 optional int32 records = 6; |
| 133 } |
| 134 |
| 135 message LogUsageRequest { |
| 136 required string app_id = 1; |
| 137 repeated string version_id = 2; |
| 138 optional int32 start_time = 3; |
| 139 optional int32 end_time = 4; |
| 140 optional uint32 resolution_hours = 5 [default = 1]; |
| 141 optional bool combine_versions = 6; |
| 142 optional int32 usage_version = 7; |
| 143 optional bool versions_only = 8; |
| 144 } |
| 145 |
| 146 message LogUsageResponse { |
| 147 repeated LogUsageRecord usage = 1; |
| 148 optional LogUsageRecord summary = 2; |
| 149 } |
OLD | NEW |