github.com/cloudwan/edgelq-sdk@v1.15.4/logging/proto/v1/log_custom.proto (about) 1 syntax = "proto3"; 2 3 package ntt.logging.v1; 4 5 import "edgelq-sdk/common/rpc/status.proto"; 6 import "edgelq-sdk/logging/proto/v1/common.proto"; 7 import "edgelq-sdk/logging/proto/v1/log.proto"; 8 9 option go_package = "github.com/cloudwan/edgelq-sdk/logging/client/v1/log;log_client"; 10 option java_multiple_files = false; 11 option java_outer_classname = "LogCustomProto"; 12 option java_package = "com.ntt.logging.pb.v1"; 13 14 // Request message for method [ListLogs][ntt.logging.v1.ListLogs] 15 message ListLogsRequest { 16 // Parent references of ntt.logging.v1.Log 17 repeated string parents = 1; 18 19 // Filter that specifies which logs should be returned 20 string filter = 2; 21 22 // The time interval for which results should be returned. Only logs 23 // that contain data points in the specified interval are included 24 // in the response. 25 TimeInterval interval = 3; 26 27 // Cap on a number of log entries to be included in a response. 28 // Number of logs in an actual response can be higher, since logs are 29 // read in bulk with second precision - exceed logs above the limit will share 30 // same timestamp as the logs below the limit. 31 // 32 // Results will be adjusted to the "end time" taken from interval field 33 // (adjusted also by page_token if provided). 34 int32 page_size = 5; 35 36 // Token which identifies next page with further results. Token should be 37 // taken from 38 // [ListLogsResponse.next_page_token][ntt.logging.v1.ListLogsResponse.next_page_token]. 39 string page_token = 6; 40 } 41 42 // Response message for method [ListLogs][ntt.logging.v1.ListLogs] 43 message ListLogsResponse { 44 // Logs that match the filter included in the request. 45 repeated Log logs = 1; 46 47 // If there are more results than have been returned, then this field is set 48 // to a non-empty value. To see the additional results, 49 // use that value as `pageToken` in the next call to this method. 50 string next_page_token = 2; 51 52 // Query execution errors that may have caused the logs data returned 53 // to be incomplete. 54 repeated ntt.rpc.Status execution_errors = 3; 55 56 // ErrorDetails is used when one of the queried regions fails to produce 57 // results. It is used in execution_errors field (see subfield 58 // ntt.rpc.Status.details). 59 message ErrorDetails { 60 // region id which failed to give results. 61 string region_id = 1; 62 } 63 } 64 65 // Request message for method [CreateLogs][ntt.logging.v1.CreateLogs] 66 message CreateLogsRequest { 67 // Parent reference of ntt.logging.v1.Log 68 string parent = 1; 69 70 // List of logs to create/append. If they have specified name 71 // field, it must match provided parent field. 72 repeated Log logs = 2; 73 } 74 75 // Response message for method [CreateLogs][ntt.logging.v1.CreateLogs] 76 message CreateLogsResponse { 77 // Log names indexed by Create position. All logs, except 78 // failed ones will be present. If all logs were written successfully, 79 // then map will have keys all from 0 to N-1. 80 map<uint32, string> log_names = 1; 81 82 // Logs that failed to be created 83 repeated CreateError failed_logs = 2; 84 85 // Describes the result of a failed request to write logs. 86 message CreateError { 87 // All logs that failed to be written. This field provides all of 88 // the context that would be needed to retry the operation. 89 repeated Log logs = 1; 90 91 // The status of the requested write operation. 92 ntt.rpc.Status status = 2; 93 } 94 } 95 96 // A request message of the StreamingCreateLogs method. 97 // This method only supports creating logs for the same project and region for 98 // the entire duration of the stream. Any client that intends 99 // to create logs in multiple projects or regions should not use this API. If 100 // the client uses the same scope, service, version and log descriptor, these 101 // fields need not be sent after the first message even if binary key is not 102 // used in the log entry. The server will set the values observed in the first 103 // message in case these are empty and binary key is also not present in the log 104 message StreamingCreateLogsRequest { 105 // Parent reference of ntt.logging.v1.Log 106 // only required in the first request message 107 string parent = 1; 108 109 // only required in the first request in order to route the request to the 110 // correct region 111 string region_id = 2; 112 113 // List of logs to create/append. If they have specified name 114 // field, it must match provided parent field 115 repeated Log logs = 3; 116 } 117 118 // A response message of the StreamingCreateLogs method. 119 message StreamingCreateLogsResponse { 120 // Binary key will be set in the map key corresponding to the array index 121 // in the request, but only if the particular request entry did not use binary 122 // key. Indices for log entries in request having binary key set will be 123 // ignored in the response 124 map<uint32, string> bin_keys = 1; 125 126 // Logs that failed to be created 127 repeated CreateLogsResponse.CreateError failed_logs = 2; 128 }