Created
April 2, 2013 13:25
-
-
Save sevki/5292175 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message KeyValue { | |
required string key =1; | |
required bytes value = 2; | |
} | |
message OpParamMessage { | |
required string msg =1; | |
repeated KeyValue param = 2; | |
} | |
message OpException { | |
required string type = 1; | |
required string value =2; | |
optional string module =3; | |
} | |
message OpFrame { | |
required int32 line_no = 1; | |
required string filename = 2; | |
optional string abs_path =3; | |
optional string function = 4; | |
repeated KeyValue vars = 5; | |
repeated string pre_context =6; | |
optional string context_line = 7; | |
repeated string post_context = 8; | |
} | |
message OpStackTrace { | |
optional string trace = 1; | |
repeated OpFrame frames = 2; | |
} | |
message OpHttp { | |
required string url =1; | |
required string method =2; | |
optional bytes data = 3; | |
optional string query_string = 4; | |
optional string cookies = 5; | |
repeated KeyValue headers = 6; | |
optional string remote_host =7; | |
optional string http_host = 8; | |
optional string user_agent =9; | |
optional bool secure = 10; | |
repeated KeyValue env_vars = 11; | |
} | |
message OpUser { | |
required bool is_authenticated = 1; | |
required bool user_id = 2; | |
optional bool user_name = 3; | |
optional bool email = 4; | |
} | |
message OpQuery { | |
required string command = 1; | |
optional string engine = 2; | |
} | |
message OpMessage { | |
required string msg = 1; | |
optional int64 timestamp = 2; | |
enum MsgLevel { | |
DEBUG = 0; | |
INFO = 1; | |
WARN = 2; | |
ERROR = 3; | |
CRITICAL = 4; | |
} | |
optional MsgLevel level = 3; | |
optional string logger = 4; | |
optional string client_supplied_id = 5; | |
optional string culprit = 6; | |
repeated string extra = 7; | |
optional OpParamMessage param_message = 9; | |
optional OpException exception = 10; | |
optional OpStackTrace stack_trace = 11; | |
optional OpHttp http = 12; | |
optional OpUser user = 13; | |
optional OpQuery query = 14; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment